• Hi Guys,
    To mention I just started with wordpress, and I was trying to amend code in my them and everything just stopped working, including editing page:(

    Can someone please help me, I can’t even log in anymore to edit anything.

    This is all i get:

    Parse error: syntax error, unexpected ‘}’ in /home/content/31/8658031/html/wp-content/themes/parker/functions.php on line 24

    I was looking through forums to get some code advise maybe i put sm wrong one:(

    Please advise what to do.

    Best Regards
    Aga

Viewing 8 replies - 1 through 8 (of 8 total)
  • Can you post your complete functions.php to somewhere like pastebin and post the link here?

    Hi there Aga
    When editing your theme in any way you want to make sure all changes are made in the child theme. If you’d like to find out how to create one you can go here https://codex.www.ads-software.com/Child_Themes

    To fix your problem i would personally go about it one of two ways. You can try and go to the file you were trying to edit through your Ftp and delete your added code and leave it as you found it. Or you can simply re install the theme. When re installing the theme you will lose any changes you have made to theme but it should get it back up and running. The file it seems you were editing according to the error you stated seems to be the functions.php file found in the parker theme of the wp-content folder.

    Hope this helps. If you have any questions feel free to ask.

    Thread Starter aga_g86

    (@aga_g86)

    file:///Users/agnieszkagronert/Desktop/OPD/Parker%20package/parker/functions.php

    If you create some incorrect syntax in your PHP files the program will get stuck on that spot and give you this error telling you were it got stuck. It is telling you the exact directory and line number were there is something wrong. (could be the line before or after)

    Check that line for something you changed, change it back, try something else, reinstall the theme if you have to.

    Thread Starter aga_g86

    (@aga_g86)

    Thread Starter aga_g86

    (@aga_g86)

    I can’t even access the editing page/ dashbord of my wordpress page it gives me the same error msg

    You can access the actual file through your Ftp and delete the line of code you changed to get it back up and running if that’s the way you want to go.

    If you have it installed on a local host such as Wamp you simply need to go into the Parker theme on your computer and find the functions.php file and take out your line of code.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘HELP-WEBSITE CRASHED’ is closed to new replies.