Parse error: syntax error, unexpected T_FUNCTION..Line 11 (5 posts)

  1. aboveadmin
    Posted 4 years ago #

    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.
    I'm not 100% sure of my wordpress version but at the bottom right corner it suggests to upgrade to version 3.2.1. So I assume I am using the previous numerical version of 3.2?

    I followed these direction:

    "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

    I can't access any of my pages and it appears as if the site/page is crashed and unable to be fixed?
    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.

  2. keesiemeijer
    Posted 4 years ago #

    Try downloading the functions.php by FTP or whatever file management application your host provides. Edit it in a texteditor and re-upload with FTP.

  3. aboveadmin
    Posted 4 years ago #

    Thanks Keesiemiejer but how do I download the functions.php by the ftp? If not how do I find what my host provides? I had a friend setup this wordpress section and he is out of the country for 2 months. I'm trying my best to re-install this issue and have the wordpress page back to normal. Please let me know how to download via ftp or otherwise. Thank you.

  4. keesiemeijer
    Posted 4 years ago #

    Try downloading FileZilla and start with the instructions here: http://codex.wordpress.org/Using_FileZilla

  5. aboveadmin
    Posted 4 years ago #

    Thanks again. I've successfully downloaded filezilla and still trying to follow the directions laid out there. This is still over my head but I will keep trying. I appreciate your help with this and I'll follow up soon with updates.

Topic Closed

This topic has been closed to new replies.

About this Topic