0
votes

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?

1
Open your index.php, look at line 18, work backwards from there. - sjagr
define('_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
This is not an issue with the index.php file. DO NOT change it! Check with your hosting to see if they have changed any server settings. If you're Joomla site was working before and all of a sudden has gone wrong, then this is not your fault but a server related issue. Also make sure you never move or edit any core Joomla files - Lodder
Are you sure the path is wrong? The errors claim that /home/logosist/public_html/ is the path of your index.php, why would your includes/defines.php file be elsewhere? To get the obvious out of the way, does a defines.php file 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
@sjagr - I know you didn't tell him to do this. I was making sure he didn't make any changes to it. A lot of people start changing core Joomla files and then wonder why their site doesn't work ;) - Lodder

1 Answers

0
votes

Check you directories and files access permissions. I don't think that it is path problem. I've had the same and setting correct permissions solved it.