Viewing 4 replies - 1 through 4 (of 4 total)
  • The Barefoot Bookworm

    (@the-barefoot-bookworm)

    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.

    Theme Author acosmin

    (@acosmin)

    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…

    The Barefoot Bookworm

    (@the-barefoot-bookworm)

    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.

    Theme Author acosmin

    (@acosmin)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘View Attachment page gives 404 error’ is closed to new replies.