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.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.
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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.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.
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.hayridumanli wrote: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.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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.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.
Does the error message posted on your first post still persists, as well after disabling the extensions and switched to the default template?hayridumanli wrote: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.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.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.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?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
error.log says the same thing: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?
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=165657hayridumanli wrote:error.log says the same thing: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?
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
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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.straightlight wrote:hayridumanli wrote:Follow the /system/modification step from this topic: http://forum.opencart.com/viewtopic.php?f=170&t=165657
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.hayridumanli wrote: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.straightlight wrote:hayridumanli wrote:Follow the /system/modification step from this topic: http://forum.opencart.com/viewtopic.php?f=170&t=165657
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 54 guests