Jump to content
mohsart

[SOLVED] CSS(?) broken

Recommended Posts

Could you turn on Error reporting for us. It may give some more information.

 

 

Please add define('_PS_MODE_DEV_', true);

in /config/defines.inc.php and

@ini_set('display_errors', 'on');

define('_PS_DEBUG_SQL_', true);

in /config/config.inc.php

Share this post


Link to post
Share on other sites

Done.

I just noticed that the problem only occurs with swedish language selected

 

/Mats

Share this post


Link to post
Share on other sites

Well, the site looks fine in chrome and firefox. In IE it is a little bit of a mess, and changing the language to English did not help. Were there any errors that were presented?

Share this post


Link to post
Share on other sites

I haven't seen any errors, where should they appear?

 

In FF, the logo banner is placed a couple of pixels too low, otherwise OK. For me, switching to English resolves everything perfectly :-O

 

/Mats

Share this post


Link to post
Share on other sites

Just in case, this is how it all looks for me.

Top two pics are FF 16, bottom are IE 9

css.jpg

/Mats

Share this post


Link to post
Share on other sites

I cleaned out all history etc and now I have the same (broken) appearance no matter chosen language

 

/Mats

Share this post


Link to post
Share on other sites

I mean "head" section. I've just made a test and delete

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]-->
<!--[if IE 7]>	<html class="no-js ie7 lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>	<html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]-->

from header.tpl and my site looks like yours. I suppose that's the reason.

Share this post


Link to post
Share on other sites

I'm sorry, but I don't quite understand, should I add the code you pasted to themes/header.tpl?

 

/Mats

Share this post


Link to post
Share on other sites

line

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

already is in your header.tpl. As I can see you changed something in your theme, that line is at beginning, head section is complete and site looks OK in FF and IE.

Share this post


Link to post
Share on other sites

This is thebeginning of the file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}">
<head>
	<title>{$meta_title|escape:'htmlall':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
	<meta name="description" content="{$meta_description|escape:html:'UTF-8'}" />
{/if}
{if isset($meta_keywords) AND $meta_keywords}
	<meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" />
{/if}
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	<meta http-equiv="content-language" content="{$meta_language}" />
	<meta name="generator" content="PrestaShop" />
	<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />

How should it look?

I did try another theme, something like 2 weeks before this stopped working. Apart from that, I've only changed CSS stuff.

 

Edit: BTW, $meta_language seems weird, it holds the value "en-sv"

 

/Mats

Edited by mohsart (see edit history)

Share this post


Link to post
Share on other sites

That file is OK. But about one hour ago I visited your site and used firebug. The code was messy. I didn't make screenshot but everything what should be in "head" section was in "body". So I suppose IE didn't recognize your site correctly. Did you change something during last hour?

Share this post


Link to post
Share on other sites

I only tried to implement what I thought you meant, inserting lines of code... Now it's back to how it was originally, since nothing changed.

 

/Mats

Share this post


Link to post
Share on other sites

Hi mohsart,

 

I found a few similar topics and every problems were connected with file format. Don't use UTF-8 with BOM. In that case page code is messy and IE shows site in quirks mode.

Share this post


Link to post
Share on other sites

Thanks.

What is BOM?

I tried replacing all utf-8 with iso-8859-1 in header.tpl but nothing changed.

 

Oh and my 1.4.3 store works fine with utf-8

 

/Mats

Share this post


Link to post
Share on other sites

Hi again,

I'm also not familiar with that case but I found script may help you. Place it in your PS directory and execute by browser.

bom.php

Share this post


Link to post
Share on other sites

Lovely! Fixed!

For others:

I changed win=1; to win=0; since I have a linux host.

Ran the scrips, got

These files have UTF8 BOM:

 

/home/virtual/mohsart.se/public_html/handkraft/js/jquery/plugins/jquery.validate-creditcard.js

/home/virtual/mohsart.se/public_html/handkraft/goadmin/ajaxfilemanager/jscripts/edit_area/langs/ja.js

/home/virtual/mohsart.se/public_html/handkraft/mails/en/order_conf.txt

/home/virtual/mohsart.se/public_html/handkraft/mails/it/order_conf.txt

/home/virtual/mohsart.se/public_html/handkraft/mails/de/order_conf.txt

/home/virtual/mohsart.se/public_html/handkraft/mails/sv/guest_to_customer.txt

/home/virtual/mohsart.se/public_html/handkraft/mails/sv/contact_form.txt

/home/virtual/mohsart.se/public_html/handkraft/themes/default/lang/sv.php

/home/virtual/mohsart.se/public_html/handkraft/classes/Tools.php

 

Downloaded these, opened in notepad++, changed format from UTF-8 to ANSI, saved and uploaded.

 

I am a tad bit interested in why those files had changed, but main thing is that NOW IT WORKS :-)))

 

Thank you sooo much, sebkos!

 

/Mats

Share this post


Link to post
Share on other sites

hi i seem to have the same problem, can you explain exactly what you did to solve it because I do not understand what to do. / thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More