Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-02-23 18:45:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

404 for files

With the recent updates of our sites we took of line some old files

When going to http://www.mysite.tld/file_download/117/file_name.zip (which does not exist), txp’s 404 handler returns – rather amusingly – The page http://www.mysite.tld does not exist. instead of the actual requested file url.

I’m not sure if this is a bug but I would expect to see The page http://www.mysite.tld/file_download/117/file_name.zip does not exist.

or better (if there was media detection) The *file* http://www.mysite.tld/file_download/117/file_name.zip does not exist.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2011-02-23 20:25:08

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: 404 for files

Just tested and I can confirm this. <txp:page_url /> doesn’t output anything for a /file_download/… URL. Also in debug mode I’m getting all kinds of tag errors for article_custom (undefined index, undefined variable), that don’t occur on regular 404 pages. And I just found out there is no tag trace on a 404 page.

Offline

Board footer

Powered by FluxBB