Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Select language:

Community



Donate

Donate for PortaMx !
Your donation is safe and helps support the issues and causes you care most about.

Stats

  • *Total Members: 4339
  • *Latest: AJ

  • *Total Posts: 15836
  • *Total Topics: 2396
  • *Online Today: 5
  • *Most Online: 157
(27.08.09, 03:54:53)
  • *Users: 1
  • *Guests: 3
  • *Total: 4

Author Topic: Firefox 8 and the download problem  (Read 12687 times)

0 Members and 0 Guests are viewing this topic.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Firefox 8 and the download problem
« on: 20.11.11, 15:40:14 »
With Firefox 8 (and the new FF 9 alpha) the attachment download don't work.
We found a solution for the problem and will give this to all Member ...

You can download the attached mod (install with the Package manager) or apply the patch manually.

You have to made 2 small modification on the file /Sources/Display.php ...
Find:
Code: [Select]
// Different browsers like different standards...
if ($context['browser']['is_firefox'])
header('Content-Disposition: ' . $disposition . '; filename*="UTF-8\'\'' . preg_replace('~&#(\d{3,8});~e', '$fixchar(\'$1\')', $utf8name) . '"');

Replace with:
Code: [Select]
// Different browsers like different standards...
if ($context['browser']['is_firefox'])
header('Content-Disposition: ' . $disposition . '; filename*=UTF-8\'\'' . rawurlencode(preg_replace('~&#(\d{3,8});~e', '$fixchar(\'$1\')', $utf8name)));

Find:
Code: [Select]
if (empty($modSettings['enableCompressedOutput']) || filesize($filename) > 4194304)
header('Content-Length: ' . filesize($filename));

Replace with
Code: [Select]
header('Content-Length: ' . filesize($filename));

Now the download works also with FF 8 ...

For AevaMedia, see this post: http://www.simplemachines.org/community/index.php?topic=200401.msg3208061#msg3208061
Many are stubborn in relation to the path, a few in relation to the target.

Offline neverhurry

  • Sr. Member
  • ****
  • Posts: 285
  • Gender: Male
  • PortaMX fan
Re: Firefox 8 and the download problem
« Reply #1 on: 20.11.11, 21:28:16 »
 :(

Parse error: syntax error, unexpected T_ELSEIF in .../Sources/Display.php on line 1431

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: Firefox 8 and the download problem
« Reply #2 on: 21.11.11, 14:20:17 »
Seems like a not original Display.php .. with a installed PortaMx the line number we make the change is 1470 and 1489
Many are stubborn in relation to the path, a few in relation to the target.

Offline hartiberlin

  • Charter Member
  • *
  • Posts: 790
  • Gender: Male
    • Free energy research
Re: Firefox 8 and the download problem
« Reply #3 on: 22.11.11, 17:22:01 »
Could you please do a modification that could be installed via the package manager
or is this too complicated ?

Then you could also post this fix on the SMF site and it will benefit ALL Firefox users.

Many thanks.

Regards, Stefan.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: Firefox 8 and the download problem
« Reply #4 on: 22.11.11, 18:02:27 »
The fix is very simple .. and on SMF you find the same information (but not compressed as here)
Many are stubborn in relation to the path, a few in relation to the target.

Offline hartiberlin

  • Charter Member
  • *
  • Posts: 790
  • Gender: Male
    • Free energy research
Re: Firefox 8 and the download problem
« Reply #5 on: 22.11.11, 22:53:22 »
Okay, I have done the fix and it works great !
Many thanks again Feline.

Regards, Stefan.

Offline hartiberlin

  • Charter Member
  • *
  • Posts: 790
  • Gender: Male
    • Free energy research
Re: Firefox 8 and the download problem
« Reply #6 on: 25.11.11, 23:12:36 »
Anscheinend gibt es doch noch Probleme:

Hallo Stefan
normal verwende ich Opera, doch beim erneuten Versuch bekam ich mit Opera auch wieder diese Sicherheitsmeldung.
Dann habe ich Firefox verwendet und bekomme nachfolgende Trashresponse:
Der Thread hat sich nicht verändert.
 Warning: require(/mounted-storage/homexxx/sub0234/sc14534-xxxx/overunity/cache/data_b9e6072fedf0cd62c40796dc1366ca09-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /mounted-storage/home83c/sub001/sc11940-GNVW/overunity/Sources/Load.php on line 2713

 Fatal error:  require() [function.require]: Failed opening required '/mounted-storage/homexxx/sub0234/sc14534-xxxx/overunity/cache/data_b9e6072fedf0cd62c40796dc1366ca09-SMF-modSettings.php' (include_path='.:/usr/share/php5/') in /mounted-storage/homexxx/sub0234/sc14534-xxxx/overunity/Sources/Load.php on line 2713


==========

Was kann das sein ?

Er wollte 2 jpg Bilder mit seinem Posting hochladen ...

Danke.

Gruss, Stefan.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: Firefox 8 and the download problem
« Reply #7 on: 27.11.11, 14:32:52 »
Lösch mal den filecache ...
Many are stubborn in relation to the path, a few in relation to the target.

Offline marco

  • Newbie
  • *
  • Posts: 1
Re: Firefox 8 and the download problem
« Reply #8 on: 15.12.11, 13:10:52 »
Hi all :)

I have the index.php attachment problem.

I have SMF 2.0.1 wit FF 8 and this pakages:

Code Highlighting    0.7.4    [ Uninstall ] [ List Files ] [ Delete ]
2.    Vote polls with points    0.1.3    [ Install Mod ] [ List Files ] [ Delete ]
3.    InLine Attachments    1.11    [ Install Mod ] [ List Files ] [ Delete ]
4.    Attachments in Topics    1.0    [ List Files ] [ Delete ]
5.    Login Security    1.0.2.2    [ Uninstall ] [ List Files ] [ Delete ]
6.    Member Awards    2.2.3    [ Install Mod ] [ List Files ] [ Delete ]
7.    PNG Message Icons    1.3.1    [ Uninstall ] [ List Files ] [ Delete ]
8.    Send Locked Topics To Bottom    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    Aeva ~ Auto-Embed Video & Audio    7.2    [ Uninstall ] [ List Files ] [ Delete ]
10.    Drafts

I have modify the Display.php and disinstall aeva but the error is still there.

I don't understund how I can resolve this problem.

Thank you very much for your help and sorry for my bad english.

Cheers ;)

PS: I don't have this file for modification: sources/aeva-gallery.php

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: Firefox 8 and the download problem
« Reply #9 on: 15.12.11, 13:18:12 »
Apply the mod they I have attached in the first post.
For Aeva follow the link I posted ...
Many are stubborn in relation to the path, a few in relation to the target.

Offline XHIBIT

  • Newbie
  • *
  • Posts: 10
  • Gender: Male
Re: Firefox 8 and the download problem
« Reply #10 on: 05.03.12, 08:39:35 »
Does this patch work for FF10 also ?

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: Firefox 8 and the download problem
« Reply #11 on: 05.03.12, 17:59:19 »
Yes .. works  ;)
Many are stubborn in relation to the path, a few in relation to the target.

Offline hartiberlin

  • Charter Member
  • *
  • Posts: 790
  • Gender: Male
    • Free energy research
Re: Firefox 8 and the download problem
« Reply #12 on: 21.04.12, 01:10:17 »
War dieser Fix dafür da, Bilder als Attachments zu posten ?

oder war er für was anderes ?


Brauche ich den auch bei Firefox 11 und bei IE9 ?

Danke.

Offline feline

  • CO PortaMx corp.
  • Administrator
  • *
  • Posts: 5616
  • Gender: Female
Re: Firefox 8 and the download problem
« Reply #13 on: 21.04.12, 13:16:43 »
Das fix ist NUR für Firefox und den Download, egal was. Das hat nichts mit Bildern zu tun ...
Many are stubborn in relation to the path, a few in relation to the target.