• Hello

    Have installed Mamp and VirtualHostX and since this time my wp-login shows up this error while trying to connect.

    Warning: require_once(/homez.707/brandingy/www/wp-content/themes/cubus/functions/admin-menu.php) [function.require-once]: failed to open stream: No such file or directory in /homez.707/brandingy/www/wp-content/themes/chronos_wordpress_theme/functions.php on line 8

    Fatal error: require_once() [function.require]: Failed opening required ‘/homez.707/brandingy/www/wp-content/themes/cubus/functions/admin-menu.php’ (include_path=’.:/usr/local/lib/php:/homez.707/brandingy/www/wp-content/plugins/updraftplus/includes/phpseclib’) in /homez.707/brandingy/www/wp-content/themes/chronos_wordpress_theme/functions.php on line 8

    Cubus is my main theme
    chronos_wordpress_theme is my under construction theme.

    Any help ? I am freaking out…

    Philippe

Viewing 15 replies - 1 through 15 (of 16 total)
  • The error means what it says. When you’re using this:

    require_once(/homez.707/brandingy/www/wp-content/themes/cubus/functions/admin-menu.php)

    at this part of your theme:

    in /homez.707/brandingy/www/wp-content/themes/chronos_wordpress_theme/functions.php on line 8

    the file doesn’t exist so it can’t be “required” by your script. First thing it do is double-check that /wp-content/themes/cubus/functions/admin-menu.php exists because I don’t think that it does.

    Thread Starter prouin

    (@prouin)

    Hello Catacaustic,

    Many thks for your help.
    You are right there is no file like that.
    Check the screen dump.

    icon Remonter ..
    icon assets Répertoire 5 71165 users rwx—r-x Jun 27 09:17
    icon lang Répertoire 3 71165 users rwx—r-x Jun 27 09:17
    icon lib Répertoire 16 71165 users rwx—r-x Jun 27 09:17
    icon options Répertoire 8 71165 users rwx—r-x Jun 27 09:17
    icon templates Répertoire 21 71165 users rwx—r-x Jun 27 09:17
    icon 404.php Script PHP 7810 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon archive.php Script PHP 111 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon base.php Script PHP 815 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon category.php Script PHP 112 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon comments.php Script PHP 40 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon functions.php Script PHP 1261 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon index.php Script PHP 123 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon nhp-options.php Script PHP 21973 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon page-blog.php Script PHP 148 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon page-custom.php Script PHP 168 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon page-portfolio.php Script PHP 170 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon page-sidebarleft.php Script PHP 177 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon page.php Script PHP 112 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon readme.txt Fichier Texte 120 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon robots.txt Fichier Texte 588 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon screenshot.png Image PNG 112074 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon search.php Script PHP 111 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon single-portfolio.php Script PHP 61 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon single.php Script PHP 58 71165 users rw—-r– Jun 27 09:17 Voir éditer Ouvrir
    icon style.css Feuille de style CSS 8

    What should I do then ?

    Best rgds,

    Philippe

    There’s two choices.

    1. You should go back to where ever you got that theme from and get the complete theme package which includes that file
    2. Stop requiring that file in your child theme

    Either one will work.

    Thread Starter prouin

    (@prouin)

    1. should be in my back up right ? just copy and past the /wp-content/themes/cubus/functions/admin-menu.php directory ?

    2. where is located the line code ? do you have any idea ?

    Once again many thks.

    Philippe

    Thread Starter prouin

    (@prouin)

    in the /homez.707/brandingy/www/wp-content/themes/chronos_wordpress_theme/functions.php file

    I put //require_once(TEMPLATEPATH . ‘/functions/admin-menu.php’);
    instead of
    require_once(TEMPLATEPATH . ‘/functions/admin-menu.php’);

    sounds that it is working so, so.

    Was it the good thing to do ?
    thks a lot for your help

    Philippe

    Do not use the TEMPLATEPATH constant. That is for internal use only by WordPress. Use get_template_directory() instead.

    Thread Starter prouin

    (@prouin)

    wwwaoo
    too difficult for me ! Where do I get that ?
    could you pls be more explicit?

    thks a lot

    Philippe

    Please see the page at the link I posted above.

    Thread Starter prouin

    (@prouin)

    I had a look at it but is as easy to understand for me than chinese.
    Now everything is working quite perfectly.

    require_once(get_template_directory . ‘/functions/admin-menu.php’);

    would be the good code line ?

    Thks a lot !!!

    Philippe

    Thread Starter prouin

    (@prouin)

    I realize that it would be more

    get_template_directory(TEMPLATEPATH. ‘/functions/admin-menu.php’);

    right ?

    Philippe

    No. Try require_once get_template_directory() . '/functions/admin-menu.php');

    Thread Starter prouin

    (@prouin)

    just like that. nothing else.
    instead of require_once(TEMPLATEPATH . ‘/functions/admin-menu.php’);

    right ?

    Philippe

    Yes

    Thread Starter prouin

    (@prouin)

    not working

    Parse error: syntax error, unexpected ‘)’ in /homez.707/brandingy/www/wp-content/themes/chronos_wordpress_theme/functions.php on line 8

    Philippe

    You need to read the error messages. They tell you exactly what the problem is and where it is.

    You have something wrong at line 8 of your functions.php file where you have a ) that is not meant to be there. You need to be look at what you are actually putting into your code.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘PHP warning: require_once … failed to open stream’ is closed to new replies.