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
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
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?
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’
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! 🙂
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.
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 🙂