Failed to include includes/class_core.php

  • Time
  • Show
Clear All
new posts
  • Guest

    [Forum] Failed to include includes/class_core.php

    I just realized that there is this message on my error log file

    [03-Aug-2011 02:20:37] PHP Warning:  require_once(/home/XXX/public_html/includes/class_core.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/XXX/public_html/includes/init.php on line 51
    [03-Aug-2011 02:20:37] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/XXX/public_html/includes/class_core.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/XXX/public_html/includes/init.php on line 51
    On init.php line 51 is
    PHP Code:
    require_once(CWD '/includes/class_core.php'); 
    However i guess it doesn't happen on each visitor. i guess maybe 0,5% of all visitors because i have lot of visitors online, but there is only 1 or 2 error messages recorded on error log.

    According to the error message
    How could the "CWD" became
    ?? Any clue?

    PS : i have ran ​"Suspect File Versions" and it was fine.
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    Try setting the full path to your forums in config.php:

    // ******** FULL PATH TO FORUMS DIRECTORY ******
    // On a few systems it may be necessary to input the full path to your forums directory
    // for vBulletin to function normally. You can ignore this setting unless vBulletin
    // tells you to fill this in. Do not include a trailing slash!
    // Example Unix:
    // $config['Misc']['forumpath'] = '/home/users/public_html/forums';
    // Example Win32:
    // $config['Misc']['forumpath'] = 'c:\program files\apache group\apache\htdocs\vb3';
    $config['Misc']['forumpath'] = '';
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography

    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    • Zachery
      Former vBulletin Support
      • Jul 2002
      • 59097

      CWD = Current working directory.

      so the script tried to do (if the current working directory was /home/username/public_html) require_once(/home/username/public_html/includes/class_core.php

      If the CWD didn't come back correctly, it checks the INCLUDE path, in php which is /usr/lib/php and /usr/local/lib/php It also couldn't find the file there.


      • Guest

        Thanks i will try to set $config['Misc']['forumpath'] now


        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.