Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2006
    Posts
    2
    Plugin Contributions
    0

    Default spanish -blank page in category when only one product

    Hi, all! I have a problem with the spanish language (english works fine). If I click a category, and there are more than one prouct, everything works fine, but not if there´s only one!! It gets a blank page. I´ve chequed all the spanish files and they are OK. The same thing happens when I want to see the authors (with only one book) of the Product Type Book.
    Any ideas, please? Perhaps I can modify some page to ALWAYS load the index page (not redirect to the book info if there is only one) but I don´t know where to do this... :)
    I´ve updated the files of the new version of Zen Cart 1.3.0.2 .
    Any ideas, pleeaseeeee!
    Thanks a lot!!!

  2. #2
    Join Date
    Oct 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: spanish -blank page in category when only one product

    I am having exactly the same problem with French. The page is absolutely blank for the category (View: source is empty!)

    When the category is empty, no problem, but when there is only 1 item it seems to do it for multiple categories...

    I can view the item inside the category, too..

    Any ideas?

  3. #3
    Join Date
    Oct 2006
    Posts
    1
    Plugin Contributions
    0

    Default Re: spanish -blank page in category when only one product

    Hi im spanish (sorry my english its very bad) and i have some problems whith the language pack the blank page and some items dont translated.
    Now i have a custom spanish language and the same icons in english translated to spanish if you want i can send the files and you can try, i dont have translated the section of GVcupons.

    The problem of blanck page: i have this wen use the zencart 1.3.5 and the language pack of www.zencartes.com, but with the languagle pack of www.zen-cart.com i only have the problem of some itemns dont translated and use this to custom miy language.

    Is posibol that you have a corrupt PHP code in the language pack.

  4. #4
    Join Date
    Apr 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: spanish -blank page in category when only one product

    Hi

    I have the same problem with my Estonian language pack. When in category is more tahn 1 product - then everything is fine. But with only one product - then I see only blank page.

    Where can be the problem? What is wrong with my language pack? This is custom made and I haven't uploaded this not yet to ZenCart website. I want to remove problems before.

  5. #5
    Join Date
    Oct 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: spanish -blank page in category when only one product

    I was asked to fix this problem quickly. I suspected from the beginning it was a faulty set $_SESSION variable. In almost all the product queries this variable exists

    $_SESSION['languages_id']

    Now I could go back through all the files and find where this "should" be set appropriately but I needed to fix this quickly. Here is my fix, tested in the latest zen version 1.3.8

    open file includes/functions/sessions.php

    and around line 109 after this line
    $temp = session_start();

    add the following

    $_SESSION['languages_id'] = 1;


    Where 1 is the ID of whatever your default language should be. This fixed my problem and allowed us to still change languages.

  6. #6
    Join Date
    Oct 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: spanish -blank page in category when only one product

    I must apologize, my previous post appeared to fix the problem but apparently this problem is two-pronged. I found that on my language file there was additional spaces (non printable) at the end of file.

    any of the files in this location can have this problem

    includes/languages/english.php // or whatever filename for the language


    A quick way to find a solution to the "blank page" problem. Is to set this in application_top.php or anywhere before it in execution.

    define('STRICT_ERROR_REPORTING',true);

    This will give you php errors that you can hunt down.

  7. #7
    Join Date
    Aug 2009
    Location
    London
    Posts
    1
    Plugin Contributions
    0

    Default Re: spanish -blank page in category when only one product

    Hey,

    Has anyone idea where I could find Estonian language pack for Zen cart?

    Thank you,

    Kaspar

 

 

Similar Threads

  1. blank page when there is only one product in a category
    By rajoo.sharma in forum General Questions
    Replies: 2
    Last Post: 27 May 2010, 05:34 PM
  2. When only one product in a category, it goes right to product -
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Feb 2010, 03:21 PM
  3. Error when category has only one product
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Feb 2009, 12:25 AM
  4. Blank page when category has only one product.
    By arrow in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 23 Nov 2007, 08:19 PM
  5. No category image when only one product
    By budfox in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 21 Feb 2007, 10:19 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR