• Resolved tmcdonald100

    (@tmcdonald100)


    Hi,

    Relatively new to this…..
    I tried to insert some code into the functions.php file in the editor part of WP and i got this error back on a blank screen:
    Parse error: syntax error, unexpected ‘<‘ in C:\xampp 1\htdocs\wp\wp-content\themes\theme\keid-hosting\functions.php on line 43

    I deleted the previously inserted code on line 43 but the error still remained.
    I am now completely locked out of https://localhost/wp/wp-admin/ (just shows the above error) and have tried replacing the functions.php on my c drive with the original functions.php file from my inital download but to no avail.
    How do i get back into admin to rectify this file on WP. Or is that my issue?? Site not live yet.

    Thanks in advance
    Tom

Viewing 3 replies - 16 through 18 (of 18 total)
  • Please keep us informed.

    Hello, after reading all this, seems you have an error either in wp-config.php or in database rights, or in one theme file.

    Calling an html file is no use, because we use dynamic files at all steps.

    Try another theme, to see if it works,

    After backing up, and IF it doesn’t work, you should also delete .htaccess file in root folder (that could create 404 errors). Then do setup again.

    Thread Starter tmcdonald100

    (@tmcdonald100)

    Hi Ross/all.

    Got it sorted. I met with my lecturer this morn and It appears there were 2 XAMPP’s on my computer and one was taking info from the wrong folder. I’m not entirely sure how this happened or why. You were right all along Ross about the files being different. I moved the theme files and it reverted back to twentyfifteen theme which let me back in and replaced all my Kied theme files which got me back on track.

    You were all a great help, Ross in particular, thank you very much. I have learned alot in this process. Mainly, it takes a crazy person to do this for a living ??

    Thanks again

    Thomas

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Locked out of WP admin localhost due to Parse error’ is closed to new replies.