• For a while now, a critical error has been appearing on our site very frequently:

    WordPress version 6.4.3
    
    Current plugin: NextGEN Gallery (version 3.58)
    
    PHP version 8.2.15
    
    Error Details
    
    =============
    
    An error of type E_ERROR was caused in line 93 of the file /home/forge/**********/public/wp-content/plugins/nextgen-gallery/src/Util/Transient.php. Error message: Uncaught TypeError: Cannot access offset of type string on string in /home/forge/**********/public/wp-content/plugins/nextgen-gallery/src/Util/Transient.php:93
    
    Stack trace:
    
    #0 /home/forge/**********/public/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(192): Imagely\NGG\Util\Transient->get_group_id()
    
    #1 /home/forge/**********/public/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(244): Imagely\NGG\Util\Transient->clear()
    
    #2 /home/forge/**********/public/wp-content/plugins/nextgen-gallery/src/Util/Transient.php(258): Imagely\NGG\Util\Transient->clear()
    
    #3 /home/forge/**********/public/wp-content/plugins/nextgen-gallery/src/Util/Installer.php(130): Imagely\NGG\Util\Transient::flush()
    
    #4 /home/forge/**********/public/wp-content/plugins/nextgen-gallery/nggallery.php(848): Imagely\NGG\Util\Installer::update()
    
    #5 /home/forge/**********/public/wp-includes/class-wp-hook.php(324): C_NextGEN_Bootstrap->update()
    
    #6 /home/forge/**********/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    
    #7 /home/forge/**********/public/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    #8 /home/forge/**********/public/wp-settings.php(643): do_action()
    
    #9 /home/forge/**********/public/wp-config.php(108): require_once('...')
    
    #10 /home/forge/**********/public/wp-load.php(50): require_once('...')
    
    #11 /home/forge/**********/public/wp-login.php(12): require('...')
    
    #12 {main}
    
    thrown

    Attempts to reset cache in NextGen settings also end with a critical error

    • This topic was modified 9 months, 2 weeks ago by watchtowerhq.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jaime Segura

    (@jaimeimagely)

    Hi @watchtowerhq,

    I am glad to help.

    This looks like a false-positive error/detection in the?ModSecurity?module on your server.

    The rule that normally can trigger this is rule number?77229500?or?229500, you need to ask your hosting company to remove that rule or create an exception, that is an old rule that dates back to NextGen version 2.x years ago and the issue was fixed back then.

    Please keep me posted.

    Thread Starter watchtowerhq

    (@watchtowerhq)

    Hi @jaimeimagely

    In my opinion, there is an error in the Transient.php file on line 75 (add_group() method).

    if ( ! isset( $this->_groups[ $group ] ) ) {

    After changing the code to the one shown below, everything starts working properly. The missing properties will be added to the array that does not have the “id” property

    if ( ! isset( $this->_groups[ $group ]['id'] ) ) {

    • This reply was modified 8 months, 3 weeks ago by watchtowerhq.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical error’ is closed to new replies.