Support » Plugin: Ads by » Error and Shortcode not working after PHP upgrade

  • Resolved gab1982


    Hi, I love the plugin and recently the PHP version was upgraded on my server to 5.4.22 and now I get this error showing on the site:

    Warning: Illegal string offset ‘dfads_enable_shortcodes_in_widgets’ in /home/bbhost7/public_html/files/wordpress/wp-content/plugins/ads-by-datafeedrcom/dfads.php on line 80

    I upgraded wordpress to the latest just to make sure it wasn’t that and it still didn’t help, when activated and the error shows I cannot access the admin cp so I have to keep it deactivated for now 🙁

    Will a update for this plugin be released to address this issue?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author datafeedr



    If you change this:

    $output = get_option( 'dfads-settings' );

    To this:

    $output = get_option( 'dfads-settings', array() );

    Here: /wp-content/plugins/ads-by-datafeedrcom/dfads.php (Line #79)

    Does that fix the problem for you?


    I also had this issue; tried the author’s suggested fix, did not change the error. I ended up commenting out the “shortcodes in widgets” lines, 79-84 I believe? Not having enough coding knowledge, I couldn’t figure out what was causing the issue.

    Plugin Author datafeedr


    This should be fixed now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error and Shortcode not working after PHP upgrade’ is closed to new replies.