ce7 Posted June 2, 2012 Share Posted June 2, 2012 Hi I am using osC2.3.1 and install this add on, the SQL file 3.1 doesn't work, got error message, import 3.0 but still need to mannually modify that file I finally make it works but I just wonder, when client forgot password, and the validation code show up, there is a button there, said "Re-arrange Code", it doesn't seems renew, when you click on it, it just re-arrange the character position, so is this button fuction necessary? Can I have "renew" button instead but how can I modify code? I am newbie so have no idea about coding at all. (something like hotmail got refresh | renew the image) Can someone please help? Quote Link to comment Share on other sites More sharing options...
arasouli91 Posted July 21, 2012 Share Posted July 21, 2012 Can anyone confirm with me that this contribution works with OSC 2.3? Quote Link to comment Share on other sites More sharing options...
♥14steve14 Posted July 21, 2012 Share Posted July 21, 2012 Can anyone confirm with me that this contribution works with OSC 2.3? Have a look here for an alternative method http://www.oscommerce.com/forums/topic/318221-osc-recaptcha/page__view__findpost__p__1643730 Quote REMEMBER BACKUP, BACKUP AND BACKUP Link to comment Share on other sites More sharing options...
kgtu5 Posted August 21, 2012 Share Posted August 21, 2012 (edited) Hi all. Could anyone help with fix error in account_validation.php (many errors in log) PHP Notice: Undefined variable: rangeList in /***/includes/functions/account_validation.php on line 47, referer: http://***/contact_us.php PHP Notice: Undefined offset: 36 in /***/includes/functions/account_validation.php on line 49, referer: http://***/contact_us.php PHP Notice: Undefined variable: rangeList in /***/includes/functions/account_validation.php on line 47, referer: http://***/contact_us.php PHP Notice: Undefined offset: 57 in /***/includes/functions/account_validation.php on line 49, referer: http://***/contact_us.php ??? Edited August 21, 2012 by kgtu5 Quote Link to comment Share on other sites More sharing options...
dr_lucas Posted December 3, 2012 Share Posted December 3, 2012 Hi all. Could anyone help with fix error in account_validation.php (many errors in log) ??? Yes, you will need to replace the urand function in /includes/functions/account_validation.php (the entire function) with the following code: function urand($min = NULL, $max = NULL){ static $alreadyGenerated = array(); $rangeList = array(); $full = $max + abs($min); $range = ($min || $max) ? ($max - $min) + 1 : NULL; do{ $randValue = ($range) ? rand($min, $max) : rand(); $key = $randValue + $full; if(count($rangeList) == $range) unset($alreadyGenerated); if($range) $rangeList[$key] = $randValue; }while(isset($alreadyGenerated[$key]) && $alreadyGenerated[$key] == $randValue + $full); unset($rangeList); $alreadyGenerated[$key] = $randValue + $full; return $randValue; } Quote Did I help you? Click "Like" or "Thanks"! It's free of charge. :)My contributions:Total Configuration (newly updated 07/2018, for both osC 2.2 and 2.3.4.1 BS Frozen CE)User Tracking with Admin 1.0 (newly updated 07/2018)FedEx - Web Services v9, FAQ System , Who's Online Enhancement, Order Editor, MoneyBookers IPN, Ship in Cart (MS2), Admin Products Paging, Margin Report v1.00, 2Checkout INS / IPN (Instant Notification System) for MS2.2, Visitor Web Stats, Time Zone Offset - Adjust to match your location, Category Meta Tags Link to comment Share on other sites More sharing options...
revamp Posted April 28, 2015 Share Posted April 28, 2015 Hello, I'm using 2.2 MS2 and I get this error: PHP Notice: Constant already defined in /var/www.mysite/validation_png.php on line 28, referer: mysite/contact_us.php validation_png.php line 28: define($configuration['cfgKey'], $configuration['cfgValue']); Can anybody help? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.