Fatal error: require_once(): Failed opening required

不打扰是莪最后的温柔 提交于 2020-01-07 02:43:46

问题


This is the first time I upload a site - http://indianrestaurantmumbai.com/ , I have added everything necessary to my folder (I think), and it gives me this error message:

Warning: require_once(/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes/defines.php): failed to open stream: No such file or directory in /home/ecoconst/public_html/IndianRestaurantMumbai.com/index.php on line 21


Fatal error: require_once(): Failed opening required '/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ecoconst/public_html/IndianRestaurantMumbai.com/index.php on line 21

Can please someone help me out?


回答1:


The error actually seems clear. The file:

/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes/defines.php

does not seem to exist on your hosting account. The path seems correct, comparing it with the one of your index.php file that tries to reference the defines.php.

I would recommend that you confirm that the file defines.php is properly uploaded in:

/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes

and if so, please make sure that it's permissions are 644 or 755.

If this is an existing Joomla and the file is missing, I would recommend that you contact your hosting provider and see if they are using ConfigServer eXploit Scanner (cxs). If your Joomla has been compromised, the scanner often quarantines files, resulting in similar issues.




回答2:


I found the solution, simply the .htaccess was looking for first page "index.html" and my .html file was "Index.html" with capital "I", so I just renamed it and everything was fine.



来源:https://stackoverflow.com/questions/36113216/fatal-error-require-once-failed-opening-required

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!