Forums / General Questions / Admin login error

Admin login error

Started by colt4t5 on 16 Aug 2012, 11:09 PM · Views: 533

Results 1 to 5 of 5
16 Aug 2012, 11:09 PM
#1
colt4t5 avatar

colt4t5

New Zenner

Join Date:
Aug 2012
Posts:
2
Plugin Contributions:
0

Admin login error

Hello; I have had Zencart installed for years and now I get an error when I try to access the admin page. This was happening before I upgraded to 1.3.9h, ( thought the upgrade might fix it ) Here is the error I get when I login:

Warning: require(includes/application_header.php) [function.require]: failed to open stream: No such file or directory in /home/thercout/public_html/admin/login.php on line 29

Warning: require(includes/application_header.php) [function.require]: failed to open stream: No such file or directory in /home/thercout/public_html/admin/login.php on line 29

Fatal error: require() [function.require]: Failed opening required 'includes/application_header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thercout/public_html/admin/login.php on line 29

This is the response I received from my hosting company:

The login.php is calling application_header.php for its proper execution. But I couldn't find the file application_header.php in the includes directory of your account and this is causing the warning message. The file seems to be added to the cart script in the upgraded version. I couldn't find it in the backups too. Please check with zencart support to fix this issue. Let us know if you need any further assistance.

Any help would be greatly appreciated.

Thanks

Dave

17 Aug 2012, 2:14 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Admin login error

What procedure did you follow to perform the upgrade?

Bottom line is that some files either weren't uploaded, or have been uploaded into the wrong folders.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

17 Aug 2012, 2:16 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Admin login error

There is no "application_header.php" file in any version of Zen Cart.
So your site must be using some addons or custom code that's looking for a file that was added for some additional purpose. You'll need to either pare back to original Zen Cart code, or identify the missing pieces from whichever addon they came from and fix the missing components so that it works again.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Aug 2012, 2:33 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Admin login error

DrByte:

There is no "application_header.php" file in any version of Zen Cart.

Nice catch...
What would I do without you to keep me honest? :)

Needless to say, I was thinking of 'application_top.php'

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

17 Aug 2012, 3:00 AM
#5
colt4t5 avatar

colt4t5

New Zenner

Join Date:
Aug 2012
Posts:
2
Plugin Contributions:
0

Re: Admin login error

Hello again;

Thanks for the info!! It looks like I am going to have to delete the entire install and start from the begining, this was a site I bought about 5 years ago so I have no access to the original files.

Cheers

Dave