Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / 1.3.6 Fatal Error at checkout after upgrade - help please

1.3.6 Fatal Error at checkout after upgrade - help please

Locked

Views: 3,949

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
31 Oct 2006, 8:40 PM
#1
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

1.3.6 Fatal Error at checkout after upgrade - help please

After logging in and going to checkout or just going to check while being logged in, I'm getting this fatal error

Fatal error: Call to undefined function: zen_get_customer_validate_session() in /Volumes/Files/MCzenstore/includes/modules/pages/checkout_shipping/header_php.php on line 27

I've search and replaced to try to fix this and continue, but I can't find the error.

Any help would be appreciated

31 Oct 2006, 9:09 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

Have you replaced the offending file completely from a clean download?

31 Oct 2006, 9:29 PM
#3
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

yes I have replaced that one and replaced all the other checkout folders around it too

31 Oct 2006, 9:38 PM
#4
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

Kim,

I've also un-installed and re-installed all the shipping, payment and order total modules.

31 Oct 2006, 9:42 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

Is this a different server than you have used before? What is the OS? php version? MYSQL version?

31 Oct 2006, 9:46 PM
#6
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

This new folder was a carbon copy of the 1.3.5 (that was working) that was updated then renamed to take the place of the original.
The database was also upgraded successfully.

I'm at a loss to locate what's gone wrong.

thanks,
Jeff

31 Oct 2006, 11:00 PM
#7
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

For a test,
I took my entire 1.3.5 pages folder from my older folder and placed it into the new 1.3.6. folder and everything continued into checkout.

They I went back and tried to insert a stock 1.3.6 pages folder into the new site and it DIDN'T work. Same problem.
Any ideas on this?

thanks.
Jeff

1 Nov 2006, 2:43 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

the /modules/pages/checkout_*/header_php.php files had the new function-call added to them
the /includes/functions/functions_customers.php file had the new function defined in it.

If you failed to upgrade these files properly and in sync with each other, you will get errors.

1 Nov 2006, 3:12 AM
#9
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

Why is it always the little things that I seem to miss..?
I didn't replace the one file 'functions_customers.php' :(
(and I was so careful too!)

I'm so sorry to have bothered you on the petty things, but as usual, someone from you team came through to help those in need.

thanks for you help once again,

1 Nov 2006, 4:19 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

Glad you got it sorted out !

1 Nov 2006, 4:44 AM
#11
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

Without you and Ajeh this week, I'd be up the creek without a paddle.

This is only the first website in Zen-Cart. I have 2 more to create in the coming months. But now, I actually have to catch up on projects to bring 'in' the money. LOL

thanks again,
Jeff

19 Dec 2006, 3:36 AM
#12
brotherhud avatar

brotherhud

New Zenner

Join Date:
Sep 2006
Location:
Chicago
Posts:
51
Plugin Contributions:
0

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

I had the same problem, I did a forum search, found this thread, did what the zen-master said and my problem is fixed. You guys are truely great people, the fact that you make it free and offer this kind of help...amazing! When my store opens the first sale goes to buying you guys a cup of joe! Thanks zen

19 Dec 2006, 7:10 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

Thanks for the update that this was able to help you ... :smile:

We look forward to sharing a cuppa with you ... :cool:

30 Jan 2007, 11:25 AM
#14
maybrick avatar

maybrick

New Zenner

Join Date:
Jul 2006
Posts:
15
Plugin Contributions:
1

Re: 1.3.6 Fatal Error at checkout after upgrade - help please

I have fixed the problem adding to /includes/functions/functions_customers.php the next code:

-------------- cut ------------
// validate customer matches session
function zen_get_customer_validate_session($customer_id) {
global $db, $messageStack;
$zc_check_customer = $db->Execute("SELECT customers_id from " . TABLE_CUSTOMERS . " WHERE customers_id=" . (int)$customer_id);
if ($zc_check_customer->RecordCount() <= 0) {
$db->Execute("DELETE from " . TABLE_CUSTOMERS_BASKET . " WHERE customers_id= " . $customer_id);
$db->Execute("DELETE from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " WHERE customers_id= " . $customer_id);
unset($_SESSION['customer_id']);
$messageStack->add_session('header', ERROR_CUSTOMERS_ID_INVALID, 'error');
return false;
}
return true;
}
----------- cut -------------

The code is from the same file under 1.3.6 version. I think I have a good 1.3.2 mixed versions with newest 1.3.6 and 1.3.7 hehehehehe