Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

My disappearing pages!


quadified

Recommended Posts

Posted

Hi Everyone,

 

I've been developing my companies site http://store.atvworld.com. I've added a couple of modules from contributors section and everything worked great when testing locally. Now it's "live" and I have a BIG problem.

 

The pages randomly don't load. You can be browsing through the site and suddenly hit with a blank page! If you hit refresh on your browser (does the same on any browser) the page reloads fine.

 

I contacted my hosting company thinking it's due to a slow server, not set up correctly etc etc but they tell me it's my code that's wrong.

 

Has anyone else experienced this sort of problem or can anybody offer advise how I can solve my problem.

 

Thanks

 

Quadified

Posted
Did you check if any Javascript error occurred when a blank page came up?

 

Hi Oschellas,

 

Thanks for your response. I'm not sure what process is involved in checking javascript errors as a blank page appears. I can see the source code of the page that should have appeared with firefox and have checked it - seems fine. In explorer I get the message: Internet Explorer cannot display the webpage.

Posted

Probably the lightbox contribution is preventing the page to load properly. In case you clear the browser cache / history the problem returns after a reload. There are some nice contributions for Firefox to debug Javascript errors.

 

Warning: Error in parsing value for property 'cursor'. Declaration dropped.

Source File: http://store.atvworld.com/lightbox.css

Line: 139

Posted
Probably the lightbox contribution is preventing the page to load properly. In case you clear the browser cache / history the problem returns after a reload. There are some nice contributions for Firefox to debug Javascript errors.

 

Warning: Error in parsing value for property 'cursor'. Declaration dropped.

Source File: http://store.atvworld.com/lightbox.css

Line: 139

 

 

.moduleRowOver {background-color: #DBDBDB; cursor: pointer; cursor: hand; }

 

This is the error you are picking up. It's the standard code jsut as in the stylesheet.css. I'm not sure of a better way to change the cursor.

Posted

It could be that the specific line is not the cause of the page not being loaded. Did you try if the error comes up when you disable Javascript? Also you might get some more info from your servers error log.

Posted
It could be that the specific line is not the cause of the page not being loaded. Did you try if the error comes up when you disable Javascript? Also you might get some more info from your servers error log.

 

I have just tried to look at your site and immediatly get "Page not found "

Posted
I have just tried to look at your site and immediately get "Page not found "

 

 

Yes - sometimes it won't even load at all. If you click refresh however it appears.

 

I switched off JavaScript with the "web developer" firefox add-on. Didn't help. Pages still didn't load but thanks for the suggestion. The hosting company been back in touch to say it's my code and not their server. The site runs fine on my local drive and I haven't made any alterations to code other than included modules, LightBoxed ULTRA PICS and a couple in the admin section - postal rates etc

Posted
Yes - sometimes it won't even load at all. If you click refresh however it appears.

 

I switched off JavaScript with the "web developer" firefox add-on. Didn't help. Pages still didn't load but thanks for the suggestion. The hosting company been back in touch to say it's my code and not their server. The site runs fine on my local drive and I haven't made any alterations to code other than included modules, LightBoxed ULTRA PICS and a couple in the admin section - postal rates etc

 

 

Nice website !

Just noticed your not that far from me, i am in Scarbororugh, North Yors

Not at all sure if this will help or not, but I can give you some webspace if you want to try your site on my server - I currently have 40 oscommerce sites, and touch wood, they are all working as they should be

Posted
Nice website !

Just noticed your not that far from me, i am in Scarbororugh, North Yors

Not at all sure if this will help or not, but I can give you some webspace if you want to try your site on my server - I currently have 40 oscommerce sites, and touch wood, they are all working as they should be

 

I've checked the error log files and this is the error that is causing the problem! However I have no idea what it means. Any suggestions??? This comes up thousands of times throughout the day.

 

[Wed Apr 30 15:27:25 2008] [error] [client XXX.XX.XX.XXX FastCGI: comm with server "/var/www/fcgi/php-cgi" aborted: error parsing headers: duplicate header 'Status'

Posted

You are probably not running fast cgi locally for testing, it can react seriously on little errors. Check if your htaccess files have been setup correctly and if your php coding doesn't contain empty spaces before the php opening tag

<?php

and after the php closing tag

?>

. Is there a way to override the php ini settings to display php errors (htaccess / php.ini) at your provider (or ask them), it will make the search for the bug a lot easier.

  • 2 weeks later...
Posted
You are probably not running fast cgi locally for testing, it can react seriously on little errors. Check if your htaccess files have been setup correctly and if your php coding doesn't contain empty spaces before the php opening tag
<?php

and after the php closing tag

?>

. Is there a way to override the php ini settings to display php errors (htaccess / php.ini) at your provider (or ask them), it will make the search for the bug a lot easier.

 

Finally!...14 days later the hosting company have this to say;

 

The logfile errors of:

 

[Mon May 5 07:43:18 2008] [error] [client XX.XXX.XXX.XXX] FastCGI: comm with server "/var/www/fcgi/php-cgi" aborted: error parsing headers: duplicate header 'Status'

 

This would occur because the headers outputted a duplicate Status line.

 

Headers are the first lines outputted when a webpage request is made, followed by the webpage itself.

 

Through scripting languages like php, you can send header lines before starting the main web page code

 

As such, if you are getting this error, this would be down the scripts you are using doing this.” [/i]

 

This is happening on any page - even admin which I have not altered ANY script of the original OSCOMMERCE - The hosting company clearly think it's my script but I have no idea what the problem could be?[/i]

 

Any advice?

Posted

Fast CGI is very sensitive for script errors, did you try to debug the php error?

 

In case you are able to override the php settings by placing a php.ini file in the shop root containing only the following lines:

 

error_reporting  =  E_ALL
display_errors = On

 

you would be able to see an error message with the filename that causes the error instead of a blank page...

Posted
Fast CGI is very sensitive for script errors, did you try to debug the php error?

 

In case you are able to override the php settings by placing a php.ini file in the shop root containing only the following lines:

 

# $Id: $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#   AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

#<IfModule mod_setenvif.c>
#  <IfDefine SSL>
#    SetEnvIf User-Agent ".*MSIE.*" \
#             nokeepalive ssl-unclean-shutdown \
#             downgrade-1.0 force-response-1.0
#  </IfDefine>
#</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter

# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

# php_value session.use_trans_sid 0
# php_value register_globals 1

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) 404_handler.php
ErrorDocument 404 /htdocs/404_handler.php 

Posted

The mod rewrite is not original, so you could test without them. What happens if you add following lines to the htaccess file;

 

php_flag display_errors on
php_value error_reporting 7

 

Do you still get a blank page without an error?

Posted
The mod rewrite is not original, so you could test without them. What happens if you add following lines to the htaccess file;

 

php_flag display_errors on
php_value error_reporting 7

 

Do you still get a blank page without an error?

 

I have tried to add the code but any amend to my .htaccess file and I get the message:

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

I have tried a number of different .htaccess files including the original one with the standard oscommerce installation but it comes up with the same message above. I tried running with an empty .htaccess file and site worked but still with the blank pages. Could I have a problem with the way my .htaccess files are talking to the Apache server?

Posted

Usually cgi and fastcgi only allow certain instructions from the htaccess overrides, a lot of hosters allow overriding the default php configuration by placing your own php.ini.

 

For you it is important to find what is causing the error, you tried several ways to simply output the error instead of a blank screen, but that doesn't seem to work. Ask your provider if php errors are logged and if you can access those logfiles or if they can send you the errors in from log.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...