Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC operation Unstable. Is it MS2 or my host?


sfoust

Recommended Posts

Posted

I've installed a fresh copy of 22MS2 (no contributions).

 

About every 20 clicks I'll get one of the following:

(problems seem more prone to pop up when clicking between areas in MY ACCOUNT and the catalog)

 

1) just a white screen (pressing REFRESH normally clears it)

 

2) a white screen saying

FATAL ERROR: register_globals is disabled in php.ini, please enable it!
(pressing REFRESH normally clears it)

 

3) a page with a red error message at the top saying

Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server

 

 

SSL is off (I'm not even trying to tackle that yet) and session cookies is on.

 

As far as I can tell my PHP setting are fine. See them here:

http://www.sfoust.net/phpinfo.php

 

Catalog configure:

  define('HTTP_SERVER', 'http://www.sfoust.net'); // eg, http://localhost - should not be empty for productive servers

 define('HTTPS_SERVER', 'https://storm.he.net'); // eg, https://localhost - should not be empty for productive servers

 define('ENABLE_SSL', false); // secure webserver for checkout procedure?

 define('HTTP_COOKIE_DOMAIN', '.sfoust.net');

 define('HTTPS_COOKIE_DOMAIN', 'storm.he.net');

 define('HTTP_COOKIE_PATH', '/catalog/');

 define('HTTPS_COOKIE_PATH', '~sfoust/secure/catalog/');

 define('DIR_WS_HTTP_CATALOG', '/catalog/');

 define('DIR_WS_HTTPS_CATALOG', '/~sfoust/secure/catalog/');

 

Catalog .htaccess

<IfModule mod_setenvif.c>

 <IfDefine SSL>

   SetEnvIf User-Agent ".*MSIE.*" 

            nokeepalive ssl-unclean-shutdown 

            downgrade-1.0 force-response-1.0

 </IfDefine>

</IfModule>



# Fix certain PHP values

# (commented out by default to prevent errors occuring on certain

# servers)



<IfModule mod_php4.c>

 php_value session.use_trans_sid 0

 php_value register_globals 1

</IfModule>

 

 

Admin configure:

  define('HTTP_SERVER', 'http://www.sfoust.net'); // eg, http://localhost - should not be empty for productive servers

 define('HTTP_CATALOG_SERVER', 'http://www.sfoust.net');

 define('HTTPS_CATALOG_SERVER', 'https://storm.he.net');

 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

 define('DIR_FS_DOCUMENT_ROOT', '/home/sfoust/public_html/catalog/'); // where the pages are located on the server

 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

 define('DIR_FS_ADMIN', '/home/sfoust/public_html/catalog/admin/'); // absolute pate required

 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

 define('DIR_FS_CATALOG', '/home/sfoust/public_html/catalog/'); // absolute path required

 

Admin .htaccess

<IfModule mod_setenvif.c>

 <IfDefine SSL>

   SetEnvIf User-Agent ".*MSIE.*" 

            nokeepalive ssl-unclean-shutdown 

            downgrade-1.0 force-response-1.0

 </IfDefine>

</IfModule>



# Fix certain PHP values



<IfModule mod_php4.c>

 php_value session.use_trans_sid 0

 php_value register_globals 1

</IfModule>

 

Check it out here:

www.sfoust.net/catalog/

 

create a new account or:

email: [email protected]

password: demo

(however, not sure what will happen when 20 people try using the same account)

 

See anything wrong with my install?

Anyone had any of these problems before?

 

Is it time to ask my ISP "What gives?"

What should I tell them when they say "It's got to be the cart code."?

Posted

Try doing a search on *register_globals *

It as been discuss very often and there are a few fix for this

 

HTH

The_Bear

Posted

Thanks The_Bear,

 

Reading through the search results for "register_globals" I found what I needed. A single line that when added to my .htaccess files, seems to have fixed (knock on wood) my problems.

 

My .htaccess file now looks like this:

 

#<IfModule mod_php4.c>

 php_value session.auto_start 0

 php_value session.use_trans_sid 0

 php_value register_globals 1

#</IfModule>

 

I dont know if it's necessary to comment out the check for mod_php4, but I didn't want to take any chances. :wink:

 

Thanks again Bear

Archived

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

×
×
  • Create New...