phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Advanced SEO Working Great Except Attached ZIP File Download

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
admintiger



Joined: 29 May 2008
Posts: 9

Advanced SEO Working Great Except Attached ZIP File DownloadPosted: Mon Jul 07, 2008 5:39 am    Post subject: Advanced SEO Working Great Except Attached ZIP File Download

I have been using the premod system with the Advanced SEO option for several weeks on two active boards. I have had excellent results, except for a problem discovered today.

If a ZIP file is attached to a post and then the ZIP file is downloaded, the downloaded file has slightly fewer bytes than the original and WinZIP reports that its contents are corrupted.

I have determined that attached ZIP files are not corrupted on the server. If I copy an attached file directly from the server /files directory to a /test directory and then rename the file so it has a ZIP extension, the file size is correct and WinZIP unzips the file with no errors.

I don't know whether this problem has anything to do with your SEO code. It may be a phpbb3 problem. However, I have been unable to find anything about it at the phpbb site.

Are you familiar with this problem or do you have an idea what might be causing it?

Thanks...

-Bob


Last edited by admintiger on Mon Jul 07, 2008 7:36 pm; edited 1 time in total
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3482

Advanced SEO Working Great Except Attached ZIP File DownloadPosted: Mon Jul 07, 2008 1:06 pm    Post subject: Re: Advanced SEO Working Great Except Attached ZIP File Download

Now this is a weird one.

I was unable to reproduce it so far : http://phpbb3.phpbb-seo.net/demo-en/a-zip-file-to-download-t39.html

Could you try to deactivate url rewriting for a second to see if it changes something.

If not, chances are very little that it could be related to our mods (or the eventual additional ones by the way).
Then you could as well try without your .htaccess for a second (backup it, delete it, perform the test and put it back ASAP)

To go further, you could try to reproduce the bug on a vanilla install.
If you can, this would mean that the bug is really related to phpBB3 and most likely your server file-system.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
admintiger



Joined: 29 May 2008
Posts: 9

Advanced SEO Working Great Except Attached ZIP File DownloadPosted: Tue Jul 08, 2008 4:38 am    Post subject: Re: Advanced SEO Working Great Except Attached ZIP File Download

Thanks for your quick response.

1) I briefly deactivated url rewriting on both boards. That did not affect the ZIP download problem on either board.

2) I also temporary moved .htaccess from both board root directories to temporary directories. That also did not affect the problem.

3) I copied a test ZIP file to a temporary directory within one of the website roots. I then put url tags (instead of attachment tags) around the ZIP file URL in a post. I downloaded the ZIP file. Its size was correct and WinZIP unzipped it.

I wonder whether the fact that I am having this problem and you were unable reproduce it could be due to PHP version differences. My two boards are running on different physical servers (both my own) that are identically configured. They both have PHP 5.2.6, Apache 2.2.9 and Windows 2000 Advanced Server operating systems.

I didn't have time try a vanilla phpbb3 installation today. I plan to try that tomorrow.

Thanks very much for your help.

-Bob
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

Advanced SEO Working Great Except Attached ZIP File DownloadPosted: Tue Jul 08, 2008 8:46 am    Post subject: Re: Advanced SEO Working Great Except Attached ZIP File Download

Could be an apache / windows bug : http://www.apache.org/dist/httpd/binaries/win32/

Quote:
Problems Installing or Running Apache 2

If you encounter problems running Apache 2 under Windows, such as corrupted or incomplete file downloads, unexplained error messages, or a conflict with a software firewall, please place the following three directives in your httpd.conf configuration file to see if they eliminate the problems:

EnableSendfile Off
EnableMMAP Off
Win32DisableAcceptEx

The general problem is that many people install various add-ons to windows (such as software firewalls, virus checkers, etc) that break some of the advanced functionality that Apache uses to speed the sending of files. The above directives turn off the advanced functionality and make Apache fall back to more basic (but slower) techniques. This resolves most, but not all of the potential problems. If you continue to experience problems, be certain that there is no spyware installed on the box, which exhibits exactly the same sorts of flaws (often more obviously).

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
admintiger



Joined: 29 May 2008
Posts: 9

Advanced SEO Working Great Except Attached ZIP File DownloadPosted: Tue Jul 08, 2008 11:38 pm    Post subject: Re: Advanced SEO Working Great Except Attached ZIP File Download

Thanks for the Apache/Windows bug information. I saw that notice a couple months ago and put those three directives in httpd.conf, but then commented them out when I couldn't see that they changed anything. However, I wasn't aware of the ZIP file download problem at that time.

I re-enabled those three directives today and restarted Apache, but that didn't correct the ZIP file download problem or change anything else that I noticed.

I will try the vanilla phpbb3 installation that you suggested to see what can be learned from that.

-Bob
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

Advanced SEO Working Great Except Attached ZIP File DownloadPosted: Wed Jul 09, 2008 3:56 pm    Post subject: Re: Advanced SEO Working Great Except Attached ZIP File Download

I'm sorry I have very few knowledge about windows servers. We need to see if you can reproduce the bug with a vanilla test install on the same server to know more and eventually find out.

Have you tried with .rar files ? .gz ? etc ?

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
admintiger



Joined: 29 May 2008
Posts: 9

Advanced SEO Working Great Except Attached ZIP File DownloadPosted: Fri Jul 11, 2008 11:16 pm    Post subject: ZIP File Download Problem Solved

A vanilla installation of phpbb 3.01 had the same ZIP file download problem. However, I discovered with more testing that most ZIP files downloaded properly, but that some didn't. I also discovered that if I renamed a ZIP file that exhibited the problem with an EXE extension, attached it to a posted message, downloaded it, and then renamed it back to ZIP it had the correct file size and WinZIP would unzip it.

This is one of the fixes in the newly released phpbb 3.0.2:

"[Fix] Made the compress_tar class tolerate archives that do not properly have their archived contents listed (Bug #14429 / thanks to JRSweets for his patch)"

I just installed a vanilla phpbb 3.0.2. It does not exhibit the problem. The same ZIP files that 3.0.1 corrupted attach and download perfectly.

-Bob
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

Advanced SEO Working Great Except Attached ZIP File DownloadPosted: Sat Jul 12, 2008 7:44 am    Post subject: Re: Advanced SEO Working Great Except Attached ZIP File Download

So I guess we got our clue here, thanks for reporting the full story Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: