Fatal Error in admin login php line 23

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
kamperguy
New Member
New Member
Posts: 5
Joined: Fri Jan 04, 2013 6:48 pm

Fatal Error in admin login php line 23

Post by kamperguy »

I am missing something for sure here. I have CMSMade Simple with the older 1.9.4 (if I remember right) and wanted to load a newer version that some shopping cart type modules required.

Now, I cant login at all, just get this message:
Warning: require_once(/nfs/c08/h04/mnt/123141/domains/rv-center.net/html/include.php) [function.require-once]: failed to open stream: Permission denied in /nfs/c08/h04/mnt/123141/domains/rv-center.net/html/admin/login.php on line 23

Fatal error: require_once() [function.require]: Failed opening required '../include.php' (include_path='/domains/rv-center.net/html') in /nfs/c08/h04/mnt/123141/domains/rv-center.net/html/admin/login.php on line 23
Here is my admin/login.php line 23 area:
$CMS_ADMIN_PAGE=1;

require_once("../include.php");
require_once("../lib/classes/class.user.inc.php");
global $gCms;
$db =& $gCms->GetDb();

$error = "";
$forgotmessage = "";
$changepwhash = "";
Our site http://www.rv-center.net is also down and this message comes up:
The wesbite declined to show this webpage

HTTP 403
Most likely causes:
•This website requires you to log in.

What you can try:
Go back to the previous page.

More information
Any help is much appreciated. I am an amateur at best. so I need newbie language please. thanks in advance.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Fatal Error in admin login php line 23

Post by Jo Morg »

I hope you have made a backup of the site before upgrading...
Was it a jump upgrade from 1.9.4 to 1.11.4?
Or did you read this, before upgrading?
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
kamperguy
New Member
New Member
Posts: 5
Joined: Fri Jan 04, 2013 6:48 pm

Re: Fatal Error in admin login php line 23

Post by kamperguy »

It didnt back it up properly is my best guess.

Yes, it was the jump from 1.9.4 to 1.11.4

Kinda lost here on a fix. I dont want to 'try' a bunch of things and cause further problems, so I am at a stand-still.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Fatal Error in admin login php line 23

Post by Jo Morg »

I would try to upload back the files of cmsms 1.9.4 and see if you can access admin console. After that I would follow the instructions of the link I posted previously. Look for the files on the downloads section.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
kamperguy
New Member
New Member
Posts: 5
Joined: Fri Jan 04, 2013 6:48 pm

Re: Fatal Error in admin login php line 23

Post by kamperguy »

Backed up files and I went ahead and loaded up 1.10 Full. Now I still get same message at admin console BUT the website now says 'down for maintenance'
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: Fatal Error in admin login php line 23

Post by Jo Morg »

kamperguy wrote:Backed up files and I went ahead and loaded up 1.10 Full.
Why 1.10 full?
kamperguy wrote:Now I still get same message at admin console BUT the website now says 'down for maintenance'
No... it's not the same message... which means that it is still the wrong version from what you had previously. Didn't you state you had 1.9.4? You should upload, at the very least, 1.9.4.3 and then try to access admin console. But if you not sure of which version you had before this is pretty much a trial and error exercise.
Also make sure you have a db backup: that should be the most critical backup as the database holds the data you really don't want to lose. If none of that works, try to contact your host and see if it is possible to revert the site to a state previous to your attempt to upgrade.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Monitor2
New Member
New Member
Posts: 8
Joined: Fri Dec 14, 2012 12:16 am

Re: Fatal Error in admin login php line 23

Post by Monitor2 »

Geegle "Warning: require_once" and you will see solutions. First website that pops up says it is permissions related.

How did you upload your files? FTP or on-server extract?

What are the permissions on those files?

What is your info.php?
kamperguy
New Member
New Member
Posts: 5
Joined: Fri Jan 04, 2013 6:48 pm

Re: Fatal Error in admin login php line 23

Post by kamperguy »

Making some progress. Went back to 1.9.4.3 and now I have access to admin panel. Our website still says 'down for maintenance'. Just need to fix that and I will be back to normal. thanks again!
kamperguy
New Member
New Member
Posts: 5
Joined: Fri Jan 04, 2013 6:48 pm

Re: Fatal Error in admin login php line 23

Post by kamperguy »

solved! server changed the Chmod to 644 which allowed me to change the config.php to 'write'.

Thanks for all you help! The site is back up to where it was and next week I will back it all up again and then upgrade to 1.10 and then to 1.11 so that I can start using the shopping cart and other modules.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Fatal Error in admin login php line 23

Post by Rolf »

Backup files and dbase
Upgrade to 1.10.3
Upgrade modules
Upgrade to 1.11.4
Upgrade modules...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “[locked] Installation, Setup and Upgrade”