• jb198720131

    (@jb198720131)


    Hello world, I hope I am posting this in the right area.

    I recently have taken over design of a friend’s website, https://legendsofthestands.com. The site had already been named and created prior to my coming onboard. Today, I tried to upload a new template via the admin panel after logging in, and received the following error:

    ‘Parse error: syntax error, unexpected end of file in /home/kcsuperf/public_html/legendsofthestands.com/wp-content/themes/zerif-lite/functions.php on line 1028’

    I am a junior dev, but I was not able to see this code anywhere in the admin panel to try and troubleshoot this error. Now, I am not able to log in to the admin panel whatsoever. If I can somehow log back in to the admin panel I should be able to reconfigure to bring the website back up. Please help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter jb198720131

    (@jb198720131)

    Update: I just tried to see if I could access the website through FTP to no avail.

    prosperstudios

    (@prosperstudios)

    There is an unexpected open or close tag in your file.
    Trace the error by using print_r() or echo().

    It’s probably not in the functions.php file, unless you have been editing it.
    Sometimes, it’s easier to start a build with a clean install. It’s faster and far less frustrating than tracing what other devs have done to a website.

    If you don’t know how to trace an error, this is CRUCIAL knowledge.
    https://www.lynda.com/PHP-tutorials/Tracking-down-parse-errors/146234/157700-4.html

    Thread Starter jb198720131

    (@jb198720131)

    The problem isn’t so much that I can’t trace an error, it’s that I’m not able to even log in to the page now without receiving the same error. With it being a WP website, I wasn’t able to find where the code was stored so that I could take a look at it myself.

    prosperstudios

    (@prosperstudios)

    Well, without FTP, it’s gonna be tough.
    If the /wp-admin is working, then Appearance > editor is a possiblity.

    Without FTP, DB access is needed to shutdown the plugins.
    And then restore access to /wp-admin.

    These is a tough path to work out. Good luck.

    Thread Starter jb198720131

    (@jb198720131)

    When using FTP, the /wp-admin does not work. This is the response I get:

    Response:	331 User xxxxxxx OK. Password required
    Command:	PASS ********
    Response:	530 Login authentication failed
    Error:	Critical error: Could not connect to server

    In fact, if anything is typed after the domain name, i.e. .com/dajklfhsfuiargo
    I get the same parse error, no matter what is there.

    prosperstudios

    (@prosperstudios)

    Authentication failed is a login failure. It can be because you need to whitelist your IP, or a few other things. Can you contact the hosting company?

    As you know, FTP is not the /wp-admin.

    As for your error, this is because the error is occurring Server-side, before the site loads.
    I recommend a fresh install/build.

    PS> Designing friend’s websites is a good way to lose a friend.

    Thread Starter jb198720131

    (@jb198720131)

    The website was already “designed” when I took over (albeit poorly designed) but I digress…

    Assuming I somehow gain credential access to the website, would I be able to push a fresh build to a site that has WP pre-installed? I’m not familiar with both WP and filezilla.

    Thread Starter jb198720131

    (@jb198720131)

    There are times when you install and activate a plugin using the WordPress dashboard just to find that this plugin is incompatible with an existing plugin. The incompatibility sometimes causes a white screen of death through out the site which locks you out from doing anything. If you know how to use FTP, then instead of freaking out, you will simply login-in and delete the plugin using the FTP connection.

    This seems to be the closest answer I have found online so far. I’m attempting to contact the hosting provider for help. Is there anything I can do to further help?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Parse error: syntax error, unexpected end of file’ is closed to new replies.