Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

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:

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