Zen Cart Logo
Forums / All Other Contributions/Addons / Add Customer - Call to undefined function w/ blank page

Add Customer - Call to undefined function w/ blank page

Views: 822

Results 1 to 3 of 3
23 Jul 2011, 4:10 AM
#1
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Add Customer - Call to undefined function w/ blank page

Add Customer in Admin module is installed on a 139h cart

When trying to add a customer a blank page comes up. In the cache folder the debug file says this.

PHP Fatal error:  Call to undefined function  zen_create_random_value() in /home/username/public_html/admin/add_customers_backend.php on line 547

I've looked through language files for blank lines at the bottom of the file and closed any blank lines that I found. This didn't help.
This is what is on line 547

$customers_password = zen_create_random_value(ENTRY_PASSWORD_MIN_LENGTH);

Any ideas on what to do with this?

thanks

23 Jul 2011, 12:08 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,690
Plugin Contributions:
56

Re: Add Customer - Call to undefined function w/ blank page

The file admin/includes/functions/password_funcs.php should have a "zen_create_random_value" function. You should check your copy of this file and restore/merge from a known good copy of your version of Zen Cart.

23 Jul 2011, 1:45 PM
#3
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: Add Customer - Call to undefined function w/ blank page

Thank you very much swguy. That's exactly what it was. I have no clue how that file got changed.