Title: PHP Fatal error: Uncaught Error: Cannot use string offset as an array
Last modified: January 25, 2017

---

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

 *  Resolved [kda406](https://wordpress.org/support/users/kda406/)
 * (@kda406)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-2/)
 * Hi, I’m using Nextgen-gallery with PHP 7.1 on a CentOS physical server. I see
   this in my debug log:
 *     ```
       [25-Jan-2017 19:27:52 UTC] PHP Fatal error:  Uncaught Error: Cannot use string offset as an array in /var/www/clients/client2/web15/web/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_transient_manager.php:114
       Stack trace:
       #0 /var/www/clients/client2/web15/web/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_transient_manager.php(126): C_Photocrati_Transient_Manager->_track_key('2__974818834')
       #1 /var/www/clients/client2/web15/web/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_transient_manager.php(153): C_Photocrati_Transient_Manager->set('2__974818834', Array, 1800)
       #2 /var/www/clients/client2/web15/web/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/mvc/package.module.mvc.php(137): C_Photocrati_Transient_Manager::update('2__974818834', Array)
       #3 [internal function]: A_MVC_Router->cache_lookups()
       #4 {main}
         thrown in /var/www/clients/client2/web15/web/wp-content/plugins/nextgen-gallery/non_pope/class.photocrati_transient_manager.php on line 114
       ```
   
 * Is there anything I can do to fix this or is it a bug for the developers?
    Thanks,
   Kyle

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-2/#post-8706957)
 * [@kda406](https://wordpress.org/support/users/kda406/) – There may be some refactoring
   we need to consider for PHP 7.1 although I am not seeing that specific fatal 
   error message … can you describe what you were doing to trigger it?
 * Thanks!
 * – Cais.
 *  Thread Starter [kda406](https://wordpress.org/support/users/kda406/)
 * (@kda406)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-2/#post-8707190)
 * [@photocrati](https://wordpress.org/support/users/photocrati/) – This was not
   the only error I had with PHP 7.1 and WordPress 4.7.x. I finally threw my hands
   in the air, uninstalled 7.1, and installed PHP 7.0. I am no longer seeing this
   error coming up since I changed back to PHP 7.0. Since I can no longer produce
   this error, I will mark the status as “resolved”.
    Thanks, Kyle
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-cannot-use-string-offset-as-an-array-2/#post-8716018)
 * [@kda406](https://wordpress.org/support/users/kda406/) – Thanks for the update.
   There are some rather significant changes in PHP 7.1 and we will be looking at
   getting the fatal errors sorted out as soon as we can.
 * – Cais.

Viewing 3 replies - 1 through 3 (of 3 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

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [uncaught error](https://wordpress.org/support/topic-tag/uncaught-error/)

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