Page 1 of 1

An White space at top of web page.

Posted: Fri Nov 13, 2009 10:17 am
by Mason
An extra space at top of web page.
Version: opencart 1.3.2

Precondition:
My local system does not have mail configured.

Steps:
1. register an account.
2. buy an item.
3. choose shipping method.
4. choose payment method.
5. At confirm page, the whitespace occurs. Route URL is opencart/index.php?route=checkout/confirm

HTML problematic line is:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
After I researched the problem, it is XML the first line of the webpage is corrupted.
though common editor like UltraEdit or EditPlus still shows that they XML syntax is correct.
1. Problem picture:
white_space.PNG

White space problem - white_space.PNG (17.51 KiB) Viewed 754 times

2. UltraEdit Open problem html file:
ultraedit.PNG

ultraedit.PNG (7.42 KiB) Viewed 754 times

3. WinHEX open problem HTML file, see the HEX value is different from normal html:
compare.PNG

compare.PNG (29.88 KiB) Viewed 754 times


Re: An White space at top of web page.

Posted: Fri Nov 13, 2009 10:20 am
by Mason
Add 1.html error html page zip attachment.

Re: An White space at top of web page.

Posted: Sat May 05, 2012 2:18 pm
by marandy
Did you sovle it?

Re: An White space at top of web page.

Posted: Sat Jan 12, 2013 11:52 pm
by ahmed.medhat
i have a white space also at the top of my website only if i change the language to Arabic and direction is "rtl"
if i change the direction to "ltr" and lang "en" but the content is Arabic, the problem still exists.

using a hex editor, there are some rubbish text after the <body> tag, i cant figure out why those characters appear.

these are the characters in HEX:
ef bb bf ef bb bf ef bb bf ef bb bf ef bb bf ef bb bf ef bb bf ef bb bf ef bb bf

as in unicode the browser cant display them.

can any body help please?

Re: An White space at top of web page.

Posted: Sun Jan 13, 2013 12:58 am
by ahmed.medhat
issue is fixed after changing the encoding of all Arabic language files to UTF-8 without BOM.

Thanks