XF 2.1 Error - admin.php on line 10

rcull

Member
Where should I look to solve this error:

[21-Aug-2020 05:37:54 America/New_York] PHP Warning: require(/home/teambuic/public_html/src/XF.php): failed to open stream: No such file or directory in /home/teambuic/public_html/admin.php on line 10
[21-Aug-2020 05:37:54 America/New_York] PHP Fatal error: require(): Failed opening required '/home/teambuic/public_html/src/XF.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/teambuic/public_html/admin.php on line 10

The admin.php doing the request is not in the root directory, it is in "community" as it should be, and the XF.php is where it is supposed to be.:( It looks good!

Thanks
 
Last edited:
/src/XF.php
Make sure the XF.php file exists in your forum_root / src directory. If yes, please make sure also it has been uploaded in binary and have chmod 0644
permissions.

That error occurs when the php can not find the required file.

If the file not exists, please upload it to the src directory located in your forum root directory.
 
Last edited:
I see you've edited the message.
http://prntscr.com/uk3bzs Your structure of admin.php should look like this, if not then you have a problem.
Please check your structure, if admin.php is not in root directory where are placed other files you did it wrong, that's why the XF.php can not be find.
You may uploaded admin.php in custom directory which is wrong because the script is looking for XF.php like:
./src/XF.php
And if your admin.php file is located in custom directory ex:
admincp/admin.php
then the script will check in:
admincp/src/XF.php
You should move your admin.php to correct path. :)
Next time please don't edit just your first message, instead reply to this topic so we can get notification and then try to solve your issue.
 
Back
Top Bottom