• Just this morning when I opened my site I panicked because there’s an error appeared and I can’t even access my admin panel. Help ??

    ‘Warning: require_once(/home/companysite/public_html/wp-content/themes/caffeine/functions/theme-functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/companysite/public_html/wp-content/themes/caffeine/functions.php on line 46

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/companysite/public_html/wp-content/themes/caffeine/functions/theme-functions.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/companysite/public_html/wp-content/themes/caffeine/functions.php on line 46′

    This is a company site and I need to resolve this immediately.
    I haven’t updated it to the latest version because updating will reset everything to its default. I’m currently developing a new site as a replacement when this happened.

    Anybody knows what may be the cause of the error?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    It is related to your theme, so temporary rename your theme folder in wp-content/themes/… for something and your site will temporary use default wordpress theme, so you will be able to login to admin and reinstall/repair that theme. (using ftp)
    Or just try to upload default function.php of your theme.

    Thread Starter marienefr

    (@marienefr)

    Hi Peter,

    Thanks for the first suggestion, I’ll let you know asap how that works
    By the way, its the theme-functions.php that is missing.
    But it has something to do with functions.php right?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No such file or directory – functions.php’ is closed to new replies.