Title: Illegal string offset
Last modified: August 24, 2016

---

# Illegal string offset

 *  Resolved [chillmen](https://wordpress.org/support/users/chillmen/)
 * (@chillmen)
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/)
 * Whenever i try to save the adsense data i get this error messages, any idea what
   could be causing this?
 * Warning: Illegal string offset ‘front’ in /home/xxxxxxxx/public_html/wp-content/
   plugins/jetpack-mobile-theme-ads/jp-minileven-ads.php on line 165
    checked=’checked’/
   > Page d’accueil, pages d’archives, et pages de résultats de recherche Warning:
   Illegal string offset ‘post’ in /home/xxxxxxxx/public_html/wp-content/plugins/
   jetpack-mobile-theme-ads/jp-minileven-ads.php on line 170 checked=’checked’ /
   > Articles Warning: Illegal string offset ‘page’ in /home/xxxxxxxx/public_html/
   wp-content/plugins/jetpack-mobile-theme-ads/jp-minileven-ads.php on line 175 
   checked=’checked’ /> Pages
 * [https://wordpress.org/plugins/jetpack-mobile-theme-ads/](https://wordpress.org/plugins/jetpack-mobile-theme-ads/)

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

 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086865)
 * Could you try to add the following code in your theme’s functions.php file, or
   in a [functionality plugin](https://wordpress.org/plugins/functionality/)?
 *     ```
       function jeherve_test_jp_mini_ads_options() {
       	$options = get_option( 'jp_mini_ads_strings' );
       	print_r( $options );
       }
       add_action( 'wp_footer', 'jeherve_test_jp_mini_ads_options' );
       ```
   
 * Once you’ve done so, check the footer of your site, and copy the code that appears
   there. You can then remove the code above.
 * Could you then paste the code in a reply to this thread?
 * Thanks!
 *  Thread Starter [chillmen](https://wordpress.org/support/users/chillmen/)
 * (@chillmen)
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086878)
 * Hi,
    Here is the code: Array ( [before_content] => 1 [show] => 1 [google_ad_client]
   => ca-pub-xxxxxxxxxxxxxxxx [google_ad_slot] => xxxxxxxxxx [google_ad_width] =
   > 320 [google_ad_height] => 50 [custom_ad_code] => )
 * Thanks
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086881)
 * That’s interesting, there are no problems with the plugin options, and yet something
   seems to be missing with the way the post types are set on your site.
 * Could you try to deactivate all other plugins, one at a time, and let me know
   if you find a conflicting plugin?
 * Thanks!
 *  Thread Starter [chillmen](https://wordpress.org/support/users/chillmen/)
 * (@chillmen)
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086907)
 * Hi,
    Deactivate plugins one by one show no improvement, I’ve made a test on another
   website exactly same problem. I tought it could be related to the theme, i’m 
   using genesis framework, i change it to twenty twelve, no improvement. Also there
   is something strange, if i save the plugin for the second time the warning disappear,
   i save again the warnings are back, i save again they gone, etc…
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086914)
 * I can’t seem to reproduce the issue on my end, unfortunately.
 * Could you go to Jetpack > Settings in your dashboard, and click on “Configure”
   next to the Mobile Theme module? Do you experience similar issues on that page?
 *  Thread Starter [chillmen](https://wordpress.org/support/users/chillmen/)
 * (@chillmen)
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086921)
 * Hi,
    I checked that, nothing to report. If you want to check that directly let
   me know where to send you login infos.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086922)
 * Could you try to make the following changes to your copy of my plugin, and let
   me know if it helps?
    [https://github.com/jeherve/jp-minileven-ads/commit/6ce912163993c475186efd7a974913a1fcb51fd6](https://github.com/jeherve/jp-minileven-ads/commit/6ce912163993c475186efd7a974913a1fcb51fd6)
 * Thanks!
 *  Thread Starter [chillmen](https://wordpress.org/support/users/chillmen/)
 * (@chillmen)
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086923)
 * Hi,
    The first problem is solved no more warning, but now if i check the 3 options
   front, posts and pages, only pages left checked when i save
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086929)
 * I tested things on my end, and it seems to work.
 * Could you double check that you’ve modified the “name” parameter as well, as 
   per the link I posted earlier?
 *  Thread Starter [chillmen](https://wordpress.org/support/users/chillmen/)
 * (@chillmen)
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086930)
 * Yes it’s working now.
    First time i changed only the code from <th scope=”row”
   > to </td> When i changed the whole “jp-minileven-ads.php” code, it worked. Thank
   you a lot for your help and your time.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086931)
 * Excellent, thanks for testing this! I’ll update the plugin on WordPress.org so
   everyone can benefit from the changes.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/jetpack-mobile-theme-ads_82a93e.svg)
 * [Mobile Theme Ads for Jetpack](https://wordpress.org/plugins/jetpack-mobile-theme-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack-mobile-theme-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack-mobile-theme-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack-mobile-theme-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack-mobile-theme-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack-mobile-theme-ads/reviews/)

## Tags

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

 * 11 replies
 * 2 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/illegal-string-offset-15/#post-6086931)
 * Status: resolved