Help with functions.php (8 posts)

  1. Oriam2000
    Posted 5 years ago #

    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/lastminutenewstopics.com/wp-content/themes/LastMinute/functions.php 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.";
  2. esmi
    Forum Moderator
    Posted 5 years ago #


    $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.';

  3. Oriam2000
    Posted 5 years ago #

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

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    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.

  5. Oriam2000
    Posted 5 years ago #

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

  6. govpatel
    Posted 5 years ago #

    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.

  7. Sergey Biryukov
    WordPress Dev
    Posted 5 years ago #

    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.

  8. Oriam2000
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.