All files from download_file URL giving 404!
Permalink 1 user found helpful
(I'm reposting this in the Building forum -- in hindsight the Installation forum probably doesn't get the same level of attention!)
Hi all
I'm not far from launching a site and have been putting in the content, only to discover that all URLs placed by the content block (TinyMCE) go to a 404 page. Here's an example of a link:
http://development.url.com/sniffer/index.php/download_file/view/59/...
and it's actual location (which exists, and is accessible if pasted directly into the browser's location bar) is
http://development.url.com/sniffer/files/7013/4139/1573/A20Flourish...
I have pretty URLs turned on, but they work perfectly well in every other instance.
I've looked in PHP's logs and can find nothing that's obviously related. Same for concrete5's internal log.
Can anyone help? This is a pretty colossal problem :(
With frankdesign's help I've tried disabling all custom controllers and helpers, but that didn't help.
It seems almost as though the view() function in download_file isn't being fired -- if I stick a die(); in there it doesn't work. The site seems to go straight to the 404 but I can't for the life of me work out why.
Hi all
I'm not far from launching a site and have been putting in the content, only to discover that all URLs placed by the content block (TinyMCE) go to a 404 page. Here's an example of a link:
http://development.url.com/sniffer/index.php/download_file/view/59/...
and it's actual location (which exists, and is accessible if pasted directly into the browser's location bar) is
http://development.url.com/sniffer/files/7013/4139/1573/A20Flourish...
I have pretty URLs turned on, but they work perfectly well in every other instance.
I've looked in PHP's logs and can find nothing that's obviously related. Same for concrete5's internal log.
Can anyone help? This is a pretty colossal problem :(
With frankdesign's help I've tried disabling all custom controllers and helpers, but that didn't help.
It seems almost as though the view() function in download_file isn't being fired -- if I stick a die(); in there it doesn't work. The site seems to go straight to the 404 but I can't for the life of me work out why.
is that page installed in concrete5? or was it deleted?
Hi Mnkras
Which page do you mean? download_file is a c5 core controller in /concrete/controllers/download_file.php.
Which page do you mean? download_file is a c5 core controller in /concrete/controllers/download_file.php.
In your sitemap, show system files and see if its still there.
Hmmm where should it appear in the tree? I don't see it, but then I don't see it on another site of mine which seems to be working. (this is v5.5.2.1 btw)
EDIT: just seen it in the other site, and it's not in the one that's not working!! How do I re-instate it?
EDIT 2: I just re-added it through Single Pages and everything is working again!!
You're a genius.. I've been tearing my hair out about this for hours now, thanks so much!
EDIT: just seen it in the other site, and it's not in the one that's not working!! How do I re-instate it?
EDIT 2: I just re-added it through Single Pages and everything is working again!!
You're a genius.. I've been tearing my hair out about this for hours now, thanks so much!
haha no problem.
Worked for me too. No idea how the download_file single page was deleted, but everyone's answer kept being on empty space in the site.php etc... glad to have it working again