WordPress.org

Ready to get started?Download WordPress

Forums

HELP! I messed my website up!! (10 posts)

  1. LizahBug
    Member
    Posted 1 year ago #

    I was trying to add an HTML code. Couldn't get it to work. I tried it in my posts and pages. I had the bright idea of trying it in my template :( Not such a good idea! I am new to creating websites, wasn't sure which template file to pick so I did "Functions" and added my html. It completely ruined my website. Now I cannot go to my website OR sign in! How do I fix it if I cannot sign in??? I keep getting this error Parse error: syntax error, unexpected '<' in /home/XXX/public_html/wp-content/themes/matala/functions.php on line 473 PLEASE TELL ME THERE IS A WAY TO FIX THIS!!! PLEASE

  2. LizahBug
    Member
    Posted 1 year ago #

    I am freaking out! Please somebody tell me I haven't lost all my work! I know how to fix it, I just need to remove that HTML from the template, but how can I login if I keep getting this error??

  3. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Replace the functions.php file using ftp.

    http://codex.wordpress.org/Using_FileZilla

  4. LizahBug
    Member
    Posted 1 year ago #

    I have an FTP account thru CPanel, but like I said. I'm new to creating websites, don't know much. How do I do it?

  5. bambeco
    Member
    Posted 1 year ago #

    You need to get your ftp address, username, and password from CPanel.

    You'll also need an unedited version of functions.php. You can get that here... http://wordpress.org/extend/themes/matala.

    Download the theme and unzip the file. Then log in to your ftp server and replace your functions.php file with the downloaded one.

  6. LizahBug
    Member
    Posted 1 year ago #

    OK... bear with me.

    I got my username and pass word. I was trying to follow the below instructions HOWEVER I am stuck. When I open the file (step 3) a blank browser shows up. I don't know what to do.

    Click the Configure FTP Client link that corresponds to the FTP account you wish to use to connect to your FTP server.

    Step Two
    Click the FTP or SFTP link to download the XML file. We recommend that you use SFTP whenever possible, as it is generally more secure than FTP. Note: This step will over-write any previous XML configuration file without warning.

    Step Three
    Open your FileZilla FTP client.
    Step Four
    Select the Import option from the File menu (File ⇀ Import).

  7. LizahBug
    Member
    Posted 1 year ago #

    I figured out how to get to where it says import. But then it says import- cookies, feeds, or favorites. I tried all 3 and none of them work.

  8. pha3z
    Member
    Posted 1 year ago #

    This is why CPanel and other panels suck. They just add another dimension of complexity to the administration process. SSL or at least SFTP access is worth its weight in gold. KIS!

  9. LizahBug
    Member
    Posted 1 year ago #

    Ok... I have now manages to get into the Ftp File manager. I have tried to connect to my website about a million times and so far it won't connect. Pleasssssssssssse help!

  10. pha3z
    Member
    Posted 1 year ago #

    Last post isn't clear. Were you able to upload a working php file to overwrite the one you broke, yet? That's what you still need to do.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.