Jump to content

Very strange language selection problem


Kuroudu

Recommended Posts

Hello all,

 

Hope you all are having great time developing with Prestashop. 

 

I have a strange Language problem and I am really lost how to fix it.

 

See the screenshot provided in this post.

 

My first webshop language is English and has language id = 1

Second language is Azerbaijani and has language_id = 2

 

Whenever I select language Azerbaijani the DOCTYPE is omitted and the code that should be between the <head> tags are gone and moved down between the <body> tag. (see the screenshots).

 

Anyone have any ideas where I should look at this problem? Is it the database, the theme I use or something else? Is there a proper way to debug this?

 

Kuroudu

post-775654-0-90572000-1396294335_thumb.jpg

post-775654-0-70235800-1396294344_thumb.jpg

Link to comment
Share on other sites

Hi kuroudu,

Did you already change anything to the PS source code before or is it plain, original  PrestaShop code without modifications?

Does it happen with the default theme selected (as well), or can it be theme dependent?

What version of PrestaShop do you use?

Is there any (test) site where we can see the problem happen ourselves?

 

pascal.

Link to comment
Share on other sites

Hi kuroudu,

Did you already change anything to the PS source code before or is it plain, original  PrestaShop code without modifications?

Does it happen with the default theme selected (as well), or can it be theme dependent?

What version of PrestaShop do you use?

Is there any (test) site where we can see the problem happen ourselves?

 

pascal.

 

Hi Pascal,

 

Thanks for the reply.

I am running PrestaShop™ 1.5.6.2. There are some changes made in the PS source code. Not sure exactly what, I am helping fixing this problem actually. It is strange that the problem only occurs when Azerbaijani is selected, other languages are okay. It definitely has to do with the language, cause the theme is actually working good when I select English for example. I am testing it on my own server right now, and the changes are not online yet. I am sorry for that.

 

You happen to have any idea which files I should look at? I looked at header.tpl but don't see any strange code there.

 

Kuroudu

Link to comment
Share on other sites

Just to make sure, can you still try one time to change the theme to default and see if it occurs there as well?

 

Thanks for your reply! I just updated the language in the back office and the problem is solved. Really strange, but at least it is solved now. Thanks!

Edited by Kuroudu (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...