Title: Syntax error &#8211; cannot activate after plugin update
Last modified: August 30, 2016

---

# Syntax error – cannot activate after plugin update

 *  Resolved [gmichael7](https://wordpress.org/support/users/gmichael7/)
 * (@gmichael7)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/)
 * I updated several plugins, URL params being one of 4. The site displayed only
   a blank white screen after update. I deactivated all plugins via PHPmyadmin. 
   The site came back live, and I began reactivating all plugins. URL Params gave
   this error:
 * Plugin could not be activated because it triggered a fatal error.
 *  Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home6/lawcasel/
   public_html/carsinbk/wp-content/plugins/url-params/urlparams.php on line 65
 * [https://wordpress.org/plugins/url-params/](https://wordpress.org/plugins/url-params/)

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

 *  [aaronrobbins](https://wordpress.org/support/users/aaronrobbins/)
 * (@aaronrobbins)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/#post-6437941)
 * Hey gmichael,
 * I had the same problem and rewrote that section of the plugin to be more readable.
   You can download my fix here: [http://aaronrobbins.com/wp-content/uploads/urlparams-fix.zip](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/aaronrobbins.com/wp-content/uploads/urlparams-fix.zip?output_format=md)
 * You just need to unzip the urlparams.php file and replace the file of the same
   name in your plugins/url-params/ folder
 * Should hold you over until the plugin author updates.
 * -Aaron
 *  Plugin Author [Jeremy B. Shapiro](https://wordpress.org/support/users/jeremyshapiro/)
 * (@jeremyshapiro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/#post-6437949)
 * Thanks for the heads up, gmichael7 and for tracking this down, aaronrobbins. 
   Out of curiosity, do you know what version of PHP you’re using on your sites?
 *  [aaronrobbins](https://wordpress.org/support/users/aaronrobbins/)
 * (@aaronrobbins)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/#post-6437950)
 * Thanks for all your work on this plugin Jeremy. Appreciate it. Here is the information
   you requested. Keep up the great work on this project.
 * PHP Version 5.3.29
 * Configure Command ‘./configure’ ‘–prefix=/usr/local/php-5.3.29’ ‘–enable-zip’‘–
   enable-cgi’ ‘–enable-cli’ ‘–enable-fastcgi’ ‘–disable-debug’ ‘–disable-rpath’‘–
   disable-static’ ‘–with-pic’ ‘–with-openssl=/usr’ ‘–enable-bcmath’ ‘–with-bz2’‘–
   enable-calendar’ ‘–enable-ctype’ ‘–with-curl’ ‘–with-db4’ ‘–with-zlib-dir=/usr’‘–
   with-xsl’ ‘–enable-exif’ ‘–enable-ftp’ ‘–with-gd’ ‘–with-ttf’ ‘–with-mime-magic
   =/usr/share/file/magic.mime’ ‘–enable-gd-native-ttf’ ‘–with-jpeg-dir=/usr’ ‘–
   with-png-dir=/usr’ ‘–with-freetype-dir=/usr’ ‘–with-gettext’ ‘–with-iconv’ ‘–
   with-imap’ ‘–with-kerberos=/usr’ ‘–with-imap-ssl=/usr’ ‘–enable-mbstring’ ‘–with-
   mhash’ ‘–with-mysql=/usr/bin/mysql_config’ ‘–with-mysqli=/usr/bin/mysql_config’‘–
   with-pcre-regex=/usr’ ‘–with-pgsql’ ‘–with-pspell=/usr’ ‘–enable-sockets’ ‘–enable-
   wddx’ ‘–with-xmlrpc’ ‘–with-zlib=/usr’ ‘–with-pear’ ‘–with-layout=GNU’ ‘–with-
   ldap’ ‘–with-sqlite’ ‘–enable-pdo’ ‘–with-pdo-mysql=/usr’ ‘–with-pdo-pgsql=/usr’‘–
   enable-soap’ ‘–with-mcrypt’ ‘–with-pcre-regex=/usr’
 *  Plugin Author [Jeremy B. Shapiro](https://wordpress.org/support/users/jeremyshapiro/)
 * (@jeremyshapiro)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/#post-6437951)
 * This had to do with anonymous functions not being allowed before PHP 5.3 meaning
   that it only affected folks running old versions of PHP. I’ve updated the plugin
   to be more backwards compatible with older versions of PHP so when you update
   to urlparams 2.1, it should now work as expected – even with old PHP! 🙂
 *  [aaronrobbins](https://wordpress.org/support/users/aaronrobbins/)
 * (@aaronrobbins)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/#post-6437952)
 * I was hunting for a mismatched parenth for like 10 minutes before it dawned on
   me to try removing the lambda for the array mapper callback. Thanks for the update.
 *  [aaronrobbins](https://wordpress.org/support/users/aaronrobbins/)
 * (@aaronrobbins)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/#post-6437953)
 * Also, I lied. My server is running 5.3, the server I was running the plugin on
   is running 5.2.17. Sorry about the mis info, forgot I was on a client’s server
   🙂

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

The topic ‘Syntax error – cannot activate after plugin update’ is closed to new 
replies.

 * ![](https://ps.w.org/url-params/assets/icon-128x128.png?rev=979780)
 * [URL Params](https://wordpress.org/plugins/url-params/)
 * [Support Threads](https://wordpress.org/support/plugin/url-params/)
 * [Active Topics](https://wordpress.org/support/plugin/url-params/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/url-params/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/url-params/reviews/)

## Tags

 * [plugin activation](https://wordpress.org/support/topic-tag/plugin-activation/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 6 replies
 * 3 participants
 * Last reply from: [aaronrobbins](https://wordpress.org/support/users/aaronrobbins/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-cannot-activate-after-plugin-update/#post-6437953)
 * Status: resolved