Forums / General Questions / moved store dir...now blank main page

moved store dir...now blank main page

Locked

Views: 2,406

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
18 May 2009, 9:03 AM
#1
ams30gts avatar

ams30gts

Zen Follower

Join Date:
Apr 2009
Location:
Los Angeles, California
Posts:
118
Plugin Contributions:
0

moved store dir...now blank main page

I was testing things out to hopefully go live in a few days. I followed the instructions exactly from this thread.

it seemed to work for the 1st few seconds. i checked my main page and it was there. of course it told me to change my configure file permissions back to read-only. so i did. i then go back to my main page and it is just blank. i can get in to my admin.

anyone know what i did wrong?

18 May 2009, 9:16 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: moved store dir...now blank main page

That you can get into your Admin shows that your basic approach was correct. From the rest of your description I'd guess that one of the edits to your includes/configure.php file may have been slightly wrong.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 May 2009, 9:39 AM
#3
ams30gts avatar

ams30gts

Zen Follower

Join Date:
Apr 2009
Location:
Los Angeles, California
Posts:
118
Plugin Contributions:
0

Re: moved store dir...now blank main page

going by the tutorial...

my original file (configure.php ADMIN). Text in red are the files the tutorial say to edit. The text in blue look like they should be edited also

define('DIR_WS_ADMIN', '/zencart/admin/');
define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_ADMIN', '/zencart/admin/');
define('DIR_WS_HTTPS_CATALOG', '/zencart/');

define('DIR_FS_ADMIN', '/home/XXXXXX/public_html/zencart/admin/');
define('DIR_FS_CATALOG', '/home/XXXXXX/public_html/zencart/');

define('DIR_FS_SQL_CACHE', '/home/XXXXXX/public_html/zencart/cache');

now here is my (configure.php).

define('DIR_WS_CATALOG', '/zencart/');
define('DIR_WS_HTTPS_CATALOG', '/zencart/');

define('DIR_FS_CATALOG', '/home/XXXXXX/public_html/zencart/');

define('DIR_FS_SQL_CACHE', '/home/XXXXXX/public_html/zencart/cache');

18 May 2009, 9:46 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: moved store dir...now blank main page

The blue ones should be edited. The tutorial intends you to edit the first four entries in both files, plus the last three in the admin file.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 May 2009, 9:47 AM
#5
ams30gts avatar

ams30gts

Zen Follower

Join Date:
Apr 2009
Location:
Los Angeles, California
Posts:
118
Plugin Contributions:
0

Re: moved store dir...now blank main page

updating site...brb

18 May 2009, 9:55 AM
#6
ams30gts avatar

ams30gts

Zen Follower

Join Date:
Apr 2009
Location:
Los Angeles, California
Posts:
118
Plugin Contributions:
0

Re: moved store dir...now blank main page

ADMIN configure.php now reads

define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_FS_ADMIN', '/home/XXXXXX/public_html/admin/');
define('DIR_FS_CATALOG', '/home/XXXXXX/public_html/');

define('DIR_FS_SQL_CACHE', '/home/XXXXXX/public_html/cache');

configure.php now reads

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_FS_CATALOG', '/home/XXXXXX/public_html/');

define('DIR_FS_SQL_CACHE', '/home/XXXXXX/public_html/cache');

still the same problem. white home page

i also ran fix_cache_key.php

18 May 2009, 10:21 AM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: moved store dir...now blank main page

Nothing obviously wrong here. Blank pages usually mean that PHP has thrown a fatal error but it's been suppressed. There's a FAQ Entry here that helps track down the source. You can probably jump in at step 2. With luck one of the options there will lead you straight to the source of the issue. But whether it does or not, I'll be waiting to here to hear how it goes!

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 May 2009, 10:32 AM
#8
ams30gts avatar

ams30gts

Zen Follower

Join Date:
Apr 2009
Location:
Los Angeles, California
Posts:
118
Plugin Contributions:
0

Re: moved store dir...now blank main page

im my error log in my cpanel i am getting this repeatily

[Mon May 18 04:31:13 2009] [error] [client 207.210.219.125] Failed loading /usr/local/Zend/lib/Optimizer/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer/php-5.2.x/ZendOptimizer.so: undefined symbol: compiler_globals

i got no clue what that is

18 May 2009, 10:42 AM
#9
ams30gts avatar

ams30gts

Zen Follower

Join Date:
Apr 2009
Location:
Los Angeles, California
Posts:
118
Plugin Contributions:
0

Re: moved store dir...now blank main page

i got this from the debug error logging utility

[18-May-2009 04:36:02] PHP Warning: require(includes/index_filters/default) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/allieda1/public_html/includes/modules/pages/index/header_php.php on line 49

18 May 2009, 10:46 AM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: moved store dir...now blank main page

Not seen one of those optimizer errors before. I don't believe that Zen Cart has any dependencies on Zend Optimizer. So unless you have encrypted 3rd party modules installed, that should be an irritant to take up with your host rather than the cause of this. Hopefully somebody more knowledgeable than me on this subject will confirm (or otherwise).

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 May 2009, 10:53 AM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: moved store dir...now blank main page

The error message that you got from the debug statement points to this line

require(DIR_WS_INCLUDES . zen_get_index_filters_directory($typefilter . '_filter.php'));
```This should require the file default_filter.php, but appears to be missing the '_filter.php' bit, as the require statement is being truncated to ```php
require(includes/index_filters/default)

Could it be that the line is corrupted on your server?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 May 2009, 11:32 AM
#12
ams30gts avatar

ams30gts

Zen Follower

Join Date:
Apr 2009
Location:
Los Angeles, California
Posts:
118
Plugin Contributions:
0

Re: moved store dir...now blank main page

this was pretty weird.

that file.... default_filter.php and the other 2 files in that folder were set to permission 000 and showed a 0 file size. i changed the permissions to 777 and then the file size showed up and all works now.

what permission should those files and foler be set to?

18 May 2009, 11:34 AM
#13
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: moved store dir...now blank main page

That can depend on the server security settings required by your host, but if 777 is working for you then that should be fine.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 May 2009, 11:43 AM
#14
ams30gts avatar

ams30gts

Zen Follower

Join Date:
Apr 2009
Location:
Los Angeles, California
Posts:
118
Plugin Contributions:
0

Re: moved store dir...now blank main page

ill check it out.

thanks for the help this morning. really appreciate it

18 May 2009, 12:14 PM
#15
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: moved store dir...now blank main page

ams30gts:

this was pretty weird.

that file.... default_filter.php and the other 2 files in that folder were set to permission 000 and showed a 0 file size. i changed the permissions to 777 and then the file size showed up and all works now.

what permission should those files and foler be set to?
Any zero byte file you uploaded almost always means it was not uploaded correctly, re-uploading is required.

Your FTP program will automatically use the correct permissions for any dir. or file, as per the Server requirements. Only change or override the Server permission settings if you know what you are doing. For example; without special precautions taken first or it's just temporary, setting any dir. or file permissions to 777 is just asking to be hacked.

The learning is in the doing.

Potent Products