• I was trying to edit out the author tag that’s displayed below every post and now when i get this error.

    Parse error: syntax error, unexpected $end in /home/irfarios/public_html/wp-content/themes/triton-lite/functions.php on line 507

    I backed up the original code of the theme functions php. When i started getting the error i just removed the whole code and replaced it with the original backed up one but still i get this help. I’m also unable to navigate away from that page. Please please please!!! can anyone help me?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You need to use FTP or your hosts CPanel to re-edit the file and paste back in the original (working) code.

    You are only seeing a cached version of the page in the wordpress dashboard editor. Once you update, if the code is bad, you can’t go back and re-edit and upload again.

    You’re stuck with having to use FTP or CPanel.

    So….

    1. User either of the methods above
    2. Download the file you were editing
    3. Once downloaded, open the file in an editor and make your changes
    4. Save the file, and re-upload… over-writing the original
    5. Log back into wordpress dashboard and you should be good to go.

    Thread Starter irfarious

    (@irfarious)

    It feels so glad to just hear from some one.
    Hey josh, thanks for responding. I’ve logged in in my host cpanel I’m unable to find the functions .php file. Any idea where i can locate it?

    Thread Starter irfarious

    (@irfarious)

    Ok, I’ve located the file i think that’s the one

    public_html/wp-content/themes/triton-lite/functions.php

    Should i delete it and upload a new one?

    And what format should the new file that i upload be? Currently i’ve saved it as notepad file.

    It’s probably something like

    wp-content/themes/YOURTHEME/functions.php

    If you have a fresh copy of it from the theme, just replace it with the original.

    It should be saved as functions.php

    Thread Starter irfarious

    (@irfarious)

    Josh you saved my life today. Thank you thank you thank you so much. And more importantly thank you for responding so quick. 😀

    My pleasure 🙂

    Thank you for the appreciation!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Parse error: syntax error, unexpected $end in /home/irfarios/public_html’ is closed to new replies.