Undefined function wp_rand

edited February 2015 in Magento
Fatal error: Call to undefined function wp_rand() in /home/aldoconti/public_html/includes/src/OneAll_SocialLogin_Helper_Data.php on line 47

This is the line 47 of the plain, unformatted OneAll_SocialLogin_Helper_Data.php

45 {
46 // Create a random email.
47 $email = md5 (uniqid (wp_rand(10000,99999))) . "@acshoponline.com";
48
49 // Try to load a customer for it
51 $customer->loadByEmail ($email);
52 }

Best Answer

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited February 2015 Answer ✓
    You can simply replace wp_rand by rand.

    This error should however have been fixed.
    Where exactly have you downloaded the Magento extension?

Answers

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.