• Hello,

    I’ve tried searching with Google but I can’t find a solution to this problem.

    I am using Eazyest Gallery 0.1.3 on a fresh installation of WordPress 4.5.1

    I have run into a problem with the attachment page. The image doesn’t show. The attachment page is looking for the image here:

    /wp-content/uploads/2010-2/july/…

    but my directory structure is

    /wp-content/uploads/gallery/2010-2/july/…

    So the directory named ‘gallery’ is missing in the attachment page’s <img src="">.

    I don’t know if I am missing an option in the admin panel to fix this or if it is a problem with the code. Any suggestions on how to get the attachment page working are appreciated.

    Thanks

    https://www.ads-software.com/plugins/eazyest-gallery/

Viewing 1 replies (of 1 total)
  • I had the same problem and I’ve got the feeling the developer abandoned the project.

    I don’t know how to fix the missing ‘gallery’ folder in the path, but I did came up with a work around.

    Add the following lines to you .htaccess file:

    <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{HTTP_HOST} ^yourdomain\.com$
      RewriteRule ^wp-content/uploads/(.*)$ https://yourdomain.com/wp-content/uploads/gallery/$1 [NC,L]
    </IfModule>

    Replace “yourdomain” with you domain name and don’t forget to check the domain extension. I used .com in the example. If your uploads directory is not located in wp-content, then you’ll need to change that to according to your situation.

    BTW. I use this same trick for offline development. If any image(file) is not found, it will look for it at the location as stated in the rewrit erule.

Viewing 1 replies (of 1 total)
  • The topic ‘Attachment page image problem’ is closed to new replies.