Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-04-09 15:11:51

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

[SOLVED] corrupt file downloads

Hello, this may not be related to Textpattern, but I’m hoping someone here can help me out.

I’ve started adding files (mostly pdfs) to my (still local / testing) site for user download. The downloads of those files seem to be corrupt. The uploads appear to be okay (when I open the files directly from the file subfolder in my site folder), but the download has issues. The file appears to download okay, but when viewing the file, it’s a mess.

I’ve looked at the files in a text editor and they do differ in different locations throughout the file (and the differences change with new downloads). Can anyone shed some light on what may be happening? Is this a Textpattern/php issue, a server issue, or user (me) issue? Oh, and it doesn’t matter if I create the PDFs or they’re from a third party source.

Thanks

Offline

#2 2011-04-09 15:23:30

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,257
Website GitHub Mastodon Twitter

Re: [SOLVED] corrupt file downloads

Hi Christopher

What txp version are you using?

There was a similar problem in 4.2 which was fixed here


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2011-04-09 15:32:44

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

Re: [SOLVED] corrupt file downloads

Textpattern version: 4.4.0 (r3514)

I’m reading the thread now…

Offline

#4 2011-04-09 16:39:05

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [SOLVED] corrupt file downloads

Christopher, can you post your high diagnostics (Admin/Diagnostics > High) and what browser are you using? Might also help if you linked to one of the downloads.

colak wrote:

There was a similar problem in 4.2 which was fixed here

Robert’s reply, that you linked, isn’t related to the downloads issue Christopher is having. It’s reply to the short-lived problem about the default pane and update procedure.

Last edited by Gocom (2011-04-09 16:47:54)

Offline

#5 2011-04-09 17:00:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,257
Website GitHub Mastodon Twitter

Re: [SOLVED] corrupt file downloads

Gocom wrote:

Robert’s reply, that you linked, isn’t related to the downloads issue Christopher is having. It’s reply to the short-lived problem about the default pane and update procedure.

oops you are right. I thought that I saw a fix for the download issue too.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2011-04-09 17:34:30

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

Re: [SOLVED] corrupt file downloads

Jukka,

It happens in both Safari 5 and Firefox 4 (Mac OS 10.6.6). Here’s the high diagnostics and a link to one of the pdfs below

Textpattern version: 4.4.0 (r3514)
Last Update: 2011-03-31 19:58:17/2011-03-26 16:03:34
Document root: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
$path_to_site:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Textpattern path: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Permanent link mode: section_title
Temporary directory path: /private/var/tmp
Site URL: 
PHP version: 5.3.3
GD Image Library: version bundled (2.0.34 compatible), supported formats: GIF, JPG, PNG
Server TZ: America/New_York
Server Local Time: 2011-04-09 13:29:05
DST enabled?: 1
Automatically adjust DST setting?: 1
Time Zone: America/New_York (-18000)
MySQL: 5.1.54
Locale: en_US.UTF-8
Server: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8l DAV/2 PHP/5.3.3
Apache version: Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8l DAV/2 PHP/5.3.3
PHP Server API: apache2handler
RFC 2616 headers: 
Server OS: Darwin 10.6.0
Active plugins: jmd_html-0.2, cbs_navigation_menu-0.4, pap_contact_cleaner-0.1m, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6, smd_random_banner-0.42, smd_lib-0.36
Admin-side theme: din 4.4.0

Pre-flight check: 
------------------------
Web Domain DNS lookup fails: 98.110.186.86
Some Textpattern files have been modified: 
	xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
------------------------

.htaccess file contents: 
------------------------
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

------------------------

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_filesystem: binary
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/local/mysql-5.1.54-osx10.6-x86_64/share/charsets/
17 Tables: OK

10 Custom Fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10)

PHP extensions: Core/5.3.3, date/5.3.3, ereg, libxml, openssl, pcre, sqlite3/0.7-dev, zlib/1.1, bcmath, bz2, calendar, ctype, curl, dom/20031129, hash/1.0, fileinfo/1.0.5-dev, filter/0.11.0, ftp, gd, session, iconv, json/1.2.1, ldap, mbstring, standard/5.3.3, mysqlnd/mysqlnd 5.0.7-dev - 091210 - $Revision: 300533 $, SPL/0.2, odbc/1.0, mysqli/0.1, PDO/1.0.4dev, pdo_mysql/1.0.2, pdo_sqlite/1.0.1, Phar/2.0.1, posix, Reflection/$Revision: 300393 $, mysql/1.0, shmop, SimpleXML/0.1, snmp, soap, sockets, SQLite/2.0-dev, exif/1.4 $Id: exif.c 293036 2010-01-03 09:23:27Z sebastian $, sysvmsg, sysvsem, sysvshm, tokenizer/0.1, xml, xmlreader/0.1, xmlrpc/0.51, xmlwriter/0.1, xsl/0.1, zip/1.9.1, apache2handler

Apache modules: core, prefork, http_core, mod_so, mod_authn_file, mod_authn_dbm, mod_authn_anon, mod_authn_dbd, mod_authn_default, mod_authz_host, mod_authz_groupfile, mod_authz_user, mod_authz_dbm, mod_authz_owner, mod_authz_default, mod_auth_basic, mod_auth_digest, mod_cache, mod_disk_cache, mod_mem_cache, mod_dbd, mod_dumpio, mod_ext_filter, mod_include, mod_filter, mod_substitute, mod_deflate, mod_log_config, mod_log_forensic, mod_logio, mod_env, mod_mime_magic, mod_cern_meta, mod_expires, mod_headers, mod_ident, mod_usertrack, mod_setenvif, mod_version, mod_proxy, mod_proxy_connect, mod_proxy_ftp, mod_proxy_http, mod_proxy_ajp, mod_proxy_balancer, mod_ssl, mod_mime, mod_dav, mod_status, mod_autoindex, mod_asis, mod_info, mod_cgi, mod_dav_fs, mod_vhost_alias, mod_negotiation, mod_dir, mod_imagemap, mod_actions, mod_speling, mod_userdir, mod_alias, mod_rewrite, mod_bonjour2, mod_php5

//edit link removed

Last edited by wolfcry911 (2011-04-12 01:06:07)

Offline

#7 2011-04-09 17:54:23

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [SOLVED] corrupt file downloads

If that’s the actual download link that isn’t working, then that’s strange. The download works just fine for me. Everything is transferred correctly, file has no oddities and displays fine on Mac OS’s Preview. Also headers show up fine; no extra identifications of extra compression or anything.

Last edited by Gocom (2011-04-09 18:02:33)

Offline

#8 2011-04-09 18:01:55

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

Re: [SOLVED] corrupt file downloads

are you sure its okay? On my most recent download, the second page is missing a bunch of info (there’s a 2 inch high block about an inch down from the top missing, for example). Other pdfs have additional artifacts as well as missing characters, etc..

Offline

#9 2011-04-09 18:15:47

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [SOLVED] corrupt file downloads

wolfcry911 wrote:

are you sure its okay? On my most recent download, the second page is missing a bunch of info (there’s a 2 inch high block about an inch down from the top missing, for example). Other pdfs have additional artifacts as well as missing characters, etc..

Oh yes, you are right. I do see cap between Section A and B on page 2, and extra characters at the bottom of page 2, but I don’t see any missing characters or anything in that PDF, I believe.

You could try to disable jmd_html. It’s the only plugin of your Textpattern plugins that could effect downloads, as it directly modifies output buffer, no matter what the content is. If you are using any of the compression modules (mod_deflate), try to disable those.

Last edited by Gocom (2011-04-09 18:17:30)

Offline

#10 2011-04-09 18:28:46

wolfcry911
Member
From: MA, USA
Registered: 2006-06-30
Posts: 51

Re: [SOLVED] corrupt file downloads

Thanks jukka,
it turned out to be jmd_html

Offline

Board footer

Powered by FluxBB