Support » Fixing WordPress » Help with functions.php

  • Oriam2000


    I changed one small thing in functions.php and when i checked
    and it did not work, I just replaced what i changed the first time
    and now i get this error message when i go to my home page,
    and the worst thing, I get this same error msg when trying to login
    to my wp-admin.
    ERROR Message:
    Parse error: syntax error, unexpected $end in /home/oriam/public_html/ on line 99

    This is the line i changed in the php file:

    $default_footer_content = "<a href='#'>Contact Us</a> | <a href='#'>Terms of Use</a> | <a href='#'>Trademarks</a> | <a href='#'>Privacy Statement</a><br/>Copyright &copy; 2009 ".get_bloginfo
    ('name').". All Rights Reserved.";

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi



    $default_footer_content = '<a href="#">Contact Us</a> | <a href="#">Terms of Use</a> | <a href="#">Trademarks</a> | <a href="#">Privacy Statement</a><br />Copyright &copy; 2009 ' . get_bloginfo('name') . ' . All Rights Reserved.';



    Thanks esmi, I tried it and it still gives me same error



    The error may be elsewhere in the file. Drop a copy of the file into the WordPress pastebin and post the pastebin url here. Perhaps someone will be able to spot the problem and suggest a solution.



    OK, here is my copy of the fonctions.php at this url:



    I have found out that once you get error on any file you have to replace that file to have your website back.
    Just deleting the code does not help so I always keep a copy of the file just in case there is problem I just replace the file.

    Moderator Sergey Biryukov


    WordPress Dev

    The file you’ve posted on Pastebin is correct.

    I only get the same error message if I remove everything from line 99 (after <?php tag) to the end of file. Perhaps the file on your server is incomplete due to some connection error when copying. Check its size, it should be 18523 bytes.



    I found some backup files that date back to September,
    apart from losing 3 mounts of data, all is back up now !!!

    Thank you for all your help.
    Happy New Year to you all.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Help with functions.php’ is closed to new replies.