Forums

Parse error: syntax error, unexpected CANT ACCESS PAGE (14 posts)

  1. analisa114
    Member
    Posted 6 months ago #

    I was adding some text working on the excerpt to the function.php area of the editor function, pressed update, and then this error came up "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/cbslife.dk/public_html/wp-content/themes/canvas/functions.php on line 129"

    the website url is normally http://www.cbslife.dk but now i can't even access that or the wordpress site to try and make edits to fix it. I have no idea what to do and am freaking out in fear that the entire website might be lost. What do I do????

  2. zenticdk
    Member
    Posted 6 months ago #

    Do you have a backup file of the function.php ? is this the first time you made changes on this file? i think you might be able to upload and overwrite the file with the stock one from the installation package, that should make the site working again.

  3. Josh
    Member
    Posted 6 months ago #

    Lol.. it's okay. Calm down ;) Your content is not lost forever.

    Do you know what FTP access is? If not, do you know how to access your files through your webhost's control panel?

  4. analisa114
    Member
    Posted 6 months ago #

    This is my first time.... which is probably why this happened. How do I access the FTP? I have no idea. Any help would be much appreciated. Y'all are life savers if you can get this to work again.

  5. Josh
    Member
    Posted 6 months ago #

    1. Download your themes files to your desktop.
    2. Extract the zip file.
    3. Log into your hosting providers control panel.
    4. Navigate to your online file manager.
    5. Navigate to /wp-content/YOURTHEME/
    6. See if there is a 'footer.php' file.
    7. Upload the 'footer.php' file from your desktop (the one your extracted) to this folder, over-writing the original.

    You should now be able to access your website.

  6. analisa114
    Member
    Posted 6 months ago #

    Where do I go to download theme files to my desktop?

  7. Josh
    Member
    Posted 6 months ago #

    What theme are you using?

  8. analisa114
    Member
    Posted 6 months ago #

    I was using a theme from woothemes not from wordpress. Does that make a difference?

  9. analisa114
    Member
    Posted 6 months ago #

    I was using a theme from woothemes not from wordpress. Does that make a difference?

  10. Josh
    Member
    Posted 6 months ago #

    It doesn't make a difference, but you do need to have the same theme's files as your installation.

    Okay, second option... login to your hosing control panel and download your footer.php file to your desktop.

    Copy the ENTIRE contents, and go to http://www.pastebin.com, and paste your code. Click submit, and on the next page, copy the link address and paste it back here. I'll look at your code and see if I can correct the error.

  11. analisa114
    Member
    Posted 6 months ago #

    it's called canvas

  12. Josh
    Member
    Posted 6 months ago #

    That is a paid theme. You will need to contact them to get a replacement footer.php file.

    Or you can follow my previous message, and we can try to correct the error.

  13. analisa114
    Member
    Posted 6 months ago #

    http://pastebin.com/M4CUjwg5 this is the code that came up.

    even if we find the error though, how will i be able to get into wordpress to correct it?

  14. Josh
    Member
    Posted 6 months ago #

    Analisa... I'm so sorry.

    I meant to get your functions.php file, NOT the footer.php file.

    That's totally my fault.

    Please do the exact same thing you did with the footer.php file with pastebin, but this time do it with your functions.php file.

    Then, once I make the correction, I will post it back to pastebin. Next, you can log into your hosting control panel, and delete the functions.php file, and reupload my newly created one.

    This SHOULD let you back into your website.

Reply

You must log in to post.

About this Topic