Forums / Templates, Stylesheets, Page Layout / Strange issue when trying to use images for sidebox headers

Strange issue when trying to use images for sidebox headers

Views: 659

Results 1 to 7 of 7
3 May 2011, 8:10 AM
#1
gabenn2 avatar

gabenn2

Zen Follower

Join Date:
Feb 2007
Posts:
109
Plugin Contributions:
0

Strange issue when trying to use images for sidebox headers

I am using zen cart 1.3.9 and when I change the code in languages/CUSTOM/english.php it makes my entire cart page go blank. I have done this code edit on many different carts and I have never had this problem.

This
is the block of code I am changing (second Method). I have never had this issue, but I haven't tried it yet where the sideboxes templates themselves aren't modified. There are no add-ons installed. The site can be viewed here.

Thanks in advance

3 May 2011, 9:00 AM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Strange issue when trying to use images for sidebox headers

Check the error logs in your /cache folder and post them/it here if it doesn't make sense.

The most common cause of blank pages is an extra line or character added to the bottom of a PHP file, usually by an WYSIWYG editor. Best to only use a text editor to work with PHP files.

5 May 2011, 7:04 PM
#3
gabenn2 avatar

gabenn2

Zen Follower

Join Date:
Feb 2007
Posts:
109
Plugin Contributions:
0

Re: Strange issue when trying to use images for sidebox headers

Thank you for your answer. There isn't an extra line in the file, I usually use dreamweaver to edit files and always check PHP files for that. I have had it frustrate me too many time to overlook, LOL. I checked the error logs and this is what I have:

[03-May-2011 02:59:21] PHP Parse error: syntax error, unexpected ';' in /home/digital2/public_html/foxydesigns.biz/shop/includes/languages/FD/english.php on line 78

LINE 78

define('BOX_HEADING_CATEGORIES', zen_image(DIR_WS_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/' . 'fd_sb_08.jpg', 'Your alt & title text for heading');

[05-May-2011 13:53:56] PHP Parse error: syntax error, unexpected T_STRING in /home/digital2/public_html/foxydesigns.biz/shop/includes/languages/FD/english.php on line 81

LINE 81

define('BOX_HEADING_MANUFACTURERS', 'Manufacturers');

According to these errors I'm not sure what the problem is. Any help is greatly appreciated. Thanks

5 May 2011, 7:21 PM
#4
stevesh avatar

stevesh

Black Belt

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

Re: Strange issue when trying to use images for sidebox headers

Did you install the 'Images For Titles' mod ?

5 May 2011, 7:27 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Strange issue when trying to use images for sidebox headers

You're missing the second ) in this statement:```php
define('BOX_HEADING_CATEGORIES', zen_image(DIR_WS_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/' . 'fd_sb_08.jpg', 'Your alt & title text for heading');

```php
define('BOX_HEADING_CATEGORIES', zen_image(DIR_WS_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/' . 'fd_sb_08.jpg', 'Your alt & title text for heading')); 
6 May 2011, 4:09 AM
#6
gabenn2 avatar

gabenn2

Zen Follower

Join Date:
Feb 2007
Posts:
109
Plugin Contributions:
0

Re: Strange issue when trying to use images for sidebox headers

No I didn't install any mods. :)

Glenn that was it, the second ) was missing. It is cut off in the tutorial, maybe I am the only dummy that didn't know to add it LOL! Thank you! :)

6 May 2011, 7:10 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Strange issue when trying to use images for sidebox headers

I don't know if I left the last ); off of that line originally, or it got cut in the process of posting it in the tutorials, but I will get it fixed. Thanks for bringing it to my attention.