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
    8
    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
    2
    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. Category "All Product Listing" on main index page
    By LloydDobbler in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Jul 2006, 05:36 AM
  2. Product Page Layout
    By zlagdash in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jun 2006, 05:02 AM
  3. WHat is Product linked mean
    By Timeout in forum Setting Up Categories, Products, Attributes
    Replies: 10
    Last Post: 19 Jun 2006, 02:17 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
  •