Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Multiple <txp:file_download> not working properly (always 1 file ID)
Hello all,
Long time TXP user, and I never really have issues, however with my current site, I’ve run into one. Basically, I have a “notebook” section which is like a blog, and my posts are all laid out on that page.
The issue I’m having is that when I have 2 or more articles posted with <txp:file_download> tags, only the most recent download will have the PROPER file, but the posts below it all link to that same, most recent file. When I click on the post to view it in full/alone, the link is fine (previous/proper ID is linked to).
My “files” form is pretty much all good I believe, as is my article listing template. I just don’t know why when multiple <txp:file_download> tags are on one page, the SAME file/ID is linked to on all of them.
If anyone has anything I could try, please let me know. To take a look at the issue as it stands, visit my main “Notebook” page here:
http://www.protogenlabs.com/notebook
and you’ll notice that the most recent post about moving IIS/Exchange logs links to a file called “waRmZip.zip” which is 9kb in size. The following post is for a PocketPC theme I made which has a different file_download ID, but you’ll notice that the same “waRmZip.zip” file is linked to, rather than the proper one which is over 3mb in size.
Clicking either of the entries to read the posts in full does NOT have this problem, so I believe it is only caused when I have 2 or more <txp:file_download> tags on the same page. Again, they both incorrectly link to the most recent file.
Any help on this would be GREATLY appreciated….
Thanks in advance!
Last edited by georgeM (2007-12-13 22:43:21)
Offline
Re: Multiple <txp:file_download> not working properly (always 1 file ID)
OK I’ve been continuing with testing this out, and I can conclude that if I set the Max amount of articles to be displayed to “1”, forcing each entry to be listed on it’s own page, the file_download works as it’s supposed to, by pointing to the proper file. If I change this back to my default of “7”, then again, all <txp:file_download> links on the page are forced to the same, most recent file.
I’m wracking my brains trying to figure this out, as its like the biggest thorn in my side…
Hopefully I can get to the bottom of this with some help…
Thanks in advance again all!
Offline
Re: Multiple <txp:file_download> not working properly (always 1 file ID)
FAQ ?
If so, upgrade TXP to 4.0.5.
Offline
Re: Multiple <txp:file_download> not working properly (always 1 file ID)
ruud you are better than great!!!
My apologies for not finding that in the FAQs, I didn’t think it was a commonly known bug. Searching the forums is quite tedious, and i eventually got fed up and just created a new post.
Anyways, I have replaced the file in my TXP 4.0.4 installation, and the bug has been SQUASHED!!!
Thanks again so very much!
Offline
Re: Multiple <txp:file_download> not working properly (always 1 file ID)
Might be a good idea to upgrade, lots of security fixes in 4.05, and more coming in 4.06.
Offline
Re: Multiple <txp:file_download> not working properly (always 1 file ID)
Thanks for the upgrade advice jstubbs,
I’ve never really updated a TXP install before, so it makes me a bit nervous to perform one. Regardless, I have backed up all of my SQL tables for my TXP install, so I’m sure that if there were any problems, dropping and re-importing the whole TXP schema would fix it…
I will update it soon though, my only question now is should I wait for 4.0.6 or do 4.0.5 then .6 when it arrives?
I know the dev team is great, and I’m sure no problems will arise when performing an update, but there’s always that chance…I’ve been burned before to know ;)
Anyways, thanks for all of your help guys. I know it was a simple fix that was even in the FAQs, but consider it a lesson learned. I’ve been a 3+ year user of TXP, and this whole community is full of great people.
Thanks again!
Offline