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!!!
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?
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.
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.
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.
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.
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