WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wrong edit of functions.php (9 posts)

  1. vikingdad
    Member
    Posted 2 years ago #

    I tried to copy some new code from a breadcrumbs plugin into the functions.php and when I updated it, it gave me this error:

    Parse error: syntax error, unexpected '<' in /web/htdocs/www.caminoartanddesign.com/home/wp/wp-content/themes/Visualtheme/functions.php on line 115

    Now I can´t access my admin panel or do anything. Is there a way to directly remove the code from the database control panel?

    Please help!

  2. cjc1867
    Member
    Posted 2 years ago #

    go to your hosting control panel or cpanel and remove the code from there and don't forget to save it.

  3. vikingdad
    Member
    Posted 2 years ago #

    Thanks, I don´t know how to find it in my control panel

    Im using mysql, is that the right place?

  4. Knut Sparhell
    Member
    Posted 2 years ago #

    Not MySQL. Use FTP to get the file and remove the bad code.

  5. vikingdad
    Member
    Posted 2 years ago #

    Thanks Knut. Could you explain how I use FTP?

    Thanks a lot.

  6. cjc1867
    Member
    Posted 2 years ago #

    In control Panel you should have something like file manager, go to here and locate functions.php then edit it to remove the code you added earlier and then save it.

  7. vikingdad
    Member
    Posted 2 years ago #

    Ok, thanks, I have found the functions.php file

    I can delete the bad code but it doesn´t give me any option to save, the bottom of the box seems corrupted somehow.

    So when I close it and open it again the code is back.

    IS there someway around this, can I delete the functions and upload a clean one?

  8. cjc1867
    Member
    Posted 2 years ago #

    There should be a save button there. If you delete the functions.php file make sure you copy all the code first without the breadcrumb bit you added earlier. Create another file called functions.php and paste the good code back into it then save it.

  9. vikingdad
    Member
    Posted 2 years ago #

    Thanks you cjc, you helped me a lot. Much appreciated. Resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic