Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    109
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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.

  3. #3
    Join Date
    Feb 2007
    Posts
    109
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

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

    Did you install the 'Images For Titles' mod ?

  5. #5
    Join Date
    Feb 2007
    Posts
    109
    Plugin Contributions
    0

    Default 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. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

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

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

 

 

Similar Threads

  1. strange error when trying to login to admin
    By _rgk in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 26 Oct 2011, 08:23 PM
  2. Adding images to sidebox headers
    By koenvandamme in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Mar 2009, 06:55 PM
  3. Background Images for Sidebox Headers Not displaying In IE.
    By SurrealDesign in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Jan 2009, 05:18 PM
  4. Images in sidebox headers
    By heidilw70 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 29 Oct 2008, 07:25 AM
  5. Do I need to use headers when exporting/importing via phpMyAdmin?
    By Shooters in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 26 Feb 2008, 05:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg