Zen Cart Logo
Forums / General Questions / Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

Views: 5,337

Results 21 to 28 of 28
4 Oct 2012, 10:20 PM
#21
webmistressm avatar

webmistressm

New Zenner

Join Date:
Jan 2010
Location:
SoCal
Posts:
47
Plugin Contributions:
0

Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

So far, I have tested just as a guest... Most off our customers are new customers so, for the idea of them shopping around and adding stuff to cart, only creating a login after the fact is more than likely.

Using one browser to login to the zencart backend, than opening another tab to "shop at the site", gives me the same errors when I try and change qty or initially add something to the cart. So yeah, just like a full on guest (without some sort of customer login) . :/

4 Oct 2012, 10:22 PM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

Does your site have any PHP file caching on it? You probably won't know, so you'll have to ask your hosting company.

Try this:

Put the following code into a new file, and upload it to your store, in the main folder, the place where the main index.php and ipn_main_handler.php files are located:

Call the file phptest.php```

<?php phpinfo();?>
Then point your browser to yoursite.com/phptest.php
Then search for things like "eaccelerator" or "apc" or "xcache". If they're "on", then maybe caching is interrupting things.

Also, what happens if you just plain delete the password_funcs.php file from the server altogether?
4 Oct 2012, 10:30 PM
#23
webmistressm avatar

webmistressm

New Zenner

Join Date:
Jan 2010
Location:
SoCal
Posts:
47
Plugin Contributions:
0

Re: Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

DrByte:

...
Call the file phptest.php```

<?php phpinfo();?>
> Then point your browser to yoursite.com/phptest.php
> Then search for things like "eaccelerator" or "apc" or "xcache". If they're "on", then maybe caching is interrupting things.

Okay...searched for all of these and none showed up on the phptest.php in my browser's readout. Incidentally, Im  on PHP 5.2.17. 

> **DrByte:**
>
> Also, what happens if you just plain delete the password_funcs.php file from the server altogether?

The whole site goes blank if password_funcs.php is removed from /includes/functions/
5 Oct 2012, 7:11 PM
#24
webmistressm avatar

webmistressm

New Zenner

Join Date:
Jan 2010
Location:
SoCal
Posts:
47
Plugin Contributions:
0

Re: Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

Still not sure what is going on:

PHP Version 5.2.17

More phpinfo: http://prettygirlygirl.com/phptest.php

6 Oct 2012, 12:16 PM
#25
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,859
Plugin Contributions:
3

Re: Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

Hi,

Can you take a look in includes/init_includes/init_general_funcs.php

for

/**
 * require the password crypto functions
 */
require(DIR_WS_FUNCTIONS . 'password_funcs.php');
18 Nov 2012, 10:04 PM
#26
kernheimer avatar

kernheimer

Zen Follower

Join Date:
Jul 2009
Posts:
126
Plugin Contributions:
0

Re: Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

having exactly the same problem since i installed the module amidn login as customer with master password. and the webshop updated to 1.5.1.
i have not the skills to find this all, you describe but am a bit scared and think i'm going to downsize my webshop to 1.5.0.

19 Nov 2012, 11:35 PM
#27
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

Better idea would be to put back the files your addon changed, and stick with your current version of Zen Cart, NOT DOWNGRADING.

20 Nov 2012, 3:04 AM
#28
kernheimer avatar

kernheimer

Zen Follower

Join Date:
Jul 2009
Posts:
126
Plugin Contributions:
0

Re: Blank Page on "Add to Cart" - Call to Undefined Function zen_create_random_value

Actualy I did, ( put back the files) even tried checking all the debugs and errors. but even that did not do anything. I still have the shop, but made a paralell one on the same domain, with the same modulles in it and its all ok. nothing wrong, only thing is different that this is a 1.50 version and not the 1.51. everything else is the same. I am a bit in awe :D