WordPress.org

Forums

Mobile Theme Ads for Jetpack
[resolved] errors (5 posts)

  1. vulcansky
    Member
    Posted 9 months ago #

    hi, great plugin, hoping I can get it to work, but having trouble with it,

    after filling out the 4 settings... I get lines of errors:

    Warning: Illegal string offset 'front' in /h.......public_html/wp-content/plugins/jetpack-mobile-theme-ads/jp-minileven-ads.php on line 165
    checked='checked' /> Front Page, Archive Pages, and Search Results Warning: Illegal string offset 'post' in /h.....wp-content/plugins/jetpack-mobile-theme-ads/jp-minileven-ads.php on line 170
    checked='checked' /> Posts Warning: Illegal string offset 'page' in .....public_html/wp-content/plugins/jetpack-mobile-theme-ads/jp-minileven-ads.php on line 175
    checked='checked' /> Pages

    I use google adsense and I'm ok with knowing how to complete the settings with the correct info.

    I have tried uninstalling and reinstalling your plug-in. no change.

    TIA

    https://wordpress.org/plugins/jetpack-mobile-theme-ads/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 9 months ago #

    Could you try to deactivate all other plugins on your site, one at a time, and let me know if you find a conflicting plugin?

    Thanks!

  3. joliu2001
    Member
    Posted 6 months ago #

    I have the same problem. Is there a solution to this yet? Since I have some 20 active plugins, deactivating them all one by one might not be be very efficient.
    Thanks.

  4. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 6 months ago #

    Is there a solution to this yet? Since I have some 20 active plugins, deactivating them all one by one might not be be very efficient.

    I'm afraid I can't reproduce the issue on my end, so the only way for me to find out more about the problem is to eliminate possible conflicts with other plugins.

    If we can limit the problem to a specific combination of plugins, I may be able to understand what's causing the issue.

    Thanks!

  5. vagamundosblog
    Member
    Posted 3 months ago #

    Hi,

    I had the same problem. I'm not an expert, but as a workaround, I tried removing the piece of php code that was causing the error. Then I just wrote the html attribute instead. That is:

    Remove:
    <?php checked( 1, $options['show']['front'], true ); ?>
    Write:
    checked='checked'

    Remove:
    <?php checked( 1, $options['show']['post'], true ); ?>
    Write:
    checked='checked'

    Remove:
    <?php checked( 1, $options['show']['page'], true ); ?>
    Write:
    checked='checked'

    Now I can see the ad in my mobile theme. I wanted everything "checked". I don't know if this workaround works for other configurations.

Reply

You must log in to post.

About this Plugin

  • Mobile Theme Ads for Jetpack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.