Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Changing Best Way Text on Checkout_Shipping Causes White Screen

Changing Best Way Text on Checkout_Shipping Causes White Screen

Views: 641

Results 1 to 6 of 6
17 Aug 2011, 3:05 PM
#1
youngblood avatar

youngblood

New Zenner

Join Date:
Apr 2010
Posts:
59
Plugin Contributions:
0

Changing Best Way Text on Checkout_Shipping Causes White Screen

Good morning Zenners,

I'm trying to change the text on the checkout_shipping page of zen. The shipping choice Best Way, should be something like 'USPS Priority Shipping'.

When I access the corresponding language file found at:
includes/languages/english/modules/shipping/table.php

It will white screen upon the implementation of any character other than the default selection. There have been other topics regarding this issue, but none that addressed this particular issue with Zen 1.3.9h. The site is running a stock version of 1.3.9h with the classic template with some minor customizations.

I'm also running the following mods:

Stock by Product Attribs - V1.4.13
Rewards Points V.1.32 - 1.33
Tidy Zen Cart Backup - v.1.0.7
Zen Master Password - v1.0
Super Orders - V.3.0

All mods were installed successfully with no problems.

So, I've hit a wall with editing this file. I was able to do so successfully with 1.3.9a, but I cannot replicate the success with 1.3.9h.

Anyone have suggestions on why this particular language file won't update without breaking the page?

Here's my debugger log:

[16-Aug-2011 16:02:36] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/primevap/public_html/store/includes/languages/english/modules/shipping/table.php:57) in /home/primevap/public_html/store/includes/functions/functions_general.php on line 45

17 Aug 2011, 3:37 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing Best Way Text on Checkout_Shipping Causes White Screen

/includes/languages/english/modules/shipping/table.php:57)

There are only 27 lines in that file, so it's likely you've added a line or character to the bottom of the file, possibly by using something other than a text editor to edit it.

17 Aug 2011, 3:40 PM
#3
youngblood avatar

youngblood

New Zenner

Join Date:
Apr 2010
Posts:
59
Plugin Contributions:
0

Re: Changing Best Way Text on Checkout_Shipping Causes White Screen

After checking this....they don't match up.

The table.php file has the stock settings. There is no line 57, yet the debugger says there is one. Here's the contents:

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | <http://www.zen-cart.com/index.php> | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | <http://www.zen-cart.com/license/2_0.txt>. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: table.php 1969 2005-09-13 06:57:21Z drbyte $ // define('MODULE_SHIPPING_TABLE_TEXT_TITLE', 'Table Rate'); define('MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION', 'Table Rate'); define('MODULE_SHIPPING_TABLE_TEXT_WAY', 'Best Way'); define('MODULE_SHIPPING_TABLE_TEXT_WEIGHT', 'Weight'); define('MODULE_SHIPPING_TABLE_TEXT_AMOUNT', 'Amount'); ?>

----Dreamweaver shows this as line 29---

If we look at the other file mentioned in the debugger, it will eventually direct us to this grouping of code in the functions_general.php file in your main functions folder.

if ($httpResponseCode == '') {
header('Location: ' . $url); <-----------Debugger states this to be the line with the error
session_write_close();
} else {
header('Location: ' . $url, TRUE, (int)$httpResponseCode);
session_write_close();
}

17 Aug 2011, 3:53 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Changing Best Way Text on Checkout_Shipping Causes White Screen

What happens is the lines will sometimes double on the server so look at the closing php ?> at the bottom of the file and make sure there are no space(s) or blank line(s) after it ...

17 Aug 2011, 4:01 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Changing Best Way Text on Checkout_Shipping Causes White Screen

Youngblood:

----Dreamweaver shows this as line 29---

WYSIWYG editors like Dreamweaver will often add spaces to PHP files when they're used for editing. Best to use a text editor.

17 Aug 2011, 4:13 PM
#6
youngblood avatar

youngblood

New Zenner

Join Date:
Apr 2010
Posts:
59
Plugin Contributions:
0

Re: Changing Best Way Text on Checkout_Shipping Causes White Screen

There was an extra space at the end of the language file - table.php

Removing the line bumped it back to 28 and has allowed me to change the Best Way name successfully.

Thank you both for your quick and timely responses. Your support still rivals that of any paid eCommerce system out there. Rock on!