View Attachment page gives 404 error
-
Hi,
I am using Justwrite theme on my website http://www.hawww.in.
I noticd recently that view attachment page in the media section always gives 404 errors, though images can be seen alright in the posts. My webmaster is also full of 404 errors resulting from attachment pages.
e.g this is the attachment link for one of images http://hawww.in/4-indian-women-who-were-the-firsts-in-an-otherwise-male-dominated-field/image003-3/ and it is showing 404.
Can anyone help me on this please
-
I’ve got a similar problem. I can view the attachment page, but if I try to view the resource link itself (say,
wp-content/uploads/2015/03/myfile.doc) then it returns a 404 error. I have no idea why. Is this some sort of security feature built into the theme? I noticed blog post images don’t have “view image” or “save image” etc available either. I appreciate it but I need to let my visitors download a lead magnet–any way to selectively turn it off, if it is intentional?.htaccess and file permissions already checked; no modifications in the former, and set according to Codex recommendations in case of the latter.
The theme was not designed with a attachment file, it’s not required by wp.org.
If you want want just copy/paste single.php in the same folder and rename it to attachment.php
@the Barefoot Bookworm I don’t think .doc is a file you can view via attachment. You should use a download manager.
There is no security featured built into the theme. “view image” & “save image” can’t be disabled by the theme, it’s all on your end…
Thanks, I wanted to confirm that it’s not a theme issue. Downloads are exactly what I’d like to do and typically, WordPress sites/browsers open up .doc, .pdf, etc files for viewing within the browser. Except the direct file path is giving a 404 error.
By the way, surprised to hear this theme has no attachment page template–my site is able to display attachment pages without any problems using the same template as a single blog post. I didn’t change anything.
Anything related to downloads isn’t handled by the theme. In your case it might have something to do with htaccess, setting the wrong chmod in a ftp client, or any security plugin that was set up incorrectly.
Please try contacting your web hosting provider, they can provide more info on this issue.
The topic ‘View Attachment page gives 404 error’ is closed to new replies.
