To use this website completely, it is necessary to store cookies on your computer.
 

Firefox 8 and the download problem

Started by feline, 5 years ago

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

feline

5 years ago Last Edit: 5 years ago by feline
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

[attachment deleted by admin]
Many are stubborn in relation to the path, a few in relation to the target.

neverhurry

#1
5 years ago
 :(

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

feline

#2
5 years ago
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.

hartiberlin

#3
5 years ago
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.

feline

#4
5 years ago
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.

hartiberlin

#5
5 years ago
Okay, I have done the fix and it works great !
Many thanks again Feline.

Regards, Stefan.

hartiberlin

#6
5 years ago
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.

feline

#7
5 years ago
Lösch mal den filecache ...
Many are stubborn in relation to the path, a few in relation to the target.

marco

#8
5 years ago
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

feline

#9
5 years ago
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.

XHIBIT

#10
5 years ago
Does this patch work for FF10 also ?

feline

#11
5 years ago
Yes .. works  ;)
Many are stubborn in relation to the path, a few in relation to the target.

hartiberlin

#12
5 years ago
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.

feline

#13
5 years ago
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.

Fisch.666

#14
3 years ago
Hi,

just a short note:

If you want to install SMF 2.0.7 remove this fix before applying the update to SMF 2.0.7 as the update will conflict with the first change made in the Display.php.