Zen Cart Logo
Forums / Basic Configuration / fatal error on admin page

fatal error on admin page

Locked

Views: 1,941

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
30 Dec 2009, 5:56 AM
#1
wildfire1629 avatar

wildfire1629

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

fatal error on admin page

I installed Zen Cart with no issues. I've added mfgs, categories, products, etc... I was trying to follow the directions for customizing the "Sales Message Goes Here" and "Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution." Now I cannot log-in to my admin page. I get the following:

Warning: require(includes/languages/custom.php) [function.require]: failed to open stream: No such file or directory in /admin/includes/init_includes/init_languages.php on line 31

Warning: require(includes/languages/custom.php) [function.require]: failed to open stream: No such file or directory in /admin/includes/init_includes/init_languages.php on line 31

Fatal error: require() [function.require]: Failed opening required 'includes/languages/custom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /admin/includes/init_includes/init_languages.php on line 31

I have checked line 31 on admin/includes/init_includes/init_languages.php and it is only "?>" I have not touched this file manually with any of the directions I've followed tonight.

Can anyone help please?!!?!?

30 Dec 2009, 6:21 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: fatal error on admin page

I was trying to follow the directions for customizing the "Sales Message Goes Here" and "Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution." Now I cannot log-in to my admin page.
Which file/files did you alter...make sure you have NO blank
spaces after final ?> in those file/files

30 Dec 2009, 12:11 PM
#3
wildfire1629 avatar

wildfire1629

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: fatal error on admin page

I followed these directions: https://www.zen-cart.com/tutorials/index.php?article=142

I decided I didn't like the "custom" template for the time being, switched back to green, and then I went here :https://www.zen-cart.com/tutorials/index.php?article=132

I was getting frustrated because the 1st instruction, to turn the side boxes on or off, didn't actually produce any results on my page. I refreshed all my FireFox tabs and that's when I could no longer get to my admin log-in.

30 Dec 2009, 2:19 PM
#4
wildfire1629 avatar

wildfire1629

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: fatal error on admin page

@ the "real job" now...will have to investigate more tonight...

31 Dec 2009, 2:24 AM
#5
mattymatt avatar

mattymatt

Zen Follower

Join Date:
Dec 2009
Location:
Pinner
Posts:
234
Plugin Contributions:
1

Re: fatal error on admin page

if you copy

includes/languages/english.php

to the file it is looking for

includes/languages/custom.php

it might work and at least get something workable. I can't get close to getting that error by following the instructions but it looks like you may have added a new language so to get you to be able to look around I would guess that you would copy that file over until you can work out what happened.

31 Dec 2009, 4:07 AM
#6
wildfire1629 avatar

wildfire1629

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: fatal error on admin page

Hey Matt - that worked but now I am getting this error:
Warning: require(...store/includes/languages/custom/meta_tags.php) [function.require]: failed to open stream: No such file or directory in ...store/admin/includes/languages/custom.php on line 50

Fatal error: require() [function.require]: Failed opening required '...store/includes/languages/custom/meta_tags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in ...store/admin/includes/languages/custom.php on line 50

The error is right...there is no such file in my directory. There isn't one in my master zen downlaod folder either. Any ideas where to get one or if I make one what it needs to have in it?

31 Dec 2009, 5:08 AM
#7
wildfire1629 avatar

wildfire1629

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: fatal error on admin page

WOW - I fixed the above and another and another and another...
Now I have this error and I have no idea how to fix this one. HELP PLEASE!

Fatal error: Call to a member function get_template_dir() on a non-object in /home/plaklc09/public_html/store/admin/includes/languages/custom/credit_cards.php on line 46

Above this error is text listing all the differrent menus and sub menus on the admin page. I can click on any of them but cannot access any. Clicking one just refreshes the page.

31 Dec 2009, 5:31 AM
#8
wildfire1629 avatar

wildfire1629

New Zenner

Join Date:
Dec 2009
Posts:
6
Plugin Contributions:
0

Re: fatal error on admin page

Can anyone tell me which files to reload to reset my store BUT I don't want lose all my items, categories, and manufacturers I've set up?

31 Dec 2009, 8:50 AM
#9
mattymatt avatar

mattymatt

Zen Follower

Join Date:
Dec 2009
Location:
Pinner
Posts:
234
Plugin Contributions:
1

Re: fatal error on admin page

wildfire1629:

Hey Matt - that worked but now I am getting this error:
Warning: require(...store/includes/languages/custom/meta_tags.php) [function.require]: failed to open stream: No such file or directory in ...store/admin/includes/languages/custom.php on line 50

Fatal error: require() [function.require]: Failed opening required '...store/includes/languages/custom/meta_tags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in ...store/admin/includes/languages/custom.php on line 50

The error is right...there is no such file in my directory. There isn't one in my master zen downlaod folder either. Any ideas where to get one or if I make one what it needs to have in it?

I have a meta_tags.php file in includes/languages/english/meta_tags.php

to me it looks like you have a configuration file with "custom" in it instead of "english" and so it's looking for the folder and contents of includes/languages/english with regards to below, if you can find that file and change it back then you won't loose any products or things you have entered in.

I don't know what you entered when following the instructions because when I went through the article you mentioned it didn't do anything much at all.

31 Dec 2009, 12:31 PM
#10
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: fatal error on admin page

includes/languages/custom.php
That is not a valid zencart file as far as am aware

5 Jan 2010, 11:00 AM
#11
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: fatal error on admin page

Within your admin, under Localization, just check which languages you have installed. You should have English as the default on a standard store, but it appears that you have a "custom" setting, which your store is defaulting to.

Absolute