• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Cannot view image

Status
Not open for further replies.
Hard to tell, PHP can read the image but you can't. Most likely a bad htaccess editing or you have a wrong permission mask in the images dir.
 
Again here is the htaccess, which looks ok to me:
Code:
# Disable server signature
#ServerSignature Off
 
# Disable directory listing (-indexes), Multiviews (-MultiViews) and enable Follow system links (+FollowSymLinks)
Options -Indexes
Options -MultiViews
Options +FollowSymLinks
 
# Turn on mod_rewrite
RewriteEngine On
 
# If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
# You will also have to change the path to reflect the path to your Chevereto installation
# RewriteBase /
 
# The /api rewrite
RewriteRule ^img2/([a-zA-Z0-9_-]+\.)(jpg|png|gif)$ img2/old/$1$2 [L] #legacy images
RewriteRule ^img2/thumbs/([a-zA-Z0-9_-]+\.)(jpg|png|gif)$ img2/old/$1th.$2 [L] #legacy thumbs
RewriteRule ^api$ api.php [L]
 
# If you want to have your own fancy "image not found" image remove the "#" from RewriteCond and RewriteRule lines
# Make sure to apply the correct paths to reflect your current installation
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/system/img/404.gif [NC,L]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.([a-z]{1,4})$ [NC]
RewriteRule . index.php [L]

And both img2 and img2/thumbs are chmod to 777

EDIT: I've changed the file renaming setting in config.php to see if maybe this is the issue and it seems not. When set as original the uploads seem to work, upload from pc and remote, when setting to random, which I want, upload from pc works but cannot view the image still, from remote nothing it just hangs forever.
 
RewriteRule images/.+\.(gif|jpe?g|png|bmp) content/system/img/404.gif [NC,L]

in your htaccess images is your not your directory so change images to img2
RewriteRule img2/.+\.(gif|jpe?g|png|bmp) content/system/img/404.gif [NC,L]

If that does not fix it then, i guess your server is having some things blocked or your config is wrong.
 
Ok, it's now working.

If you want these in your htaccess for any reason, then you will need to ask Rodolfo for help.

It is now working and i have removed these 2 lines, ask Rodolfo if he can help you as i do not see why you have these lines in the first place.

It was your;

RewriteRule ^img2/([a-zA-Z0-9_-]+\.)(jpg|png|gif)$ img2/old/$1$2 [L] #legacy images
RewriteRule ^img2/thumbs/([a-zA-Z0-9_-]+\.)(jpg|png|gif)$ img2/old/$1th.$2 [L] #legacy thumbs
 
Status
Not open for further replies.
Back
Top