Title: Version 3.01 Error
Last modified: August 22, 2016

---

# Version 3.01 Error

 *  Resolved [RWAP](https://wordpress.org/support/users/rwap/)
 * (@rwap)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/)
 * I have had to disable the plugin since upgrading to v3.01 – for some reason, 
   I get:
 * Parse error: syntax error, unexpected T_FUNCTION in …/wp-content/plugins/google-
   adsense-lite/wp-google-adsense.php on line 20
 * Oddly a PHP editor sees nothing wrong with this line (nor my PHP trained eye).
 * I have tried downloading the files and uploading them manually by FTP, but get
   the same error.
 * Any idea?
 * [https://wordpress.org/plugins/google-adsense-lite/](https://wordpress.org/plugins/google-adsense-lite/)

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

 *  Plugin Author [manojtd](https://wordpress.org/support/users/manojtd/)
 * (@manojtd)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872524)
 * This is because of the anonymous function, which is supported only in PHP5.3+.
   Is your PHP version older than 5.3?
 * I will fix this and push another update.
 *  Plugin Author [manojtd](https://wordpress.org/support/users/manojtd/)
 * (@manojtd)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872611)
 * Just pushed a release to fix this issue. Please see if it is resolved. Thanks.
 *  Thread Starter [RWAP](https://wordpress.org/support/users/rwap/)
 * (@rwap)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872673)
 * Hmm it is PHP v5.2.9 unfortunately…
 * The new v3.03 has a new issue now:
    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
   in wp-content/plugins/google-adsense-lite/google-adsense-widget.php on line 25
 *  Thread Starter [RWAP](https://wordpress.org/support/users/rwap/)
 * (@rwap)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872674)
 * I have emailed the server company to request that they upgrade the PHP version,
   but this may help others too
 *  Plugin Author [manojtd](https://wordpress.org/support/users/manojtd/)
 * (@manojtd)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872676)
 * That error, unfortunately, cannot be fixed by code modification. I cannot make
   that error go away without sacrificing some functionality. I think I will just
   add a disclaimer saying that the plugin requires PHP5.3+
 *  Thread Starter [RWAP](https://wordpress.org/support/users/rwap/)
 * (@rwap)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872678)
 * Yes – I agree that seems the best way forward rather than trying to make the 
   code backwardly compatible with an old version of PHP
 *  Plugin Author [manojtd](https://wordpress.org/support/users/manojtd/)
 * (@manojtd)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872696)
 * This issue is now fixed. The plugin shouldn’t throw an error even on PHP5.30-
   
   Please check.
 *  Thread Starter [RWAP](https://wordpress.org/support/users/rwap/)
 * (@rwap)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872720)
 * Yes – that no longer throws an error on the page so I can re-enable the plugin–
   many thanks

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

The topic ‘Version 3.01 Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-adsense-lite_abe54c.svg)
 * [Ads EZ Plugin for Google AdSense](https://wordpress.org/plugins/google-adsense-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-adsense-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-adsense-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/google-adsense-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-adsense-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-adsense-lite/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [RWAP](https://wordpress.org/support/users/rwap/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/version-301-error/#post-5872720)
 * Status: resolved