Hey guys,
im stuck on this problem for a week now.
every browser shows my site correct. only the internet explorer goes in the quirks mode and so the page is displayed not correct anymore.
when i validate the site in the developer tools of ie the following error is coming up:
Line 1, Column 1: character "" not allowed in prolog
if i watch the sourcecode in ie i can see that there are 2 whitespaces at the top.
in other browser there aren't this spaces.
this seems the to be reason why the internet explorer is in the quirks mode.
how can i delete those whitespaces?
in another thread there was a solution posted, that i should post in the index.php the following code at the top:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
if i do this, the internet explorer is in the normal mode an everything is displayed correct and there are no more whitespaces in the sourcecode!
BUT there is an error displayes at the top of everey browser:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/web19/html/index.php:3) in /var/www/web19/html/system/library/session.php on line 11ï
please can anyone help me???
i think the best solution is to delete those whitespaces in index.php, but i cant find the source of those whitespaces.
i want to present the page at tuesday to some investors... and the page needs to be displayed correct in ie.
if this is a bigger problem its no problem for me to pay money for it. but i need help pls.
thanks in advance!
One solution to force IE in strict mode:
Add
As the first line right after the
In the file "catalog\view\theme\<your theme>\template\common\header.tpl"
As for the other problem
Check this thread...
http://forum.opencart.com/viewtopic.php?f=20&t=38984
Add
Code: Select all
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Code: Select all
<head>
As for the other problem
Check this thread...
http://forum.opencart.com/viewtopic.php?f=20&t=38984
OpenCart extension and templates developer. Working for Shine Webb AB in Sweden. Feel free to PM/contact me if you are in need of an extension or a template.
Who is online
Users browsing this forum: No registered users and 7 guests