Post by Mason » Fri Nov 13, 2009 10:17 am

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 750 times

2. UltraEdit Open problem html file:
ultraedit.PNG

ultraedit.PNG (7.42 KiB) Viewed 750 times

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

compare.PNG (29.88 KiB) Viewed 750 times


Newbie

Posts

Joined
Thu Nov 05, 2009 2:21 pm

Post by Mason » Fri Nov 13, 2009 10:20 am

Add 1.html error html page zip attachment.

Newbie

Posts

Joined
Thu Nov 05, 2009 2:21 pm

Post by marandy » Sat May 05, 2012 2:18 pm

Did you sovle it?

Newbie

Posts

Joined
Mon Mar 26, 2012 4:14 pm

Post by ahmed.medhat » Sat Jan 12, 2013 11:52 pm

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?

Newbie

Posts

Joined
Mon Oct 29, 2012 10:12 pm

Post by ahmed.medhat » Sun Jan 13, 2013 12:58 am

issue is fixed after changing the encoding of all Arabic language files to UTF-8 without BOM.

Thanks

Newbie

Posts

Joined
Mon Oct 29, 2012 10:12 pm
Who is online

Users browsing this forum: No registered users and 46 guests