PDenbigh Posted December 31, 2006 Share Posted December 31, 2006 Hello, I have spent the day setting up my osCommerce site and it's been going great! Got SSL working correctly, added some select contributions, and life is good! The final problem I have not been able to solve is that I cannot edit the details on payment modules. Using the built-in PayPal module as an example - I can "install" it (From the admin), but when I "edit" the information (such as email account name, default order status, etc) and click "update" the page refreshes but none of the info is updated. I tried installing the new PayPal IPN contribution just to make sure it wasn't something fluky with the embeded oscommerce modules and the same problem happens. Could it be a permissions issue? Or something else? Can someone provide a direction I should head to try to fix it? Or, if you know of some reading on the issue please post it! Assuming I cannot get the stuff to edit via the gui, where would I edit this info manually? Thanks in advance for your help. Crossing my fingers I'm not overlooking something obivious... Happy New Year, Peter Link to comment Share on other sites More sharing options...
berkedam Posted January 1, 2007 Share Posted January 1, 2007 includes/functions/comptability.php (in admin and catalog) find: // $HTTP_xxx_VARS // Ie, products attributes function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } } replace with: // $HTTP_xxx_VARS // Ie, products attributes function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } or change the lower part :) "If you're working on something new, then you are necessarily an amateur." Link to comment Share on other sites More sharing options...
andytc Posted January 1, 2007 Share Posted January 1, 2007 john .... you are a TOP MAN !! ... a life saver ! that answer solved my problem as well ..... Phew ! :thumbsup: have a happy new year !!!!! Link to comment Share on other sites More sharing options...
PDenbigh Posted January 2, 2007 Author Share Posted January 2, 2007 berkedam, That fixed it! Thanks so much for the assistance! If you get time, would you mind sharing a quick explanation of how you knew *that* woudl fix it? I see the change in code, it appears that it is forcing a reset of the module. Cool! Thanks again, Peter Link to comment Share on other sites More sharing options...
gueiros Posted February 27, 2007 Share Posted February 27, 2007 It really worked very well. Congrats. Thank you very much. God bless you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.