Post by japan » Wed Apr 15, 2009 2:42 pm

Hi, I have installed opencart1.26 successfully.
But when switching another language, the error message is appeared on the page.
the error message is as below.

1.when swiching another lang on the category

Notice: Undefined index: path in xxx\catalog\controller\product\category.php on line 18

Notice: Undefined index: name in xxx\catalog\controller\product\category.php on line 31

Notice: Undefined index: path in xxx\catalog\controller\product\category.php on line 244

Warning: Cannot modify header information - headers already sent by (output started at xxx\catalog\controller\product\category.php:18) in xxx\system\library\response.php on line 65

2.when swiching another lang on the product detail page

Notice: Undefined index: product_id in xxx\catalog\controller\product\product.php on line 69

Notice: Undefined index: product_id in xxx\catalog\controller\product\product.php on line 264
Warning: Cannot modify header information - headers already sent by (output started at xxx\catalog\controller\product\product.php:69) in xxx\system\library\response.php on line 65

3.when swiching another lang on the manufaturer page
Notice: Undefined index: manufacturer_id in xxx\catalog\controller\product\manufacturer.php on line 193

Warning: Cannot modify header information - headers already sent by (output started at xxx\catalog\controller\product\manufacturer.php:193) in xxx\system\library\response.php on line 65

4.when swiching another lang on the infomation page
Notice: Undefined index: information_id in xxx\catalog\controller\information\information.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at xxx\catalog\controller\information\information.php:42) in xxx\system\library\response.php on line 65


This error seem to appeared when it is swiched another language.
and more, if it is moved to top page(click on the logo image), the message is dissapeared and swiched another language successfully.

Would you check the code and advice me if you have a time to do.

Best regards

Newbie

Posts

Joined
Mon Apr 13, 2009 6:17 pm

Post by Daniel » Wed Apr 15, 2009 6:10 pm

when you setup a new language you need to go over each product, category and all the other multi language pages and add both languages.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by japan » Wed Apr 15, 2009 6:57 pm

Hi,Daniel Thank you for your advice.
I have resolved this problem. it seem to be server setting.
Our test server(japanese and english) is running correctly.

when I set up download product, i find the bug code.

xxx\catalog\model\account\download.php
wrong code:
AND o.order_status > '0'

modified code:
AND o.order_status_id > '0'

download function is worked correctly when i modified the code.

I have a few question( my request)

1. Why is brand name is not multi language? I think that brand name is changed by country.

Newbie

Posts

Joined
Mon Apr 13, 2009 6:17 pm

Post by Daniel » Wed Apr 15, 2009 7:53 pm

your right it is a bug.

I have fixed it for the next release.

there should be no need for multi language brand names.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 13 guests