voidstate Posted November 15, 2005 Posted November 15, 2005 OK I'm now doing some debugging and I'm emailing myself the contents of $crypt, $Decoded and $process_button_string before AND after the lines $process_button_string = str_replace(" ", "+", $process_button_string); $Decoded = $this->SimpleXor(base64_decode(str_replace(" ","+",$crypt)),MODULE_PAYMENT_PROTX_FORM_PASSWORD); Both are completely empty. Anyone know what's going on there? I think I might have a different issue to the rest of you because I don't appear to be getting anything back from Protx, nevermind data that's invalid. I had this problem, too. Turns out to be related to my applying the Register Globals fix. My server doesn't allow register globals to be on so I had used that fix to get oscommerce working. Seems you have to change this contribution a little to get it working, too. In protx_form.php (in modules), add a line to the beginning of the before_process function so it looks liek this: function before_process() { global $HTTP_POST_VARS, $crypt; $crypt = $_REQUEST['crypt']; // this line makes it work voidstate
Guest Posted November 15, 2005 Posted November 15, 2005 Thought it must be something like that. Cheers for the workaround voidstate, unfortunately I've moved the site to a different server now but I'm sure that will come in handy soon.
Guest Posted December 1, 2005 Posted December 1, 2005 I also have this problem. However i have upgraded my server and now have a static ip and my own ssl. Will this problem be corrected if i use Protx direct found here: http://www.oscommerce.com/community/contri...ch,Protx+Direct Thanks for your help, alexis
Guest Posted December 2, 2005 Posted December 2, 2005 I believe the problem is that the old Protx form module relies on registered globals being turned on. It's quite an easy problem to solve. All you have to do is add 1 line to the script: $crypt = $_REQUEST['crypt']; Usually $crypt would be automatically populated with registered globals turned on but with it off you have to ask nicely for the contents of the variable.
WhirlyGirl Posted December 3, 2005 Posted December 3, 2005 I also have a problem with protx. The protx notification comes through but there is no oscommerce order and it's not even in the admin section so I don't know what they have ordered. I know that PHP was upgraded to 4.4.1 this week and it's a new store I don't know whether it worked before anyway. Has anybody had this problem and managed to fix it? Regards WG
Guest Posted December 3, 2005 Posted December 3, 2005 If registered globals are turned off, try the above.
WhirlyGirl Posted December 3, 2005 Posted December 3, 2005 No, they are on - but it's working now. The two lines of code did the job! Thanks so much. WG
Daffodil Posted December 5, 2005 Posted December 5, 2005 Thanks to Recidivist! :thumbsup: This happened to me today and I did the fix and an order just came through fine so fingers crossed! We aren't on 1&1 either..
bsmiffy Posted February 16, 2006 Posted February 16, 2006 I've just amended my protx_form.php as per the instructions in this forum. I am now getting Fatal error: Cannot redeclare class protx_form Can any one help. Brian
bilke Posted March 15, 2006 Posted March 15, 2006 I believe the problem is that the old Protx form module relies on registered globals being turned on. It's quite an easy problem to solve. All you have to do is add 1 line to the script: $crypt = $_REQUEST['crypt']; Wow, I was killing myself for a couple of hours today for this :))))) THANK YOUUUUUUUU ;) Note to the module authors: Put this note to the documentation!!! Most of the webshops are functioning with the register_globals set to off.
webby007 Posted May 11, 2006 Posted May 11, 2006 I faced the same problem. Payment transactions have not been confirmed by the shopping cart. I.e. Protx cannot re-direct to your shop success page. The 2 line job didn't do the trick for me. The PHP version had nothing to do with it on my website - my web host kindly upgraded my account to the newest PHP version - the problem persisted. Registered Globals are turned on. I have come up with a workaround which I uploaded to the contrib page: http://www.oscommerce.com/community/contributions,441 Hope it helps. :)
shervin Posted May 11, 2006 Posted May 11, 2006 this used to happen to us now it randomly happened to 2 orders yesterday just using paypal & authorize.net whats the fix?
rce Posted May 31, 2006 Posted May 31, 2006 Hi All, I have just started using Protx, and I am getting the same problems as you lot. I have tried the 2 line code edit. that did not work. so I tried the URL fix that webby007 gave, and that worked after some edits. However, when the "Proceed" button is pushed, it should go to checkout_process.php but instead it goes right to login.php. Once you log in again, you start off at the checkout process! There is nothing i found on the forums or google! Please Help!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.