Zen Cart Logo
Forums / General Questions / Website won't open suddenly!

Website won't open suddenly!

Views: 1,472

Results 1 to 5 of 5
2 Jan 2014, 6:25 AM
#1
k1rk_hammett avatar

k1rk_hammett

New Zenner

Join Date:
Nov 2013
Location:
Chelmsford, Essex, United Kingdom
Posts:
19
Plugin Contributions:
0

Website won't open suddenly!

https://www.astromerchandise.co.uk
I have been working on this website for a while now making minor tweaks (I am still learning to use zen cart) when all of the sudden my page stops loading completely, just giving me a white blank page. My admin panel still works. I changed something that made this error occur (changed my english.php file) but then as soon as I saw the error I put the original file back but the error hasn't reverted. I looked in my logs folder and found this

'[02-Jan-2014 06:21:01 UTC] PHP Warning: require(DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/astro/public_html/includes/languages/stirling_grand/english.php on line 51
[02-Jan-2014 06:21:01 UTC] PHP Warning: require(DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/astro/public_html/includes/languages/stirling_grand/english.php on line 51
[02-Jan-2014 06:21:01 UTC] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'DIR_FS_CATALOG_LANGUAGESenglish/meta_tags.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/astro/public_html/includes/languages/stirling_grand/english.php on line 51'

This confuses me, I went to line 51 in my english.php file and it reads

'require(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/' . $template_dir_select . 'meta_tags.php');'

Could anyone shed some light on the situation? :(

Also, my meta_tags.php has not been edited at all and all seems to be fine. HELPPP

2 Jan 2014, 9:31 AM
#2
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Website won't open suddenly!

In that case I'd start by replacing both files in question with the original versions from a fresh download of the version you are using? You aren't actually using 1.5.2 yet are you? It still hasn't had it's verified release.

2 Jan 2014, 2:57 PM
#3
rodg avatar

rodg

Deceased

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

Re: Website won't open suddenly!

Check your admin configure.php file.

There appears to be something amiss with the line that should read like

define('DIR_FS_CATALOG_LAGUAGES', DIR_FS_CATALOG . 'includes/languages/') ;

Cheers
Rod

2 Jan 2014, 3:35 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Website won't open suddenly!

If the admin still works but the storefront doesn't, I would think the issue is with the base /includes/configure.php version of the define, not the /admin/includes/ file.

3 Jan 2014, 1:47 PM
#5
rodg avatar

rodg

Deceased

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

Re: Website won't open suddenly!

gjh42:

If the admin still works but the storefront doesn't, I would think the issue is with the base /includes/configure.php version of the define, not the /admin/includes/ file.

That's what I thought too, but this particular define is only found in the /admin/includes file.

<five mins later>

It appears I may have given a bad lead.

The problem has nothing to do with the define in the configure.php file (which is only used in the /admin/ copy) but rather, what I think has happened is that he has managed to replace his
/includes/languages/english.php file with /admin/includes/languages/english.php.

This explains both why the admin functions still work and what the error messages are telling us. It also relates to the edits being made at the time the problem arose.

I can't think of any other possible cause.

Cheers
RodG