Post by hayridumanli » Fri Jul 22, 2016 9:17 pm

Hi,
I make an OpenCart 2.0.3.1 website in http://www.lokmanhekimkibris.com, and it has Pav Styleshop theme on it. The site is in English and Turkish languages, default language is Turkish. When browsing the site and if you change the language in homepage, it gives that error;

Notice: Undefined offset: 1 in /home/lkmncom/public_html/system/modification/catalog/controller/common/language.php on line 75
Warning: Cannot modify header information - headers already sent by (output started at /home/lkmncom/public_html/index.php:102) in /home/lkmncom/public_html/system/library/response.php on line 12

And you cannot escape from this error, refreshing doesn't make any sense. If you return the previous page (home page), click on a category, product, etc. and change the language again in that page, it changes the language, no error is coming. That error only occurs in homepage. How can I solve it?

Thanks in advance.

Newbie

Posts

Joined
Fri Jul 22, 2016 9:12 pm

Post by straightlight » Fri Jul 22, 2016 10:37 pm

hayridumanli wrote:Hi,
I make an OpenCart 2.0.3.1 website in http://www.lokmanhekimkibris.com, and it has Pav Styleshop theme on it. The site is in English and Turkish languages, default language is Turkish. When browsing the site and if you change the language in homepage, it gives that error;

Notice: Undefined offset: 1 in /home/lkmncom/public_html/system/modification/catalog/controller/common/language.php on line 75
Warning: Cannot modify header information - headers already sent by (output started at /home/lkmncom/public_html/index.php:102) in /home/lkmncom/public_html/system/library/response.php on line 12

And you cannot escape from this error, refreshing doesn't make any sense. If you return the previous page (home page), click on a category, product, etc. and change the language again in that page, it changes the language, no error is coming. That error only occurs in homepage. How can I solve it?

Thanks in advance.
Welcome to the Opencart forum.

Set your site under temporary maintenance from your admin - > systems - > settings - > edit store - > server tab - > Maintenance Mode. Then, switch back to the default template from the admin - > extensions - > themes page and see if this error message can be reproduced.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by hayridumanli » Sat Jul 23, 2016 5:24 pm

straightlight wrote:
hayridumanli wrote: Set your site under temporary maintenance from your admin - > systems - > settings - > edit store - > server tab - > Maintenance Mode. Then, switch back to the default template from the admin - > extensions - > themes page and see if this error message can be reproduced.
OK, I made it like this. Now, language doesn't change in Home Page, It shows the down arrow, but you cannot change it. You also cannot change the language in other pages, too.

Newbie

Posts

Joined
Fri Jul 22, 2016 9:12 pm

Post by straightlight » Sat Jul 23, 2016 6:33 pm

hayridumanli wrote:
straightlight wrote:
hayridumanli wrote: Set your site under temporary maintenance from your admin - > systems - > settings - > edit store - > server tab - > Maintenance Mode. Then, switch back to the default template from the admin - > extensions - > themes page and see if this error message can be reproduced.
OK, I made it like this. Now, language doesn't change in Home Page, It shows the down arrow, but you cannot change it. You also cannot change the language in other pages, too.
If you're referring the language event from the default template and not from the custom theme, ensure to login from the admin and select your store beside the log out link on the top right-pane of the site especially if your store is set under maintenance mode. Do not log out from your admin-end and then go to your store. Some header functions might be disabled on that end while the admin session can still use them.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by hayridumanli » Sat Jul 23, 2016 7:29 pm

straightlight wrote:
hayridumanli wrote: If you're referring the language event from the default template and not from the custom theme, ensure to login from the admin and select your store beside the log out link on the top right-pane of the site especially if your store is set under maintenance mode. Do not log out from your admin-end and then go to your store. Some header functions might be disabled on that end while the admin session can still use them.
Yes, I exactly did as you said. Besides, I checked the matter in different browser, too. Whether I logged in as admin or not, it always give that error. And in default theme, language cannot be changed, too. All the errors are still valid.

Newbie

Posts

Joined
Fri Jul 22, 2016 9:12 pm

Post by straightlight » Sat Jul 23, 2016 7:36 pm

This error message originates from an installed extension since the system/modification folder is involved in the captured path. I would suggest to disable your extension from your admin - > extensions - > extensions page and see if the issue still persists afterwards on the default theme when selecting your language.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by hayridumanli » Sat Jul 23, 2016 8:16 pm

straightlight wrote:This error message originates from an installed extension since the system/modification folder is involved in the captured path. I would suggest to disable your extension from your admin - > extensions - > extensions page and see if the issue still persists afterwards on the default theme when selecting your language.
There is "Pavo Framework 3.0" in Extensions / Modifications, I disabled it. Then there is "TMD Multilanguage Seo Keyword Module", I also disabled it. Then I selected default theme. No change, language cannot be changed again, I checked in 3 different browsers.

Newbie

Posts

Joined
Fri Jul 22, 2016 9:12 pm

Post by straightlight » Sat Jul 23, 2016 8:40 pm

hayridumanli wrote:
straightlight wrote:This error message originates from an installed extension since the system/modification folder is involved in the captured path. I would suggest to disable your extension from your admin - > extensions - > extensions page and see if the issue still persists afterwards on the default theme when selecting your language.
There is "Pavo Framework 3.0" in Extensions / Modifications, I disabled it. Then there is "TMD Multilanguage Seo Keyword Module", I also disabled it. Then I selected default theme. No change, language cannot be changed again, I checked in 3 different browsers.
Does the error message posted on your first post still persists, as well after disabling the extensions and switched to the default template?

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by hayridumanli » Sat Jul 23, 2016 8:59 pm

straightlight wrote:
hayridumanli wrote: Does the error message posted on your first post still persists, as well after disabling the extensions and switched to the default template?
I don't know, because I disabled the extensions and switched to default template, then Language cannot be changed, there is an arrow, but clicking on arrow or language text doesn't work, no action is happening.

Newbie

Posts

Joined
Fri Jul 22, 2016 9:12 pm

Post by straightlight » Sat Jul 23, 2016 9:35 pm

After making these changes, go to your admin - > systems - > settings - > tools - > error logs page. Do you notice any recent error messages, based on datetime, related with language.php file?

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by hayridumanli » Mon Jul 25, 2016 8:05 pm

straightlight wrote:After making these changes, go to your admin - > systems - > settings - > tools - > error logs page. Do you notice any recent error messages, based on datetime, related with language.php file?
error.log says the same thing:
2016-07-25 7:04:14 - PHP Notice: Undefined offset: 1 in /home/lkmncom/public_html/system/modification/catalog/controller/common/language.php on line 75
2016-07-25 7:04:14 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lkmncom/public_html/index.php:102) in /home/lkmncom/public_html/system/library/response.php on line 12

Newbie

Posts

Joined
Fri Jul 22, 2016 9:12 pm

Post by straightlight » Mon Jul 25, 2016 8:42 pm

hayridumanli wrote:
straightlight wrote:After making these changes, go to your admin - > systems - > settings - > tools - > error logs page. Do you notice any recent error messages, based on datetime, related with language.php file?
error.log says the same thing:
2016-07-25 7:04:14 - PHP Notice: Undefined offset: 1 in /home/lkmncom/public_html/system/modification/catalog/controller/common/language.php on line 75
2016-07-25 7:04:14 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lkmncom/public_html/index.php:102) in /home/lkmncom/public_html/system/library/response.php on line 12
Follow the /system/modification step from this topic: http://forum.opencart.com/viewtopic.php?f=170&t=165657

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by hayridumanli » Tue Jul 26, 2016 10:10 pm

straightlight wrote:
hayridumanli wrote:Follow the /system/modification step from this topic: http://forum.opencart.com/viewtopic.php?f=170&t=165657
Issue is solved. I understood that it would not be solved with your help, I also asked the guy who wrote the language extension. He said that he knew this situation and saw it before, I gave him ftp access and he solved it in a minute. Anyway, thank you for your good intention and a huge thanks to that guy.

Newbie

Posts

Joined
Fri Jul 22, 2016 9:12 pm

Post by straightlight » Tue Jul 26, 2016 10:25 pm

hayridumanli wrote:
straightlight wrote:
hayridumanli wrote:Follow the /system/modification step from this topic: http://forum.opencart.com/viewtopic.php?f=170&t=165657
Issue is solved. I understood that it would not be solved with your help, I also asked the guy who wrote the language extension. He said that he knew this situation and saw it before, I gave him ftp access and he solved it in a minute. Anyway, thank you for your good intention and a huge thanks to that guy.
To address the above statement, this issue was caused by an installed extension which was done as a custom job as no definite solution can be provided unless detailed information are being provided about it by the poster which would help other forum users in the future to benefit on that solution to resolved similar posts.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 32 guests