Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HEAD content rendered in BODY area #1378

Closed
itdes opened this issue Apr 29, 2014 · 7 comments
Closed

HEAD content rendered in BODY area #1378

itdes opened this issue Apr 29, 2014 · 7 comments

Comments

@itdes
Copy link

itdes commented Apr 29, 2014

Hello,
I'm using the latest version of OpenCart v1.5.6.4, I'm creating a new theme by copying the default theme and changing the header links to the new theme's folder instead of default's theme. Without any other changes to the new theme, I'm not getting proper rendering of all the pages, except for the home page. Strangely, this problem isn't visible in Firefox, but it is there in IE and Google Chrome. The content that should be placed in the HEAD area of the document, is places in the BODY area.. This happens after I change the theme, even though it is EXACT copy of the default theme, the problem isn't observed with the default theme. So I'm wondering if this problem is because of some issues in the controllers? How could I change it without changing the core files?
I haven't tested in previous versions of OpenCart.
Thank you.

@agatha65
Copy link

Check your files. You have html before php.
Please use forums for this kind of issues.

@itdes
Copy link
Author

itdes commented Apr 29, 2014

Hello, I did check the files. I did write here, because I thought it might be an issue with the newer versions of OpenCart, because I tried installing different template and again I got the same problem. I've attached an image of the wrongly rendered content. I already spent so much time in trying to figure out why this is happening like that. Please, if you have an idea.
head-content-in-body

@DS-Matt
Copy link
Contributor

DS-Matt commented Apr 29, 2014

You most likely relocated your closing tag incorrectly or removed a closing tag in your header.tpl file. Post the header file for the theme and someone maybe able to help you. Also try using the forums because github isn't for support its for developers.

@agatha65
Copy link

This a translation problem. Your translation files are encoded with bom.
Махни този превод и си намери такъв с правилен енкодинг пиши ми ако не можеш да ти пратя.

@itdes
Copy link
Author

itdes commented Apr 30, 2014

Thank you so much, agatha65! Changed the language pack with an updated version of the translation, utf-8 without bom, and everything works properly now! Много много благодаря!
Thank you, DS-Matt, for the reply, the issue is solved now. Please excuse me for writing in the wrong place for this problem. Thanks for helping me in solving the issue!

@alonshoshani
Copy link

hi , i have the same problem with my opencat 2 can you pease explain how to fix it?

@reppair
Copy link

reppair commented Oct 30, 2017

as explained above, but I am struggling with finding properly encoded translation files .. I am about to translate them my self ... (oc v1.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants