First visit must refresh problem...

Post By:user_16288 | Reply

I recently noticed that on a first visit to my site [[ mymissionarygifts.com ]], all you see is the background image and you have to refresh to see everything... even if you visit another page, not the main page, on the site for the first time aka a bookmarked category page [[ http://mymissionarygifts.com/index.p...=index&cPath=2 ]] you only see the background image. Once you've refreshed your page everything appears as it should. Even if they go from one page to another... (( go to mymissionarygifts.com and then type in one of the categories http://mymissionarygifts.com/index.p...=index&cPath=2 it allows everything to show up)).

The main problem being, anyone visiting the site has to refresh to see anything other than the background which means we are loosing sales for anyone who doesn't refresh the landing page. I hadn't noticed this until recently and I had originally thought it was because our server has been busy, but it's going on week two and now I'm thinking it is something with the coding or something. Anyone got any clues as to what the problem might be?


EDIT: I forgot to mention that our admin page has no problems whatsoever... I go to the login page and everything appears as it should.

EDIT EDIT: Sorry... also, I've tried visiting the site in chrome, firefox, and explorer and each browser has the same symptoms.
user_103Mon, 14 Nov 2011

Quote Originally Posted by View Post
As for the other errors on my debug log, I try to check it often so I don't run into this kind of problem where I can't figure out what I added to mess things up.
I suggest you delete the old logs if those errors are no longer appearing.

user_107Sun, 13 Nov 2011

You also need to do some serious image optimization - your page is 1155+ kilobytes - an ideal page is under 100kb.

user_16288Sun, 13 Nov 2011

No it's obvious... I was just too tired to pay attention. I knew it was some place obvious, cause I've had to find it before. Just wasn't looking in the right place.

But I've figured out what is causing the problem and have taken it off and will look into help thread for the add on. It was the jscript for the supertracker ;)

As for the other errors on my debug log, I try to check it often so I don't run into this kind of problem where I can't figure out what I added to mess things up.

Thank you the help, and I'll take note of the posting tips for next time and try being more awake.

user_103Sun, 13 Nov 2011

Quote Originally Posted by View Post
The problem does fix when the default template is loaded. Everything loads as it should on the first visit when using each of the web browsers mentioned previously.
Excellent, so at least that helps narrow it down to customizations related to your own template.
Quote Originally Posted by View Post
[01-Nov-2011 09:19:47] PHP Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in /public_html/includes/geoip.inc:206) in /public_html/includes/lcs/geoip.inc on line 223

[01-Nov-2011 08:48:09] PHP Warning: fclose(): 246 is not a valid stream resource in /public_html/includes/lcs/geoip.inc on line 330

[01-Nov-2011 08:24:57] PHP Warning: fclose(): 247 is not a valid stream resource in /public_html/includes/lcs/geoip.inc on line 330
Those are all suggesting problems related to your geoip addon.
Quote Originally Posted by View Post
[17-Oct-2011 21:22:37] PHP Warning: include(includes/lcs/index.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /public_html/includes/templates/Missionary_Gifts/common/tpl_main_page.php on line 40

[17-Oct-2011 21:20:16] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /public_html/index.php:4) in /public_html/includes/functions/sessions.php on line 114

[17-Oct-2011 21:20:16] PHP Warning: Cannot modify header information - headers already sent by (output started at /public_html/index.php:4) in /public_html/includes/init_includes/init_templates.php on line 78

[17-Oct-2011 21:20:16] PHP Warning: Cannot modify header information - headers already sent by (output started at /public_html/index.php:4) in /public_html/includes/functions/functions_general.php on line 45

[17-Oct-2011 20:50:44] PHP Parse error: syntax error, unexpected $end in /public_html/includes/functions/functions_ezpages.php on line 60

[17-Oct-2011 20:50:33] PHP Fatal error: main() [<a href='function.main'>function.main</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;shoppingCart&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /public_html/includes/templates/Missionary_Gifts/common/tpl_header.php on line 119
Those all appear to be related to some odd things happening in your /includes/templates/Missionary_Gifts/common/tpl_header.php file
and maybe also your /includes/templates/Missionary_Gifts/common/tpl_main_page.php file.

But, they're a month old, so might have been something you were doing "then" that's been fixed since.

Quote Originally Posted by View Post
[11-Oct-2011 21:19:09] PHP Warning: include(includes/modules/extra_definitions.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /public_html/includes/init_includes/init_templates.php on line 83

[11-Oct-2011 21:19:09] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/modules/extra_definitions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/includes/init_includes/init_templates.php on line 83

[11-Oct-2011 21:19:09] PHP Warning: require(includes/templates/template_default/common/html_header.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /public_html/index.php on line 43
Again, seems like something resulting from customizations you were making at that time, which have likely been resolved since then, judging from the lack of them being repeated daily.

user_103Sun, 13 Nov 2011

Quote Originally Posted by View Post
I think it may be that I've been running on about 2 hours of sleep for a while and I'm too delierious to find the posting tips... but I can't.
Just to clarify ... if you click the "Reply" (not "quick reply") button below, you'll see the page re-load with a box where you type in your reply. ABOVE that box is another box entitled Posting Tips.

... not sure how to make it much more obvious than that, but open to suggestions ...

user_16288Sun, 13 Nov 2011

I think it may be that I've been running on about 2 hours of sleep for a while and I'm too delierious to find the posting tips... but I can't. But if it helps I am using version 1.3.9h; PHP Version: 5.2.9 (Zend: 2.2.0); PHP Memory Limit: 64M; MySQL 5.0.92; Apache/2.2.10 I'm not sure what else to include, sorry about that.

The problem does fix when the default template is loaded. Everything loads as it should on the first visit when using each of the web browsers mentioned previously. So I'm thinking I'll have to go through the template and figure it out if the debug log doesn't help.

As for the MyDebug log, the past few are...
[01-Nov-2011 09:19:47] PHP Fatal error: Cannot redeclare geoip_load_shared_mem() (previously declared in /public_html/includes/geoip.inc:206) in /public_html/includes/lcs/geoip.inc on line 223

[01-Nov-2011 08:48:09] PHP Warning: fclose(): 246 is not a valid stream resource in /public_html/includes/lcs/geoip.inc on line 330

[01-Nov-2011 08:24:57] PHP Warning: fclose(): 247 is not a valid stream resource in /public_html/includes/lcs/geoip.inc on line 330

[17-Oct-2011 21:22:37] PHP Warning: include(includes/lcs/index.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /public_html/includes/templates/Missionary_Gifts/common/tpl_main_page.php on line 40

[17-Oct-2011 21:20:16] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /public_html/index.php:4) in /public_html/includes/functions/sessions.php on line 114

[17-Oct-2011 21:20:16] PHP Warning: Cannot modify header information - headers already sent by (output started at /public_html/index.php:4) in /public_html/includes/init_includes/init_templates.php on line 78

[17-Oct-2011 21:20:16] PHP Warning: Cannot modify header information - headers already sent by (output started at /public_html/index.php:4) in /public_html/includes/functions/functions_general.php on line 45

[17-Oct-2011 20:50:44] PHP Parse error: syntax error, unexpected $end in /public_html/includes/functions/functions_ezpages.php on line 60

[17-Oct-2011 20:50:33] PHP Fatal error: main() [<a href='function.main'>function.main</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;shoppingCart&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /public_html/includes/templates/Missionary_Gifts/common/tpl_header.php on line 119

[11-Oct-2011 21:19:09] PHP Warning: include(includes/modules/extra_definitions.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /public_html/includes/init_includes/init_templates.php on line 83

[11-Oct-2011 21:19:09] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'includes/modules/extra_definitions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/includes/init_includes/init_templates.php on line 83

[11-Oct-2011 21:19:09] PHP Warning: require(includes/templates/template_default/common/html_header.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /public_html/index.php on line 43



Thanks for your time, and if you don't see a problem immediately, I'll try figuring it out through trial and error.

user_103Sat, 12 Nov 2011

1. Please click Reply below and answer all the questions in the Posting Tips section.
2. Also include in your reply an explanation of whether the problem is "solved" if you switch your store to the "Classic" template temporarily.
3. Are there any myDebug-xxxx.log files in your /cache/ folder? If so, what are the most recent ones saying in them? ref http://tutorials.zen-cart.com/index.php?article=82

`Reply Or Comment!
Please LogIn to Reply!