Title: Plugin gives error after 2.1 version update
Last modified: February 18, 2018

---

# Plugin gives error after 2.1 version update

 *  [hisureshkumar](https://wordpress.org/support/users/hisureshkumar/)
 * (@hisureshkumar)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-gives-error-after-2-1-version-update/)
 * After upgrading to Ver 2.1, it gives below error
 * Can’t use function return value in write context in /home/content/26/9542426/
   html/wp-content/plugins/quick-adsense/includes/content.php on line 35
 * Please help
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-gives-error-after-2-1-version-update%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [jshmrrsn](https://wordpress.org/support/users/jshmrrsn/)
 * (@jshmrrsn)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-gives-error-after-2-1-version-update/#post-9987410)
 * I think this is an issue with empty() prior to PHP 5.5.
 * I was able to get it working by changing line 35 on content.php to the following
   two lines:
 *     ```
       $onpost_ad_tmp_content = trim( isset($settings['onpost_ad_'.$i.'_content']) ? $settings['onpost_ad_'.$i.'_content'] : '' );  
       if( ! empty($onpost_ad_tmp_content) ) {
       ```
   
 *  [SheldonNesdale](https://wordpress.org/support/users/sheldonnesdale/)
 * (@sheldonnesdale)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-gives-error-after-2-1-version-update/#post-9987657)
 * Same issue for me (17 websites down). So I went to the plugin archive, downloaded
   an older version of the plugin, connected to each website via ftp, renamed the
   existing plugin by adding a dot onto the end, and uploaded the slightly older
   plugin. All my websites are now back up. (I just have to remember not to update
   them until this bug is fixed).
 *  [quickadsense](https://wordpress.org/support/users/quickadsense/)
 * (@quickadsense)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-gives-error-after-2-1-version-update/#post-9990580)
 * Sorry for any inconvenience. The update 2.2 has been published and we are waiting
   for WordPress support approval.
 *  Thread Starter [hisureshkumar](https://wordpress.org/support/users/hisureshkumar/)
 * (@hisureshkumar)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-gives-error-after-2-1-version-update/#post-9995212)
 * Great. I just updated Ver 2.2 and Quick adsense working fine. Thanks a ton

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

The topic ‘Plugin gives error after 2.1 version update’ is closed to new replies.

 * ![](https://ps.w.org/quick-adsense/assets/icon-256x256.png?rev=2682075)
 * [Quick Adsense](https://wordpress.org/plugins/quick-adsense/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-adsense/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-adsense/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-adsense/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-adsense/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-adsense/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [hisureshkumar](https://wordpress.org/support/users/hisureshkumar/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/plugin-gives-error-after-2-1-version-update/#post-9995212)
 * Status: not resolved