Title: Javascript Error
Last modified: September 1, 2016

---

# Javascript Error

 *  Resolved [mefistofelos](https://wordpress.org/support/users/mefistofelos/)
 * (@mefistofelos)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-106/)
 * Fatal error: Can’t use function return value in write context in /public_html/
   wp-content/plugins/wp-spamshield/js/jscripts.php on line 9
 * You can`t write this
    `!empty(trim($_SERVER['QUERY_STRING']))` because “trim”
   is a function.
 * [http://php.net/manual/en/function.empty.php](http://php.net/manual/en/function.empty.php)
 * [https://wordpress.org/plugins/wp-spamshield/](https://wordpress.org/plugins/wp-spamshield/)

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

 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-106/#post-7711563)
 * Hi mefistofelos,
 * Thanks for reporting that issue. That is a legitimate bug. We’ll have an update
   released quickly here with a fix.
 * After reviewing the PHP notes for the function, I can confirm that this would
   indeed happen for PHP versions below 5.5:
 * > Note:
   >  Prior to PHP 5.5, empty() only supports variables; anything else will
   > result in a parse error.
 * Although we do recommend users run PHP 5.5, 5.6 or 7.0, we want to make sure 
   that everyone running PHP 5.3 and 5.4 are taken care of as well.
 * – Scott
 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-106/#post-7711601)
 * The issue has been fixed in version 1.9.9.2.

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

The topic ‘Javascript Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-spamshield_08293a.svg)
 * [WP-SpamShield](https://wordpress.org/plugins/wp-spamshield/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-spamshield/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-spamshield/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-spamshield/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-spamshield/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-spamshield/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [redsand](https://wordpress.org/support/users/redsand/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-106/#post-7711601)
 * Status: resolved