Forums / Addon Language Packs / spanish -blank page in category when only one product

spanish -blank page in category when only one product

Locked

Views: 5,375

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
25 Aug 2006, 6:11 PM
#1
susaw avatar

susaw

New Zenner

Join Date:
Aug 2006
Posts:
2
Plugin Contributions:
0

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

26 Oct 2006, 5:58 PM
#2
jackal avatar

jackal

New Zenner

Join Date:
Oct 2006
Posts:
7
Plugin Contributions:
0

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?

28 Oct 2006, 8:18 AM
#3
huevin avatar

huevin

New Zenner

Join Date:
Oct 2006
Posts:
1
Plugin Contributions:
0

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 https://www.zencartes.com, but with the languagle pack of https://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.

11 Apr 2008, 6:08 AM
#4
spottraining avatar

spottraining

New Zenner

Join Date:
Apr 2007
Posts:
5
Plugin Contributions:
0

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.

7 Jan 2009, 5:21 AM
#5
infinitylimit avatar

infinitylimit

New Zenner

Join Date:
Oct 2007
Posts:
2
Plugin Contributions:
0

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.

8 Jan 2009, 1:59 AM
#6
infinitylimit avatar

infinitylimit

New Zenner

Join Date:
Oct 2007
Posts:
2
Plugin Contributions:
0

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.

12 Aug 2009, 3:25 PM
#7
e_stonia avatar

e_stonia

New Zenner

Join Date:
Aug 2009
Location:
London
Posts:
1
Plugin Contributions:
0

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

e-Stonia.co.uk - we design beautiful websites, install flexible and easy to use CMS on MODx framework (low cost), professional video production