An unofficial OScommerce FAQ

I just installed oscommerce and it tells me I need to enable register globals, what is this all about?

One can only speculate about why this has not been addressed in the latest official release. Writing PHP software that requires register globals to be enabled has been the source of man security problems, and nobody should be willing to accept or run such software in this day and age. Happily, there are some patches (actually collections of modified files) that you can root around on the forum and get (or get from this site), and then use to replace the corresponding files in the existing distribution.

Will OScommerce work with PHP 5

Not without some fiddling, keep reading.

On my PHP 5 system, my oscommerce install loops forever at the second screen of questions, what is up?

OScommerce uses the PHP variables HTTP_GET_VARS and HTTP_POST_VARS, which are not filled with GET and POST data in a stock PHP 5 install. (These have been deprecated for a LONG time and are now going away as of PHP 5). You can grind though the entire oscommerce source and replace HTTP_GET_VARS with _GET and HTTP_POST_VARS wiht _POST like the developers ought to do, or just enable register_long_vars in your php.ini and restart your web server. Since enabling this has no security issues as does register_globals this is the simple thing to do.

I have installed OScommerce, but now I keep getting a blank admin screen

You should not be having this problem with the latest release, but this is again a PHP 5 issue. Rumor has it this question has come up hundreds if not thousands of times in the forums (so why don't they just fix it in the released source?) You need to edit the file:
catalog/admin/includes/classes/upload.php

Find line 31 and change it to:

//$this = null
unset($this);

Have any comments? Questions? Drop me a line!

Adventures in Computing / tom@mmto.org