Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading to 1.5.x / Upgraded to 1.5.1,+ Products w/Attributes Stock and now get blank page at checkout

Upgraded to 1.5.1,+ Products w/Attributes Stock and now get blank page at checkout

26 Apr 2015, 1:02 PM
#1
xfourninetwox avatar

xfourninetwox

New Zenner

Join Date:
Mar 2008
Posts:
57
Plugin Contributions:
0

Post #1 by xfourninetwox

Hey guys,

I was on here recently trying to understand how to get my Products With Attributes Stock to work, and had a nightmare of a time figuring that out. It seemed my best option would be to upgrade to 1.5.1, which worked. SBA is now working correctly (which is incredible and should come stock on all new updates) but since am having a moment where the customer gets a blank page after clicking on paypal express checkout. The last cached error log reads as follows but I can't comprehend what it's telling me is wrong:

[26-Apr-2015 13:00:26 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/justavis/public_html/justaaudial/store/includes/languages/english/modules/shipping/zones.php:59) in /home/justavis/public_html/justaaudial/store/includes/modules/payment/paypalwpp.php on line 1584
[26-Apr-2015 13:00:26 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/justavis/public_html/justaaudial/store/includes/languages/english/modules/shipping/zones.php:59) in /home/justavis/public_html/justaaudial/store/includes/functions/functions_general.php on line 45

Here's the store link: http://justaaudial.net/store/

Any info would be greatly appreciated.

26 Apr 2015, 1:31 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

The language file for zones.php ends with:

define('MODULE_SHIPPING_ZONES_INVALID_ZONE', 'No shipping available to the selected country');
define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');
?>

If you remove the closing php tag:

define('MODULE_SHIPPING_ZONES_INVALID_ZONE', 'No shipping available to the selected country');
define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');

Does it fix the problem?

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!

27 Apr 2015, 5:13 PM
#3
xfourninetwox avatar

xfourninetwox

New Zenner

Join Date:
Mar 2008
Posts:
57
Plugin Contributions:
0

Post #3 by xfourninetwox

Ajeh:

The language file for zones.php ends with:

define('MODULE_SHIPPING_ZONES_INVALID_ZONE', 'No shipping available to the selected country');
define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');
?>

> 
> If you remove the closing php tag:
> ```
define('MODULE_SHIPPING_ZONES_INVALID_ZONE', 'No shipping available to the selected country');
define('MODULE_SHIPPING_ZONES_UNDEFINED_RATE', 'The shipping rate cannot be determined at this time');

Does it fix the problem?

YES! Thanks for the fix!!!!

27 Apr 2015, 5:14 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

Thanks for the update that this was able to correct the problem ... :smile:

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!

29 Apr 2015, 5:35 PM
#5
xfourninetwox avatar

xfourninetwox

New Zenner

Join Date:
Mar 2008
Posts:
57
Plugin Contributions:
0

Post #5 by xfourninetwox

Actually, still have a problem!

If a returning customer tries to login instead of using express checkout the same issue happens with a blank page. Here's what I got about the header_php.php

[29-Apr-2015 17:30:58 UTC] PHP Fatal error: Call to undefined function password_needs_rehash() in /home/justavis/public_html/justaaudial/store/includes/modules/pages/login/header_php.php on line 66

Is it the same fix?

29 Apr 2015, 8:36 PM
#6
ajeh avatar

ajeh

Oba-san

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

Post #6 by ajeh

What version Zen Cart are you actually using? :lookaroun

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!

29 Apr 2015, 9:10 PM
#7
xfourninetwox avatar

xfourninetwox

New Zenner

Join Date:
Mar 2008
Posts:
57
Plugin Contributions:
0

Post #7 by xfourninetwox

Zen Cart 1.5.1

PHP Version: 5.3.28 (Zend: 2.3.0) PHP Memory Limit: 128M

30 Apr 2015, 1:34 PM
#8
ajeh avatar

ajeh

Oba-san

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

Post #8 by ajeh

The reason I ask your version again is that the function password_needs_rehash wasn't added until later versions but your error is referencing the function ...

If you compare the file:
store/includes/modules/pages/login/header_php.php

to a clean Zen Cart v1.5.1 file you should find that it is not there ...

Have you tried to do an upgrade or added add-ons that might have touched that file?

If you look at the file on your server for:
store/includes/version.php

What version does it say that you are using in the defines, for example this is Zen Cart v1.5.4:

define('PROJECT_VERSION_NAME', 'Zen Cart');
define('PROJECT_VERSION_MAJOR', '1');
define('PROJECT_VERSION_MINOR', '5.4');

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 Apr 2015, 2:22 PM
#9
xfourninetwox avatar

xfourninetwox

New Zenner

Join Date:
Mar 2008
Posts:
57
Plugin Contributions:
0

Post #9 by xfourninetwox

Yeah I believe that was the Stock By Attribute that might have updated that file? Either way I just replaced it from a clean 1.5.1 file and it seems like it did the trick.. Thanks again!

30 Apr 2015, 2:37 PM
#10
ajeh avatar

ajeh

Oba-san

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

Post #10 by ajeh

Thanks for the update that this is now working correctly for you ... :smile:

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!