Title: Illegal string offset PHP error. Plugin stopped working :(
Last modified: August 21, 2016

---

# Illegal string offset PHP error. Plugin stopped working :(

 *  Resolved [sexymazafaka](https://wordpress.org/support/users/sexymazafaka/)
 * (@sexymazafaka)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/)
 * Dear Developer,
    I’m really like your plugin, but unfortunately it was recently
   stopped working on my server for unknown reason. It works fine until today, and
   I did not change any apache/php settings, but now all settings was cleared to
   defaults and 1) all users lost and can’t re-authorize them with message “No access
   token found” 2) plugin settings can’t be saved. Actually, plugin says that settings
   was saved successfully, but real settings always back to default after pressing“
   save settings” button. Below is a piece of php5 log. I am not quite familiar 
   with php coding and can’t find where is the real problem. I’ve only found that
   this type of error indicates that variable is wrong type (array instead of string).
 * I’ve tried to reinstall plugin few times, even manually – no luck.
 * Please help if you’ll have some free time. THANKS.
 *     ```
       [Thu Jan 09 04:13:34.765045 2014] [:error] [pid 4635] [client 66.249.78.162:49675] PHP Warning:  Illegal string offset 'general_lightbox' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 467
       [Thu Jan 09 04:13:34.765843 2014] [:error] [pid 4635] [client 66.249.78.162:49675] PHP Warning:  Illegal string offset 'general_lightbox' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 469
       [Thu Jan 09 04:13:34.766083 2014] [:error] [pid 4635] [client 66.249.78.162:49675] PHP Warning:  Illegal string offset 'general_lightbox_no_load' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 467
       [Thu Jan 09 04:13:34.766670 2014] [:error] [pid 4635] [client 66.249.78.162:49675] PHP Warning:  Illegal string offset 'general_lightbox_no_load' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 469
       [Thu Jan 09 04:13:34.766890 2014] [:error] [pid 4635] [client 66.249.78.162:49675] PHP Warning:  Illegal string offset 'general_load_header' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 467
       [Thu Jan 09 04:13:34.766932 2014] [:error] [pid 4635] [client 66.249.78.162:49675] PHP Warning:  Illegal string offset 'general_load_header' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 469
   
       [Thu Jan 09 04:29:39.318404 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'general_lightbox_no_load' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318413 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'general_lightbox' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318422 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'general_lightbox_params' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318431 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'general_block_users' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318440 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'hidden_display_link' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318449 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'hidden_widget_alignment' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318459 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'hidden_lightbox_custom_rel' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318468 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'hidden_photo_feed_offset' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318477 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'hidden_photo_feed_shuffle' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318486 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'cache_disable' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318496 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'cache_time' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318505 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'client_id' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318521 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'client_secret' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 451
       [Thu Jan 09 04:29:39.318766 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'client_id' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 467
       [Thu Jan 09 04:29:39.318819 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'client_id' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 469
       [Thu Jan 09 04:29:39.318992 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'client_secret' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 467
       [Thu Jan 09 04:29:39.319031 2014] [:error] [pid 5293] [client 192.168.1.1:33356] PHP Warning:  Illegal string offset 'client_secret' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-primary.php on line 469
       ```
   
 * [http://wordpress.org/plugins/alpine-photo-tile-for-instagram/](http://wordpress.org/plugins/alpine-photo-tile-for-instagram/)

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

 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484582)
 * I’m really sorry to hear that the plugin has stopped working. I feel like it 
   is more frustrating for a code to suddenly stop than to never work at all. All
   the errors you noted are PHP warnings, which means they should not cause the 
   code to fail. Nonetheless, I rewrote the sections that were causing the problems.
   Could you update the plugin and see if the problem is fixed?
    It sounds to me
   like something is causing WordPress’s option functions ( get_option() and update_option())
   to not work or to delete the plugin’s record. One of the best ways to find a 
   problem is to deactivate all plugins and change to the default WordPress theme(
   Twenty Fourteen). Then reactivate the plugins one at a time. Hope this helps.
   Best, Eric
 *  Thread Starter [sexymazafaka](https://wordpress.org/support/users/sexymazafaka/)
 * (@sexymazafaka)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484590)
 * Dear Eric,
 * Thanks for your suggestions and update, but unfortunately it was not helpful.
   I’ve deactivated everything (actually I don’t use too much plugins), and changed
   to default theme, but everything remains the same – plugin can’t access its settings..
   Same php warning, same behavior – can’t save settings (always defaults), can’t
   store users (but it is asking for authorization from instagram). In case you’ll
   have some ideas, please let me know. Probably it is not the plugin issue but 
   some PHP misconfiguration on my server side. Strange thing is that other plugins
   are working normally. BTW when dealing with settings, this PHP warning throwing
   from another part of the plugin:
 *     ```
       [Thu Jan 09 16:51:51.861850 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'general_loader' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.861938 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'general_highlight_color' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.861958 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'general_hide_message' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.861970 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'general_load_header' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.861981 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'general_lightbox_no_load' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.861994 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'general_lightbox' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862009 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'general_lightbox_params' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862077 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'general_block_users' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862089 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'hidden_display_link' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862101 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'hidden_widget_alignment' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862112 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'hidden_lightbox_custom_rel' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862124 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'hidden_photo_feed_offset' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862135 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'hidden_photo_feed_shuffle' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862153 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'cache_disable' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       [Thu Jan 09 16:51:51.862271 2014] [:error] [pid 18872] [client 192.168.1.9:49595] PHP Warning:  Illegal string offset 'cache_time' in /home/crasher/www/poznamka/wp-content/plugins/alpine-photo-tile-for-instagram/gears/alpinebot-admin.php on line 27, referer: http://poznamka.com.tw/wp-admin/options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=plugin-settings
       ```
   
 * Problem with same variable – $options array(). Plugin is disabled for now, but
   maybe you can check my site. I am not sure this could help, but just in case –
   [http://poznamka.com.tw](http://poznamka.com.tw)
 * THANKS!
 *  Thread Starter [sexymazafaka](https://wordpress.org/support/users/sexymazafaka/)
 * (@sexymazafaka)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484598)
 * Dear Eric,
 * In addition, I’ve tested your other plugins for the same bug presence, but they
   are works fine! G+/Picasa and Tumblr works just like a charm, settings are always
   saved, no any warnings in logs… I hope this information could be helpful somehow..
 *  Thread Starter [sexymazafaka](https://wordpress.org/support/users/sexymazafaka/)
 * (@sexymazafaka)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484600)
 * Dear Eric,
 * I’ve found a part of the problem. I’ve deleted MySQL database records for your
   plugin and everything started works fine as before.
 * I’ve got this issue AGAIN when I’ve tried to authorize second user. Please check
   it on your side. Only one user works.
 * I’ve checked mysql record after adding second user and found that it is corrupted(
   not completed):
 *     ```
       images.ak.instagram.com/profiles/profile_30900769_75sq_1374133483.jpg";s:8:"fullname";s:31:"Sergey
       ```
   
 * As you can see, end of the record just truncated somehow (no trailing quote and
   overall looks incomplete).
 * EDIT: After future investigation I’ve found that this problem is about to appear
   when in user’s instagram profile description are some unicode control characters
   like Emoji. My first user have no such Emoji signs, just plain text. But another
   user’s description contains many Emoji characters. You can see it [here](http://instagram.com/sexymazafaka).
   MySQL record just truncated at the first Emoji character (After “Sergey”). Looks
   like they are used somewhere in php or mysql as control characters and leads 
   to corrupted database entry.
 * Can we try to fix this issue? 🙂
 * With warm regards,
    Sergey
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484636)
 * It looks like the Emoji characters cause a silent error in PHP’s json_decode 
   function, causing the user data to be parsed incorrectly. I added a filter to
   try and remove any control characters. Can you delete the plugin from your website
   and then install it again? I’ve updated to plugin but I don’t want to change 
   the version number until I know this worked. Please let me know if the mysql 
   record still looks corrupted.
    Best, Eric
 *  Thread Starter [sexymazafaka](https://wordpress.org/support/users/sexymazafaka/)
 * (@sexymazafaka)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484638)
 * Dear Eric,
 * Huge thanks to you, now it is working perfectly!
    You got a small donation from
   me for your great job.
 * Thanks again!
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484639)
 * You are welcome. Glad I could help 🙂
 *  Plugin Author [theAlpinePress](https://wordpress.org/support/users/thealpinepress/)
 * (@thealpinepress)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484640)
 * Would you mind rating the plugin?
 *  Thread Starter [sexymazafaka](https://wordpress.org/support/users/sexymazafaka/)
 * (@sexymazafaka)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484642)
 * Done!
 *  Thread Starter [sexymazafaka](https://wordpress.org/support/users/sexymazafaka/)
 * (@sexymazafaka)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484664)
 * Eric, a little feature request – could you please add custom text field to widget
   after images? Of course, if you’ll have some time 🙂 It could be nice to add 
   link to user’s instagram profile or something like that. Now I’ve done it with
   separate “text” widget, but can’t reduce space between widgets, so they are bit
   far from each other (you can see what I am talking about on my [blog](http://poznamka.com.tw).
 * Thanks!

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

The topic ‘Illegal string offset PHP error. Plugin stopped working :(’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/alpine-photo-tile-for-instagram_978a78.
   svg)
 * [Alpine Photo Tile for Instagram](https://wordpress.org/plugins/alpine-photo-tile-for-instagram/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alpine-photo-tile-for-instagram/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alpine-photo-tile-for-instagram/)
 * [Active Topics](https://wordpress.org/support/plugin/alpine-photo-tile-for-instagram/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alpine-photo-tile-for-instagram/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alpine-photo-tile-for-instagram/reviews/)

## Tags

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

 * 10 replies
 * 2 participants
 * Last reply from: [sexymazafaka](https://wordpress.org/support/users/sexymazafaka/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-error-plugin-stopped-working/#post-4484664)
 * Status: resolved