Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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