• Resolved bee2010

    (@bee2010)


    I was trying to get a code to work in functions.php, I updated and it made no change to my site, so I deleted the changes and pressed update file and this error came up

    Parse error: syntax error, unexpected T_IF in /home/insidemy/public_html/wp-content/themes/lifestyle_40/functions.php on line 80

    I thought I had only deleted what I added into the orignal code, but incase there was a mistake I copied and pasted in the original code which I had saved before I started making changes then pressed update file, again this came up

    Parse error: syntax error, unexpected T_IF in /home/insidemy/public_html/wp-content/themes/lifestyle_40/functions.php on line 80

    Could someone please tell me what has gone wrong as now I can’t access my wordpress account at all as everytime I go to wp-admin I am getting the above error message.

Viewing 4 replies - 1 through 4 (of 4 total)
  • jake12001200

    (@jake12001200)

    either re-insatll wordpress or re-download wordpress and extract the files and then find the file you deleted/partly deleted and copy it and delete the one you edited and paste the copy

    Clayton James

    (@claytonjames)

    Parse error: syntax error, unexpected T_IF in /home/insidemy/public_html/wp-content/themes/lifestyle_40/functions.php on line 80

    If the functions.php file you were working with is located in the lifestyle themes directory, either replace the file using a backup copy, or rename/delete the lifestyle theme directory using your file manager or ftp client. Revisit your site, and when you log back in, the theme should revert back to the default ( providing it is still in the themes directory).

    [edit] try //www.yoursite.com/wp-login.php if you still have trouble after renaming/deleting the theme

    kim09

    (@kim09)

    That happened to me too, and i did as ClaytonJames describes:
    1. Cpanel, and delete lifestyle_40 theme.
    2. There may be spaces or unclean code in your function.php, so try to clean it, removing spaces.
    I would always install wordpress locally and edit files locally first before applying it online 😀
    Goodluck!

    Thread Starter bee2010

    (@bee2010)

    Thank you for your advice but I managed to delete the error by accessing the functions.php file through my cpanel

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Can’t access webpage or wp admin’ is closed to new replies.