• Although the site seems to be working fine I keep getting a WordPress email about a ‘fatal’ error:

    Active theme: eleven40 Pro Theme (version 2.0)
    Current plugin: NextGEN Gallery (version 3.59.4)
    PHP version 8.2.21 Error Details

    An error of type E_ERROR was caused in line 147 of the file /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php:147
    Stack trace: 0 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(147): in_array(‘2899230903’, ‘A’) 1 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(168): Imagely\NGG\Util\Transient->_track_key(‘5__2899230903’) 2 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(256): Imagely\NGG\Util\Transient->set(‘5__2899230903’, Array, 1800) 3 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/DriverBase.php(89): Imagely\NGG\Util\Transient::update(‘5__2899230903’, Array) 4 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/DriverBase.php(63): Imagely\NGG\DataMapper\DriverBase->update_columns_cache() 5 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/WPPostDriver.php(31): Imagely\NGG\DataMapper\DriverBase->lookup_columns() 6 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/DriverBase.php(23): Imagely\NGG\DataMapper\WPPostDriver->lookup_columns() 7 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/WPPostDriver.php(26): Imagely\NGG\DataMapper\DriverBase->__construct(‘display_type’) 8 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMappers/DisplayType.php(27): Imagely\NGG\DataMapper\WPPostDriver->__construct(‘display_type’) 9 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMappers/DisplayType.php(36): Imagely\NGG\DataMappers\DisplayType->__construct() 10 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/marketing/module.marketing.php(169): Imagely\NGG\DataMappers\DisplayType::get_instance() 11 /home/carnethy/public_html/wp-includes/class-wp-hook.php(324): M_Marketing->{closure}(”) 12 /home/carnethy/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 13 /home/carnethy/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 14 /home/carnethy/public_html/wp-settings.php(700): do_action(‘init’) 15 /home/carnethy/public_html/wp-config.php(94): require_once(‘/home/carnethy/…’) 16 /home/carnethy/public_html/wp-load.php(50): require_once(‘/home/carnethy/…’) 17 /home/carnethy/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/carnethy/…’) 18 {main}

    thrown

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @digbymaass,

    Thanks for reaching out!

    While checking on our setup we couldn’t replicate the issue while using the PHP 8.2 and NextGEN Gallery. I suggest you download a fresh copy of the latest NextGen Gallery and, then replace the one from your site’s Dashboard > Plugins > Add new plugin > Upload plugin > Choose File (with the files’ override when being asked) to see if that’ll fix the issue?

    Re-installing NextGen Gallery wouldn’t affect your existing galleries.

    Thanks!

    Thread Starter digbymaass

    (@digbymaass)

    Ok I’ll try that.

    Thread Starter digbymaass

    (@digbymaass)

    Nope. Just got another error email. I think it’s the same as the others…

    Error Details

    An error of type E_ERROR was caused in line 147 of the file /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php:147
    Stack trace: 0 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(147): in_array(‘2899230903’, ‘A’) 1 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(168): Imagely\NGG\Util\Transient->_track_key(‘5__2899230903’) 2 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(256): Imagely\NGG\Util\Transient->set(‘5__2899230903’, Array, 1800) 3 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/DriverBase.php(89): Imagely\NGG\Util\Transient::update(‘5__2899230903’, Array) 4 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/DriverBase.php(63): Imagely\NGG\DataMapper\DriverBase->update_columns_cache() 5 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/WPPostDriver.php(31): Imagely\NGG\DataMapper\DriverBase->lookup_columns() 6 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/DriverBase.php(23): Imagely\NGG\DataMapper\WPPostDriver->lookup_columns() 7 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMapper/WPPostDriver.php(26): Imagely\NGG\DataMapper\DriverBase->__construct(‘display_type’) 8 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMappers/DisplayType.php(27): Imagely\NGG\DataMapper\WPPostDriver->__construct(‘display_type’) 9 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/src/DataMappers/DisplayType.php(36): Imagely\NGG\DataMappers\DisplayType->__construct() 10 /home/carnethy/public_html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/marketing/module.marketing.php(169): Imagely\NGG\DataMappers\DisplayType::get_instance() 11 /home/carnethy/public_html/wp-includes/class-wp-hook.php(324): M_Marketing->{closure}(”) 12 /home/carnethy/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 13 /home/carnethy/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 14 /home/carnethy/public_html/wp-settings.php(700): do_action(‘init’) 15 /home/carnethy/public_html/wp-config.php(94): require_once(‘/home/carnethy/…’) 16 /home/carnethy/public_html/wp-load.php(50): require_once(‘/home/carnethy/…’) 17 /home/carnethy/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/carnethy/…’) 18 {main}

    thrown

    Hi @digbymaass,

    Sorry for the trouble,

    It looks like there might be a conflict between NextGEN Gallery and other third-party plugin activated on your site:

    Based on this, I’d recommend either of the following options:

    1) If feasible, you could deactivate all the activated except NextGEN Gallery plugin on your site. Before doing this, it’s a good idea to create a backup of your site.

    2) After you have found the defect plugin, you could reach out to the plugin’s author/support team to share details of the conflict this plugin seems to be causing. They’d hopefully be able to help!

    Let me know how it goes!

    Thread Starter digbymaass

    (@digbymaass)

    That’s completely unfeasible as I get the error emails once every few days, or more. I can’t turn off all the plugins indefinitely. It often seems to happen after an edit or some other back end operation. Also there are a lot of google results of a similar nature which might give you some clue as to what is going on.

    Thread Starter digbymaass

    (@digbymaass)

    A question – nearly every line of the error message quotes nextgen-gallery or NGG. Why does another plugin have to be the source of a conflict?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.