Title: Warning: Illegal string offset
Last modified: August 21, 2016

---

# Warning: Illegal string offset

 *  Resolved [thewirelessguy](https://wordpress.org/support/users/thewirelessguy/)
 * (@thewirelessguy)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-illegal-string-offset-3/)
 * I’m getting an error in the header of my website:
 * Warning: Illegal string offset ‘google_api’ in /wp-content/plugins/geo-my-wp/
   geo-my-wp.php on line 68
    Warning: Illegal string offset ‘country_code’ in /wp-
   content/plugins/geo-my-wp/geo-my-wp.php on line 68 Warning: Illegal string offset‘
   use_theme_color’ in /wp-content/plugins/geo-my-wp/geo-my-wp.php on line 91 Warning:
   Illegal string offset ‘auto_locate’ in /wp-content/plugins/geo-my-wp/geo-my-wp.
   php on line 107 Warning: Illegal string offset ‘locate_message’ in /wp-content/
   plugins/geo-my-wp/geo-my-wp.php on line 108
 * [http://wordpress.org/extend/plugins/geo-my-wp/](http://wordpress.org/extend/plugins/geo-my-wp/)

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

 *  Plugin Author [Eyal Fitoussi](https://wordpress.org/support/users/ninjew/)
 * (@ninjew)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/warning-illegal-string-offset-3/#post-3656389)
 * Hi,
    These are warning (not errors) of GEO my Wp – “Showing all PHP notices and
   warnings often results in error messages for things that don’t seem broken, but
   do not follow proper data validation conventions inside PHP.” i am working on
   removing all warnings and notices and hopefully will be clear by next update.
 * you can turn off the warnings by setting wp_debug to false in your wp-config.
   php:
    define(‘WP_DEBUG’, false); unless you have another reason to have it on.
 *  [duffingtonqc](https://wordpress.org/support/users/duffingtonqc/)
 * (@duffingtonqc)
 * [13 years ago](https://wordpress.org/support/topic/warning-illegal-string-offset-3/#post-3656596)
 * Hi there,
 * I am having the same problem.
 * When you look at the site on the front end there are line of text as listed above.
 * When I went into the wp-config.php file it was already set to false.
 * Is there anything else I can do?
 * Would really welcome some help.
 * May thanks
 *  Plugin Author [Eyal Fitoussi](https://wordpress.org/support/users/ninjew/)
 * (@ninjew)
 * [13 years ago](https://wordpress.org/support/topic/warning-illegal-string-offset-3/#post-3656597)
 * Hi duffingtonqc,
    [Here](http://geomywp.com/blog/geo-my-wp-2-0-beta/) i posted
   a beta of the next update where I have cleaned up most of the warnings. Read 
   the post before updating as i have made many changes in this update.
 *  [duffingtonqc](https://wordpress.org/support/users/duffingtonqc/)
 * (@duffingtonqc)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-3/#post-3656600)
 * Thanks for that.
 * I have downloaded the Beta and have got this warning message coming up.
 * Warning: Cannot use a scalar value as an array in /homepages/13/d463813826/htdocs/
   Singing/Singing Lessons/wp-includes/class.wp-scripts.php on line 145
 * I also can’t seem to get the results from a search it send me to a 404 error 
   page.
 * I could be doing something wrong though haha
 * Many thanks
 *  [duffingtonqc](https://wordpress.org/support/users/duffingtonqc/)
 * (@duffingtonqc)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-3/#post-3656601)
 * Thanks for that.
 * I have downloaded the Beta and have got this warning message coming up.
 * Warning: Cannot use a scalar value as an array in /homepages/13/d463813826/htdocs/
   Singing/Singing Lessons/wp-includes/class.wp-scripts.php on line 145
 * I also can’t seem to get the results from a search it send me to a 404 error 
   page.
 * I could be doing something wrong though haha
 * Many thanks
 *  Plugin Author [Eyal Fitoussi](https://wordpress.org/support/users/ninjew/)
 * (@ninjew)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-3/#post-3656602)
 * Hi,
    The warning you are getting will be fixed in the next beta which should 
   be posted by tomorrow so you should check back and download it. As for your search
   results not showing the only thing I can think of that will cause 404 page instead
   of results is that you are using default permalinks. If you do you need to change
   it in order to use GEO my WP.
 * Also, for other issues/feedback you might get into please report in the comment
   of the post on my site. It is much easier for me to track it.
 * Thank you

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

The topic ‘Warning: Illegal string offset’ is closed to new replies.

 * ![](https://ps.w.org/geo-my-wp/assets/icon-256x256.gif?rev=2803407)
 * [GEO my WP](https://wordpress.org/plugins/geo-my-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geo-my-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geo-my-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/geo-my-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geo-my-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geo-my-wp/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Eyal Fitoussi](https://wordpress.org/support/users/ninjew/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-3/#post-3656602)
 * Status: resolved