Title: PHP Fatal error: Uncaught Error: Cannot use string offset as an array
Last modified: October 24, 2018

---

# PHP Fatal error: Uncaught Error: Cannot use string offset as an array

 *  Resolved [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-3/)
 * 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](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-3/#post-10813389)
 * Hi [@kubitomakita](https://wordpress.org/support/users/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](https://wordpress.org/support/users/imagely/)
 * (@imagely)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-3/#post-10991338)
 * 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
 *  [pedromarqueslx](https://wordpress.org/support/users/pedromarqueslx/)
 * (@pedromarqueslx)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-3/#post-11366129)
 * 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.
    -  This reply was modified 7 years, 2 months ago by [pedromarqueslx](https://wordpress.org/support/users/pedromarqueslx/).
 *  [pedromarqueslx](https://wordpress.org/support/users/pedromarqueslx/)
 * (@pedromarqueslx)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-3/#post-11366769)
 * 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
    -  This reply was modified 7 years, 2 months ago by [pedromarqueslx](https://wordpress.org/support/users/pedromarqueslx/).

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.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [string offset](https://wordpress.org/support/topic-tag/string-offset/)
 * [transient](https://wordpress.org/support/topic-tag/transient/)

 * 4 replies
 * 3 participants
 * Last reply from: [pedromarqueslx](https://wordpress.org/support/users/pedromarqueslx/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-3/#post-11366769)
 * Status: resolved