by iluber » Mon Nov 16, 2009 11:02 am
I think I have found a bug in OCS 2.1.2 at the end of the registration process if php 4.4.9 is used (but for what I have found on the internet this should be a problem with every PHP version under 5).
I have also found a possible workaround.
When the registration form is submitted the user is alway redirected to the form itself and three notices are shown:
Hex Number is too big 0x1000000001 in ...../classes/registration/form/UserRegistrationForm.inc.php on line 19
Hex Number is too big 0x1000000002 in ...../classes/registration/form/UserRegistrationForm.inc.php on line 20
Hex Number is too big 0x1000000003 in ...../classes/registration/form/UserRegistrationForm.inc.php on line 21
The effect is that even if registration was correctly completed and paid using PayPal , the registration is not correctly recorded and date paid field is not updated in the db.
The three notices refer to three constant values declaration.
The (really simple) workaround is to modify the definition of the constants to
define('REGISTRATION_SUCCESSFUL', 1);
define('REGISTRATION_FAILED', 2);
define('REGISTRATION_NO_PAYMENT', 3);
I think i a bug because in the system requirements of OCS, minimum PHP version required is : 4.2.x
Let me know if you need a bugzilla entry to be submitted and keep on the great work
Kind regards
Ivano Luberti
^^^^^^^^^^^
"If you want total security, go to prison. There you're fed, clothed, given medical care and so on. The only thing lacking is freedom."
Dwight Eisenhower