• Hi, I’m getting emails from WordPress (I guess?) about a fatal error in Responsive Lightbox & Gallery. This has NO visible effect on my page. It doesn’t appear to be crashing for me, the site is up and running, and I see no errors in the browser’s console (or at least I’m not catching them).

    Here is the stack trace from the email:

    Error Details
    =============
    An error of type E_ERROR was caused in line 503 of the file /var/www/html/wp-content/plugins/responsive-lightbox/includes/class-frontend.php. Error message: Uncaught Error: Unsupported operand types in /var/www/html/wp-content/plugins/responsive-lightbox/includes/class-frontend.php:503
    Stack trace:
    #0 /var/www/html/wp-content/plugins/responsive-lightbox/includes/class-galleries.php(3798): Responsive_Lightbox_Frontend->get_unique_fields()
    #1 /var/www/html/wp-content/plugins/responsive-lightbox/includes/class-galleries.php(4145): Responsive_Lightbox_Galleries->save_gallery()
    #2 /var/www/html/wp-includes/class-wp-hook.php(287): Responsive_Lightbox_Galleries->save_revision()
    #3 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #4 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action()
    #5 /var/www/html/wp-includes/revision.php(345): do_action()
    #6 /var/www/html/wp-admin/includes/post.php(1874): _wp_put_post_revision()
    #7 /var/www/html/wp-admin/includes/post.php(1983): wp_create_post_autosave()
    #8 /var/www/html/wp-admin/includes/misc.php(1236): wp_autosave()
    #9 /var/www/html/wp-includes/class-wp-hook.php(289): heartbeat_autosave()
    #10 /

    Other details about my setup:
    WordPress version 5.5
    Plugin: Responsive Lightbox & Gallery (version 2.2.3.1)
    PHP version 7.4.7

    Just wondering if this is something that I need to be concerned about. I’ve gotten several of these over the last couple days. Thanks.

Viewing 13 replies - 1 through 13 (of 13 total)
  • I got the same exact email. Did you ever get an answer?

    Thread Starter sailingfortuitous

    (@sailingfortuitous)

    Nope, sorry. No answer. It hasn’t really happened again. I think maybe it only happens when I’m uploading a ton of images, which I don’t do that often.

    Every time someone starts editing gallery or lightbox I am (admin) getting the exact same email ???♀? Anyone digging after this error-message? No effect on the page so far.

    Thread Starter sailingfortuitous

    (@sailingfortuitous)

    Yeah, I recently added more images (since my last message) and got it again. Not sure what’s up.

    d9d9_Sun

    (@d9d9_sun)

    It seems, I’ve got it.

    I’ve opened /wp-content/plugins/responsive-lightbox/includes/class-frontend.php:503, and saw that in line above (line 497) there is word “field” (not “fields“). But in line 503 I saw “fields”.
    So. I’ve just changed “field” to “fields” in line 497.

    Original line 497:
    foreach ( $duplicates as $field_id => $field ) {

    My line 497:
    foreach ( $duplicates as $field_id => $fields ) {

    Profit!

    • This reply was modified 4 years ago by d9d9_Sun.
    • This reply was modified 4 years ago by d9d9_Sun.
    Thread Starter sailingfortuitous

    (@sailingfortuitous)

    Oh, wow. And there appear to be no side effects after you changed it?

    I’ll test it and see if works for me too. Thanks!

    d9d9_Sun

    (@d9d9_sun)

    Unfortunately, it helps only one time. Than I didn’t saw this error. But also it didn’t save changes at the gallery.
    keep looking.

    Thread Starter sailingfortuitous

    (@sailingfortuitous)

    Ah, ok. Thanks for trying. I didn’t have a chance to test it, but now it sounds like that’s not the fix.

    The same error is still being generated with release 2.3.2 of this plugin on WP 5.7.2 on my site. I can provide further details if useful.

    Thread Starter sailingfortuitous

    (@sailingfortuitous)

    It doesn’t appear to be a burning issue to the maintainers.

    On the other hand, it hasn’t seemed to cause any real problems on my site. :shrug:

    @d9d9_sun Re the fix not working more than once, it probably gets overwritten when the plug-in gets updated.

    I have had this error every time I create a new gallery (I usually Duplicate then Edit to bring forward all the attributes). I will keep an eye on this and stop updates for the moment, and report back

    With a look at the unresolved issues, I assume the plugin has been abandoned. However, the solution proposed by @d9d9_sun solved this issue for me. Obviously a coding error by the plugin author.

    Plugin Author dFactory

    (@dfactory)

    This issue resolved since the 2.3.4 release. Can you confirm please?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Fatal Error’ is closed to new replies.