Support » Plugin: Newsletter Sign-Up » Parse error: syntax error, unexpected T_FUNCTION i

Viewing 8 replies - 1 through 8 (of 8 total)
  • It seems this plugin uses an anonymous function as a parameter to an action hook. Anonymous functions was introduced in PHP 5.3. What is your PHP version?

    Two strange things:
    * Why didn’t WordPress detect that there was a fatal error when activationg this plugin? Did you upgrade an active plugin by overwriting files through FTP, or did you use the upgrade facility in WordPress?
    * And after activation, the plugin itself should have deactivated itself, if the requires PHP version was not met.

    Until this is resolved you have to deactgivate this plugin. Do deactivate a plugin when you cannot log in, use FTP to rename or delete the folder newsletter-sign-up from your wp-content/plugins folder.

    Contact the plugin author, qoute the error message and mention your PHP version. Your PHP version may be found through your hosts admin panel or through the plugin WP Serverinfo.

    Plugin Author Danny van Kooten


    Knut, thanks for your thorough explanation, you were spot on.

    Marcus, please update to v1.3.1. Your issue should be fixed in that version. 🙂

    Help! I tried to remove my RSS feed and per the request of another thread I found about how to do this the wordpress page has crashed all together. I followed these directions

    “Go to your theme and paste this in your function.php”
    * Disable Our Feed Urls
    function disable_our_feeds() {
    wp_die( __(‘Error: No RSS Feed Available, Please visit our homepage.’) );

    add_action(‘do_feed’, ‘disable_our_feeds’, 1);
    add_action(‘do_feed_rdf’, ‘disable_our_feeds’, 1);
    add_action(‘do_feed_rss’, ‘disable_our_feeds’, 1);
    add_action(‘do_feed_rss2’, ‘disable_our_feeds’, 1);
    add_action(‘do_feed_atom’, ‘disable_our_feeds’, 1);

    After I did this this came up

    Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /usr/home/goabov/www/htdocs/main/wp-content/themes/above/functions.php on line 11

    How do I get the wordpress page back? in addition how can I remove the RSS feed which I set up to get rid of.

    In addition I can’t move around inside my wordpress page. Every click to any of the pages, appearance, themes, tools, users…etc all return me to the Parse error: syntax….line 11. This mistake on my part is extremely frustrating as I feel I just crashed my whole wordpress site.
    Please help me understand how to resolve this issue. Thank you

    Use FTP and replace the file with the original. Or just rename it.

    1. You shuld not edit an active .php file. Change theme, edit, then change back.

    2. You should not use this thread (a solved issue) to ask a question about another topic, even if it sems to result in the same PHP error code. Start a new thread for your specific problem.

    Thanks Knut,
    Excuse my lack of knowledge but using the FTP service I can find the original file, then I can replace it in wordpress? Or with the Filezilla program?

    the theme for my wordpress was a custom theme provided by a friend. Do you suggest I still change the theme if possible (as I can’t navigate) in the wordpress currently. Every adjustment I try and make the error comes up with line 11…etc.


    I just tried to edit functions.php with code to remove search bar from my site. However, I cannot access my site admin panel anymore. I receive Parse error: syntax error, unexpected T_FUNCTION in /hermes/web02/b2849/moo.leatherheadsfootball/wp-content/themes/twentyten/functions.php on line 509. Can anyone help me fix this error?


    @amwicker: This case is resolved. Please don’t use this thread for other cases. Btw: Rename the file by FTP, reinstall theme. Don’t mess with active PHP files from within WordPress itself. Have backup.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Parse error: syntax error, unexpected T_FUNCTION i’ is closed to new replies.