Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MS2 code fix for MS1 compatibility


bruyndoncx

Recommended Posts

Posted

If you get error

Error!

Unable to determine connection method on a link!

Known methods: NONSSL SSL

 

it's basically another MS1 MS2 incompatibility.

In MS2 you have the global variable $request_type (SSL/NOSSL), which doesn't exist in MS1.

 

To fix, add the following code to your MS2 based php code:

if (getenv('HTTPS') == 'on') $request_type = 'SSL';
       else $request_type = 'NONSSL';

 

I tried adding this to the frequent errors wiki page as a comment, but it didn't save it ...

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Archived

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

×
×
  • Create New...