Support » Plugin: Photonic Gallery & Lightbox for Flickr, SmugMug, Google Photos & Others » Critical Error When Trying to Add New Post

  • Resolved tomboyni

    (@tomboyni)


    Hi there,

    When I try to add a new post to my site I get the following error :

    ‘There has been a critical error on your website. Please check your site admin email inbox for instructions.’

    When I check the email it tells me the following :

    Hi!

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Photonic Gallery & Lightbox for Flickr, SmugMug, Google Photos & Others.

    If I then turn the plugin off it will work fine, and I can add a post. Obviously all of my galleries are missing. When I add the post and reactivate the plugin the galleries reappear and everything seems to be working fine – except I have to turn the plugin off to post more or edit anything?

    Thanks in advance.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter tomboyni

    (@tomboyni)

    On reading into this further I think it may be due to the php version. My site says it is running on 5.6.4.0 – however when I go to cpanel it states that the php version is 7.4.

    I have emailed the host to see if they can shed any light on the issue.

    Thread Starter tomboyni

    (@tomboyni)

    I now have the site running on 7.4.5 and all seems to be back to normal.

    Thanks 🙂

    Plugin Author Sayontan Sinha

    (@sayontan)

    Any chance you could obtain the error message for me from your host? I had tested the code for 5.6.x, hence I am curious.

    Got same message:

    “Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.In this case, WordPress caught an error with one of your plugins, Photonic Gallery & Lightbox for Flickr, SmugMug, Google Photos & Others.”

    My site in under PHP 7.3.
    The error has been detected at the EXACT time of the upgrade. See page below.

    (https://lelaurier.net/wp-admin/update.php?action=update-selected&plugins=import-users-from-csv-with-meta%2Fimport-users-from-csv-with-meta.php%2Csiteorigin-panels%2Fsiteorigin-panels.php%2Cphotonic%2Fphotonic.php%2Cultimate-faqs%2FMain.php&_wpnonce=95eed0b0c5)

    My site works fine…

    @sayontan Hope this help solving the problem.

    Plugin Author Sayontan Sinha

    (@sayontan)

    @ldeschenes,
    Sorry, this doesn’t help – are you saying that you have an error, or not? I ask because you are also stating, “My site works fine”.

    Also, for PHP 7.3 there should be no errors whatsoever.

    What I was asking for is not what WP is providing, rather, I was asking for information from the PHP error logs. Typically that is something your host can provide.

    I am not @tomboyni but an other user having same problem and trying to help YOU.

    Yes my site works fine… I am happy.

    But I still received the ema from WordPress “Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.In this case, WordPress caught an error with one of your plugins, Photonic Gallery & Lightbox for Flickr, SmugMug, Google Photos & Others.”

    This is not normal and it did happen under PHP 7.3 when I upgraded your plugin.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I am not @tomboyni but an other user having same problem and trying to help YOU.

    Yes, absolutely! I understand that you are not the OP, and thank you for the help!

    What I am asking is, for PHP 7.3, do you have an error log that I can see? The WP error is is generic, and absolutely unhelpful. I ask more because I have tested multiple scenarios for PHP 7.0.x, 7.1.x, 7.2.x, 7.3.x and 7.4.x. In fact the live site where you see Photonic now is a 7.2.x site, my test site uses 7.3.5, and @tomboyni has confirmed that it works fine for 7.4.x.

    If you can get me an error log for PHP 7.3, that can help me track this down.

    My PHP error log did not have error for months…

    Today I have 15 lines like this :
    “[11-May-2020 17:09:20 UTC] PHP Warning: Declaration of AMW_Related_Sub_Items_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, …$args) in /home2/lelaurie/public_html/wp-content/plugins/advanced-menu-widget/class-advanced-menu-walker.php on line 332”

    This does not look related to your plugin… Coincidence ? Plugin conflict ?

    BTW, apart from the WP error email, everything looks OK for me. Maybe it is a bug with that WP new feature ?

    Plugin Author Sayontan Sinha

    (@sayontan)

    Hmm… so, if your site is working fine, I would say this was a false alarm. I can see that the latest versions of Photonic scripts are included on your page.

    Thread Starter tomboyni

    (@tomboyni)

    Sayontan (@sayontan)
    1 day, 1 hour ago
    Any chance you could obtain the error message for me from your host? I had tested the code for 5.6.x, hence I am curious.

    I’ll do that if you could you point me to the likely location of the error file?

    Thanks

    Plugin Author Sayontan Sinha

    (@sayontan)

    @tomboyni,
    Thanks for checking. I was able to isolate this specific issue and have patched it. I should be able to release a version today.

    Thread Starter tomboyni

    (@tomboyni)

    Sayontan (@sayontan)
    52 minutes ago
    @tomboyni,
    Thanks for checking. I was able to isolate this specific issue and have patched it. I should be able to release a version today.

    Nice one, thanks for you help, and keep up the great work

    Plugin Author Sayontan Sinha

    (@sayontan)

    Version 2.43, released a couple of hours back should fix this for PHP 5.6.x.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Critical Error When Trying to Add New Post’ is closed to new replies.