Forums

[closed] HELP! Accidently deleted themefunctions.php (6 posts)

  1. jromanchak526
    Member
    Posted 1 year ago #

    While attempting to do some editing, I accidently deleted my themefunctions.php css. An error popped up that said

    " Parse error: syntax error, unexpected T_IF, expecting ')' in /home/content/10/5676610/html/wp-content/themes/jenny/functions.php on line 22"

    At this point I still had access to my admin page, so I tried to click on the "themes" page to try and switch themes to avoid any problems. Once I navigated away from that original page, though, everything returned me to that same error.

    I can't even login to my page!

    I really have no idea what to do, and I am in serious need of help!!

  2. ClaytonJames
    Member
    Posted 1 year ago #

    Replace the file you deleted with either a copy from your last backup, or the original from the theme using your ftp client or hosts file manger in your control panel.

  3. Joseph
    Member
    Posted 1 year ago #

    The error says that you're missing a closing bracket in your functions.php on line 22. If you don't know how to fix that, copy & paste that line here so others can fix it for you.

  4. mitchrabreu
    Member
    Posted 1 year ago #

    i had the same problem...please help

    While doing some editing, I accidently deleted my themefunctions.php css.

    An error popped up:

    Warning: require_once(/home/mitch/public_html/miamiinvestigators.net/wp-content/themes/mitch/functions//admin-setup.php) [function.require-once]: failed to open stream: No such file or directory in /home/mitch/public_html/miamiinvestigators.net/wp-content/themes/mitch/functions.php on line 12

    Fatal error: require_once() [function.require]: Failed opening required '/home/mitch/public_html/miamiinvestigators.net/wp-content/themes/mitch/functions//admin-setup.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mitch/public_html/miamiinvestigators.net/wp-content/themes/mitch/functions.php on line 12

    i dont have access to my admin page! and dont want to lose all the hard work i've put into this site...PLEASE HELP!

  5. ebrima
    Member
    Posted 8 months ago #

    Hi Jromancha,
    was your problem solve? I also have similar problem and seriously looking for assistance. I wanted to added slide show plugin call xili-floom-slideshow in the header. I activitated and added this code: xilifloom_theme_header() in the functions.php. of the theme. Now the website is down Its shows:
    Parse error: syntax error, unexpected T_IF in /home/octavi/globalunificationthegambia.org/wp-content/themes/third-style/functions.php on line 47

    I can not even login to wordpress. Please i need help. My website is: http://www.globalunificationthegambia.org

  6. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Please post a new topic.

Topic Closed

This topic has been closed to new replies.

About this Topic