glaven Posted April 24, 2009 Posted April 24, 2009 My host (which runs its PHP in Safe Mode) has recently upgraded from PHP4 to PHP5. Since the change, my oscommerce shopping cart (which has been fine for the last 5 years) does not work. I have tried different settings in my host's control panel. Here are the results: 1) Globals off/PHP Error off....When I put something in the basket, I get this message: "Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog director" 2) Globals on/ PHP Error off....I can put items in and update the cart. But when I go to checkout I get a blank page. 3) Globals on/PHP Error on...Same as above but I get this message: "Parse error: syntax error, unexpected ';' in /customers/mysite.com/mysite.com/httpd.www/catalog/create_account.php on line 460" I would be very grateful if someone could tell me what might have happened and suggest any possible fixes. Thanks in advance
glaven Posted April 24, 2009 Author Posted April 24, 2009 Thanks, Bryce. Here are the lines: </tr> <?php } ?> <tr> <td class="main">City/Town:<?php echo //ENTRY_STATE; ?></td> <td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td> </tr> <?php if (ACCOUNT_STATE == 'true') { ?>
BryceJr Posted April 24, 2009 Posted April 24, 2009 </tr> <?php } ?> <tr> <td class="main">City/Town:<?php //echo ENTRY_STATE; ?></td> <td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td> </tr> <?php if (ACCOUNT_STATE == 'true') { ?>
glaven Posted April 24, 2009 Author Posted April 24, 2009 Cheers Bryce: I had to do the same with checkout_payment.php and my Shopping Cart is back working again. I can't really thank you enough for your help! (What a difference a // makes!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.