All of a sudden one of my client's sites stopped working
Error:
Warning: require_once(/home/logosist/public_html/includes/defines.php): failed to open stream: No such file or directory in /home/logosist/public_html/index.php on line 18
Fatal error: require_once(): Failed opening required '/home/logosist/public_html/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/logosist/public_html/index.php on line 18
From the error I can see that the directory path is wrong:
Should be
/home/public_html/logosist/includes/defines.php
and not
/home/logosist/public_html/includes/defines.php
Any idea on how to solve this problem?
index.php, look at line 18, work backwards from there. - sjagrdefine('_JEXEC', 1); define('DS', DIRECTORY_SEPARATOR); if (file_exists(dirname(__FILE__) . '/defines.php')) { include_once dirname(__FILE__) . '/defines.php'; } if (!defined('_JDEFINES')) { define('JPATH_BASE', dirname(__FILE__)); require_once JPATH_BASE.'/includes/defines.php'; } require_once JPATH_BASE.'/includes/framework.php';- Peter Pupovac/home/logosist/public_html/is the path of yourindex.php, why would yourincludes/defines.phpfile be elsewhere? To get the obvious out of the way, does adefines.phpfile exist under that path? @Lodder I didn't tell him to change the file, I told him to look there so he can learn to troubleshoot. Server related issues are the last thing on my troubleshooting steps.. there's too many other variables not accounted for here. - sjagr