• Resolved Kuba Mikita

    (@kubitomakita)


    On PHP 7.2 the plugin gives an error:

    PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /var/www/html/.../wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_transient_manager.php:116

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Imagely

    (@imagely)

    Hi @kubitomakita!

    Maybe you already perform this troubleshooting step, but I have to double check.
    Did you try to check if there is an existing conflict?

    1.- Temporarily deactivate all your plugins except NextGen Galler.
    2.- Is the problem solved? Then, it was caused by one of your plugins. Please check one by one and find the one causing the problem.
    3.- If the problem is not solved with the deactivation of the plugins, try changing to a standard WordPress theme, it could be a conflict with your current theme.

    Please, keep us posted.

    -Gaby

    Plugin Contributor Imagely

    (@imagely)

    Because it has been a month or more since your last reply, I am going to mark this as resolved as I assume you have found a solution. Please feel free to reply again if you still have questions. 🙂

    Thanks!

    -Gaby

    Getting the same error.

    Fatal error: Uncaught Error: Cannot use string offset as an array in C:\xampp\htdocs\…\wp-content\plugins\nextgen-gallery\non_pope\class.photocrati_transient_manager.php:116 Stack trace: #0 C:\xampp\htdocs\\…\\wp-content\plugins\nextgen-gallery\non_pope\class.photocrati_transient_manager.php(134): C_Photocrati_Transient_Manager->_track_key(‘2__974818834’) #1 C:\xampp\htdocs\\…\\wp-content\plugins\nextgen-gallery\non_pope\class.photocrati_transient_manager.php(214): C_Photocrati_Transient_Manager->set(‘2__974818834’, Array, 1800) #2 C:\xampp\htdocs\\…\\wp-content\plugins\nextgen-gallery\products\photocrati_nextgen\modules\mvc\package.module.mvc.php(138): C_Photocrati_Transient_Manager::update(‘2__974818834’, Array) #3 [internal function]: A_MVC_Router->cache_lookups() #4 {main} thrown in C:\xampp\htdocs\\…\\wp-content\plugins\nextgen-gallery\non_pope\class.photocrati_transient_manager.php on line 116

    Looking in more detail for this error, it is related to WP Object Cache, used for storing database queries results and serve them without repeatedly query the database.
    Quick fix for this error is to deactivate W3 Total Cache Object Cache setting.

    The error reported above occurs with PHP 7.3.3 both in WordPress 4.9.10 and WP 5.1.1

    Thank you.
    Best Regards

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Fatal error: Uncaught Error: Cannot use string offset as an array’ is closed to new replies.