Post by amcc » Wed Jul 01, 2009 7:47 pm

[removed]
Last edited by amcc on Fri Feb 09, 2018 7:37 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by Qphoria » Wed Jul 01, 2009 9:54 pm

This is due to either:
a) having extra spaces at the top or bottom of certain files you edited
b) saving in UTF-8 when it expects ANSI
c) weird characters before your doctype.

Check all the files you edited and try resaving them with a good editor like notepad++ using ANSI
And check that there are no weird characters or carriage returns at the bottom of files.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Martin.Astley » Thu Jul 02, 2009 12:41 am

What is your site URL?

Ive just double checked version 1.2.9 using the latest version of opera and there are no problems.

Image
OpenCart®
Development Team


Global Moderator

Posts

Joined
Tue Jun 30, 2009 6:23 am
Location - Blackburn, Lancashire, United Kingdom

Post by spyroid » Thu Jul 02, 2009 4:35 am

Hi. I've made some investigation and i think it's problem of handling gzip in opera.

response.php - output()

Code: Select all

    
if ($level) {
      $ouput = $this->compress($this->output, $level);
    } else {
      $ouput = $this->output;
    }   
if you remove compressing the page will be shown.

I can say that at home, on local PC it works fine in all browsers, but doesn't work on hosting. So maybe on hosting there is some strange apache configuration.

User avatar
Newbie

Posts

Joined
Thu Jul 02, 2009 4:31 am

Post by amcc » Thu Jul 02, 2009 5:10 am

the url is [url removed]
Last edited by amcc on Fri Feb 09, 2018 7:21 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by Qphoria » Thu Jul 02, 2009 5:21 am

spyroid wrote: I can say that at home, on local PC it works fine in all browsers, but doesn't work on hosting. So maybe on hosting there is some strange apache configuration.
Are you uploading them to FTP via Ascii or binary? be sure to use binary.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by amcc » Thu Jul 02, 2009 5:44 am

[removed]
Last edited by amcc on Fri Feb 09, 2018 7:36 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by Qphoria » Thu Jul 02, 2009 8:09 am


Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by amcc » Thu Jul 02, 2009 7:35 pm

[removed]
Last edited by amcc on Fri Feb 09, 2018 7:34 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by amcc » Thu Jul 02, 2009 8:05 pm

[removed]
Last edited by amcc on Fri Feb 09, 2018 7:35 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by amcc » Thu Jul 02, 2009 8:27 pm

[removed]
Last edited by amcc on Fri Feb 09, 2018 7:35 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by spyroid » Thu Jul 02, 2009 11:40 pm

Qphoria wrote:
spyroid wrote: I can say that at home, on local PC it works fine in all browsers, but doesn't work on hosting. So maybe on hosting there is some strange apache configuration.
Are you uploading them to FTP via Ascii or binary? be sure to use binary.
The problem is not in FTP uploading. The problem is in compress() function

User avatar
Newbie

Posts

Joined
Thu Jul 02, 2009 4:31 am

Post by amcc » Thu Jul 02, 2009 11:41 pm

[removed]
Last edited by amcc on Fri Feb 09, 2018 7:34 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by spyroid » Thu Jul 02, 2009 11:51 pm

amcc wrote:what can i do to resolve this and what does the compress function even do ? :D

thanks, amcc

for quick fix goto /system/library/response.php and find

Code: Select all

if ($level) {
      $ouput = $this->compress($this->output, $level);
    } else {
      $ouput = $this->output;
    }   
and replace it to

Code: Select all

$ouput = $this->output;

User avatar
Newbie

Posts

Joined
Thu Jul 02, 2009 4:31 am

Post by Qphoria » Thu Jul 02, 2009 11:58 pm

No the problem is not in compression, as obviously the demo uses compression and loads in opera just fine.
The fact that removing compression helps just means that there is garbage going into the compression function which makes even worse garbage come out of it. If you fix the code properly by following my steps, then the code before compression should be clean and you can then still have compression working.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by amcc » Fri Jul 03, 2009 4:09 am

[removed]
Last edited by amcc on Fri Feb 09, 2018 7:22 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by JNeuhoff » Fri Jul 03, 2009 4:53 am

Doesn't work in Opera 9.64, only shows garbage.

Go through your *.tpl files, and for any file that ends with a ''?>' make sure it won't be followed by whitespaces such as line breaks. Also, don't use MS Notepad for editing the files.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by amcc » Fri Jul 03, 2009 6:53 am

[removed]
Last edited by amcc on Fri Feb 09, 2018 7:35 pm, edited 1 time in total.

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am

Post by amcc » Fri Jul 03, 2009 6:56 am

[removed]

New member

Posts

Joined
Sat Jun 27, 2009 5:17 am
Who is online

Users browsing this forum: No registered users and 50 guests