Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
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

#25 2007-07-13 13:14:04

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub Mastodon

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

aswihart wrote:

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

This is an error probably related to bit_rss, caused by problems writing its feed cache files.

Offline

#26 2007-07-13 18:27:20

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 figured out I had a plugin that was causing my problem. I’m using sgb_error_documents and sgb_url_handler, which are used with vdh_flickr to make clean urls for the photo gallery. I turned off these plugins, and now the file download links work fine, but I don’t have my clean urls anymore for the photo gallery!

I figured out it is the sgb_url_handler plugin that’s causing the trouble. It defines URL “schemes,” and I don’t understand exactly what it does or how it does it. Here is the list of basic schemes it comes preloaded with:

$schemes['_author'] = '/%_author%/%string%';
$schemes['_category'] = '/%_category%/%category%';
$schemes['_section'] = '/%_section%/%section%';
$schemes['_file'] = '/%_file%/%number%';
$schemes['_author_en'] = '/author/%string%';
$schemes['_category_en'] = '/category/%string%';
$schemes['_section_en'] = '/section/%string%';
$schemes['_atom'] = '/atom';
$schemes['_rss'] = '/rss';
$schemes['id_title'] = '/%id%/%title%';
$schemes['section_id'] = '/%section%/%id%';
$schemes['section_id_title'] = '/%section%/%id%/%title%';
$schemes['section_category_title'] = '/%section%/%category%/%title%';
$schemes['section_date_title'] = '/%section%/%year%/%month%/%day%/%title%';
$schemes['section_category'] = '/%section%/%category%';
$schemes['section_title'] = '/%section%/%title%';
$schemes['section'] = '/%section%';
$schemes['title_only'] = '/%title%';

I tried fixing it by adding /%string% or /%title% to the following scheme: $schemes['_file'] = '/%_file%/%number%';, but it didn’t work. I will contact the plugin writer, it seems this plugin needs updated to work with the new file_download links in 4.05.

Thanks a lot for the help guys.

Last edited by aswihart (2007-07-13 18:36:28)

Offline

#27 2007-07-13 18:43:55

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, just found out that sgb_url_handler isn’t supported anymore, will have to live with dirty URLs for the moment until I can switch to gbp_permanent_links .

But, bottomline, that plugin was the problem, problem is solved, thanks again.

Last edited by aswihart (2007-07-14 01:46:16)

Offline

Board footer

Powered by FluxBB