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

Started by jeffmic on 31 Oct 2006, 8:40 PM · Views: 3,964

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

Jeff Michaels,
pres of Musical Creations Ltd.

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

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,718
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?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

Jeff Michaels,
pres of Musical Creations Ltd.

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.

Jeff Michaels,
pres of Musical Creations Ltd.

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

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,718
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?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

Jeff Michaels,
pres of Musical Creations Ltd.

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

Jeff Michaels,
pres of Musical Creations Ltd.

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

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
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.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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,

Jeff Michaels,
pres of Musical Creations Ltd.

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

drbyte

Sensei

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

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

Glad you got it sorted out !

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

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

Jeff Michaels,
pres of Musical Creations Ltd.

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:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

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

Spanish help and Support
Intentaré responder a tus preguntas acerca del ZENCART