Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-07-11 03:11:56

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: file_download in 4.05 - new URL seems to have broken all my file links

Look in your Advanced preferences, at the files path. It’ll look something like: /home/username/public_html/files. You want to make yours similar, like /home/username/public_html/rewrite.log.

Offline

#14 2007-07-11 10:24:42

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: file_download in 4.05 - new URL seems to have broken all my file links

OK, I just tried "/home/swiharta/public_html/rewrite.log" and I get the same error. I did check my advanced prefs and that’s what it looks like.

Offline

#15 2007-07-11 10:31:38

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,340
Website GitHub Mastodon

Re: file_download in 4.05 - new URL seems to have broken all my file links

Mary wrote:

1. Create and upload a new text file named rewrite.log.
2. Temporarily, add the following to the stock Txp .htaccess:

I think this is not an allowed context, according to the docs.


Syntax: RewriteLogLevel Level
Default: RewriteLogLevel 0
Context: server config, virtual host

So this is why Apache yells at you when you add that directive at the .htaccess context.

Offline

#16 2007-07-12 01:16:18

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: file_download in 4.05 - new URL seems to have broken all my file links

So, Mary’s troubleshooting strategy isn’t going to work, any other thoughts? Can you replicate this issue using txp:file_download_list?

Last edited by aswihart (2007-07-12 01:17:28)

Offline

#17 2007-07-12 03:21:06

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: file_download in 4.05 - new URL seems to have broken all my file links

Dammit. :(

Offline

#18 2007-07-12 05:48:32

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,340
Website GitHub Mastodon

Re: file_download in 4.05 - new URL seems to have broken all my file links

aswihart wrote:

So, Mary’s troubleshooting strategy isn’t going to work, any other thoughts?

It’s probably connected to your specific hosting setup in one way or the other, not to Textpattern, as Sencer wrote in one of the early replies. Is there a chance that you extract the Apache access.log and error.log files for a time frame where the error occurs? You hosting support might help you with that.

Can you replicate this issue using txp:file_download_list?

No.

Offline

#19 2007-07-12 19:36:48

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: file_download in 4.05 - new URL seems to have broken all my file links

I can’t see the 404 errors in my error log for some reason. In my raw access log, I found this (one example among many), not sure if it’s useful though:

82.130.8.194 - - [11/Jul/2007:15:42:23 -0400] "GET /file_download/50/226BW%28Digital%29-factory-R51-G47-B50.icm HTTP/1.1" 404 34 
"http://www.andrewswihart.net/blog/review-samsung-226bw-lcd-c-panel" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) 
Gecko/20070515 Firefox/2.0.0.4"

So, I will try to get the Apache log if possible, or is that the same as the raw access log? And I submitted a support ticket to A Small Orange to see if they have any ideas. As I said, I have a barebones .htaccess file now, that looks like this:

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]
	RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0

And I turned off Hotlink Protection in cPanel. Thanks a lot for the help guys.

Last edited by aswihart (2007-07-12 19:50:29)

Offline

#20 2007-07-12 20:04:26

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,340
Website GitHub Mastodon

Re: file_download in 4.05 - new URL seems to have broken all my file links

I made several request to your site, plus created a file on one of my sites with an identical name: It doesn’t work at your site, works at mine. It’s probably best to kick off the host’s support.

Of further interest: Accessing http://www.andrewswihart.net/file_download results in a formatted 404 page, while it simple returns a blank page with a response code of 404 on every other Txp site I checked.

Last edited by wet (2007-07-12 20:07:48)

Offline

#21 2007-07-12 20:51:18

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: file_download in 4.05 - new URL seems to have broken all my file links

“It’s probably best to kick off the host’s support.”

Are you trying to say it’s time to go to my host for support? Just making sure I understand the lingo :)

Offline

#22 2007-07-13 04:48:09

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,340
Website GitHub Mastodon

Re: file_download in 4.05 - new URL seems to have broken all my file links

Yes, seek support at your hosting provider.

Offline

#23 2007-07-13 10:35:14

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: file_download in 4.05 - new URL seems to have broken all my file links

Got this error from the Apaches logs, I don’t think it’s related though:

[Thu Jul 12 15:52:24 2007] [error] PHP Warning: /home/swiharta/public_html/textpattern/tmp/ddb5f0fcd453fe8ed1e54fe940b12dc5dfa04a7f.spc is 
not writeable in /home/swiharta/public_html/textpattern/lib/simplepie.inc on line 620
[Thu Jul 12 15:53:35 2007] [error] PHP Warning: /home/swiharta/public_html/textpattern/tmp/ddb5f0fcd453fe8ed1e54fe940b12dc5dfa04a7f.spc is 
not writeable in /home/swiharta/public_html/textpattern/lib/simplepie.inc on line 620
[Thu Jul 12 15:53:35 2007] [error] PHP Warning: /home/swiharta/public_html/textpattern/tmp/b287a828e7dafe8b7774a3f6b7104bab11a20aad.spc is 
not writeable in /home/swiharta/public_html/textpattern/lib/simplepie.inc on line 620

Last edited by aswihart (2007-07-13 10:35:36)

Offline

#24 2007-07-13 10:59:18

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: file_download in 4.05 - new URL seems to have broken all my file links

Check the permissions of that /textpattern/tmp directory and its contents.

Offline

Board footer

Powered by FluxBB