Title: Error and Shortcode not working after PHP upgrade
Last modified: August 21, 2016

---

# Error and Shortcode not working after PHP upgrade

 *  Resolved [gab1982](https://wordpress.org/support/users/gab1982/)
 * (@gab1982)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-and-shortcode-not-working-after-php-upgrade/)
 * 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?
 * thanks
 * [http://wordpress.org/plugins/ads-by-datafeedrcom/](http://wordpress.org/plugins/ads-by-datafeedrcom/)

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

 *  Plugin Author [datafeedr](https://wordpress.org/support/users/datafeedrcom/)
 * (@datafeedrcom)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-and-shortcode-not-working-after-php-upgrade/#post-4409710)
 * Hi
 * 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?
 * Eric
 *  [raptordrew](https://wordpress.org/support/users/raptordrew/)
 * (@raptordrew)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-and-shortcode-not-working-after-php-upgrade/#post-4409760)
 * 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](https://wordpress.org/support/users/datafeedrcom/)
 * (@datafeedrcom)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/error-and-shortcode-not-working-after-php-upgrade/#post-4409761)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/ads-by-datafeedrcom.svg)
 * [Ads by datafeedr.com](https://wordpress.org/plugins/ads-by-datafeedrcom/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ads-by-datafeedrcom/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ads-by-datafeedrcom/)
 * [Active Topics](https://wordpress.org/support/plugin/ads-by-datafeedrcom/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ads-by-datafeedrcom/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ads-by-datafeedrcom/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [datafeedr](https://wordpress.org/support/users/datafeedrcom/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/error-and-shortcode-not-working-after-php-upgrade/#post-4409761)
 * Status: resolved