News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Help plz: Admin Error after Login

Started by Hiflo, May 22, 2012, 02:40:31 PM

Previous topic - Next topic

Hiflo

Hi,

When I click on Admin the Admin Login Screen Loads OK, then I enter the password & click OK & I receive the following error:

Fatal error: require_once() [function.require]: Failed opening required '/home/elw50103/public_html/warpigs/Sources/who.php' (include_path='.:/usr/local/lib/php/PEAR:/usr/lib/php:/usr/local/lib/php') in /home/elw50103/public_html/warpigs/Sources/Admin.php on line 596

(see attached screenshot)

I've also attached a screenshot of the admin.php code ~line 596

As I have no knowledge of php code can anyone see a problem in the code please?

Also worth noting I can still login the Admin sub-catergories OK: Features & Options / Package Manager / Error Log & Permissions without a problem.

Thank You
Hiflo

NanoSector

In that file, change
require_once($sourcedir . '/who.php');

to
require_once($sourcedir . '/Who.php');
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Hiflo

Thanks for taking the time to read & post a fix Yoshi that fixed it!

PHP coders are truly rocket scientists!

Before I click "problem solved" would you know how this could happen as I might have to reset my password on my ISP?

NanoSector

Some UNIX/Linux systems have case-sensitive files. On Windows it doesn't matter whether you use "who.php" or "Who.php", it loads the same file, but on UNIX/Linux it doesn't think those files are the same, thus causing an error when having the W different.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Hiflo

Roger

Thanks again Yoshi!

Cheers
Hiflo

Advertisement: