Title: Fatal error: Cannot use string offset as an array in
Last modified: August 21, 2016

---

# Fatal error: Cannot use string offset as an array in

 *  Resolved [zeluis](https://wordpress.org/support/users/zeluis/)
 * (@zeluis)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/)
 * Hi, I’ve just install the plugin and every thing was working nicely. I then updated
   the plugin to the newest version. Now my front end of the site is blank and I
   get this error message:
 * Fatal error: Cannot use string offset as an array in /my/site/wp/wpcontent/plugins/
   wppizza/classes/wppizza.gateways.inc.php on line 95
 * /**if we have not yet set a gateway , use the first one **/
    if(!isset($_SESSION[
   $this->pluginSessionGlobal][‘userdata’][‘gateway’])){ **line 95: $_SESSION[$this-
   >pluginSession][‘gateway-selected’][‘gw’]=($this->pluginGatewaySelected);**.
 * I’ve tried many proposed solutions (uninstall all plugins, install them one by
   one-no luck, installed the old version again-no luck, checked my functions.php
   for some error-all good with the code, etc) but none seems to work.
 * [https://wordpress.org/plugins/wppizza/](https://wordpress.org/plugins/wppizza/)

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

 *  Plugin Author [ollybach](https://wordpress.org/support/users/ollybach/)
 * (@ollybach)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/#post-4956438)
 * got a link ?
 *  Thread Starter [zeluis](https://wordpress.org/support/users/zeluis/)
 * (@zeluis)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/#post-4956457)
 * Hi, here is the link:
    [http://fp-ids.com/servdev/brunos-shishabar/](http://fp-ids.com/servdev/brunos-shishabar/)
 * It’s really a challenge. I’ve been for three days trying to find a solution before
   i decided to post here. Thanks in advance for your attention and well done for
   the Best ordering pluging in the entire wordpress’s plugins directory. I’ve tried
   all of them (free-plugins).
 *  Plugin Author [ollybach](https://wordpress.org/support/users/ollybach/)
 * (@ollybach)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/#post-4956463)
 * ok,thanks
    i’ll have a look at it tomorrow it’s quite late here
 *  Thread Starter [zeluis](https://wordpress.org/support/users/zeluis/)
 * (@zeluis)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/#post-4956467)
 * No problem. I’ll continue to try. I really want it to work.
    Greetings from the
   Alps.
 *  Plugin Author [ollybach](https://wordpress.org/support/users/ollybach/)
 * (@ollybach)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/#post-4956516)
 * you’ve got the plugin disabled currently.
    can’t really check things until you’ve
   re-enabled it.
 * let me know when you’ve had a chance to do so
 * thanks
 *  Thread Starter [zeluis](https://wordpress.org/support/users/zeluis/)
 * (@zeluis)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/#post-4956534)
 * Hello again. I just enabled the plug in again…and it works again!!
    I have no
   explanation to why it just works again. Here are the steps i did since my last
   entrie:
 * 1- deactivated the plugin;
    2- reactivated all other plugins; 3- logout from 
   the dashboard; 4- close the chrome tab; 5- cleared browser cache; 6- close the
   browser; 7- went to sleep; 8-open up the browser and logged in to the dasboard;
   9-check your post; 10- activated the plugin again.. and voila. It Works Again!!
 * Obviously this is not a clear explanation as to why or what might be causing 
   the error.
    As a reference:
    -  I’ve looked into server environment (memory size, global off, etc),
    - wp-cache issues (disabled all cache plugins, cleared cache, cleaned db)
    - array not being offset as a string **(echo $this_variable[0][0];Bang! We get
      the error: Fatal error: Cannot use string offset as an array in )**
    - another plugin interference
    - even possible mark up, javascript and css errors
 *  but could not find a clear cause for this error.
    Like i said before, it was
   working fine, with all other plugins (a few) and customized scripts and functions.
   Only after the update this error showed up.
 * Sorry for the long post but i felt that was a important issue.
    Here is the link
   again with the plugin working nicely. Some css styling was los but other than
   that it looks like it’s stable for now. I’ll continue to investigate this issue.
 * [http://fp-ids.com/servdev/brunos-shishabar/our-menu/pizza/](http://fp-ids.com/servdev/brunos-shishabar/our-menu/pizza/)
 *  Plugin Author [ollybach](https://wordpress.org/support/users/ollybach/)
 * (@ollybach)
 * [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/#post-4956537)
 * >Hello again. I just enabled the plug in again…and it works again!!
    good
 * >I have no explanation to why it just works again.
    nor have i , as i never had
   a chance to look at it really …that’s ok though. as long as it works
 * > Some css styling was los
    i assume – although i might be wrong – that you did
   your additional styling directly in the css ? if so, then yes, it would get lost
   in updates (check the faq’s as to how to override selected stylings)
 *  i had a bit of a ply around with some scenarios here, and the only thing i could
   recreate is a PHPNotice if NO gateway was enabled (which I will fix in the next
   update). However, I never managed to make it throw a FATAL error..
 * ( if you do $this_variable[0][0] somewhere but declared $this_variable=” previously
   then it will however always throw that error….did you do some customisations 
   somewhere ?….)
 * either way, I close this for now as it a) works again and b) i cannot do anything
   if there isnt an error to start off with anymore….:)

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

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

 * ![](https://ps.w.org/wppizza/assets/icon-256x256.png?rev=2498121)
 * [WPPizza - A Restaurant Plugin](https://wordpress.org/plugins/wppizza/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wppizza/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wppizza/)
 * [Active Topics](https://wordpress.org/support/plugin/wppizza/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wppizza/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wppizza/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [ollybach](https://wordpress.org/support/users/ollybach/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/fatal-error-cannot-use-string-offset-as-an-array-in-3/#post-4956537)
 * Status: resolved