I can't see pix in gallery- .htaccess problem

Started on the old forum in July 2011 · view the original in the archive · old links redirect here

#dcms #htaccess

7 replies · 925 views · started 15 years ago · 1 min read

6 participants
ashan-b Junior · 17 posts #1

Hi I can't see images in my photo gallery. I have .htaccess in that folder. But I can't remove it because then it shows me "page not found". Here is the .htaccess file. Plz help me guys.

Any ideas?

something else Fellow · 2,296 posts #2

whats on your img.php ? is there an error on it? 😛

amylee Principal · 1,092 posts #3

from my experience usually if you cant see images common problem is down to chmod/chown issues, so check if the folder is the same owner as the user which runs your apache process ( usually www-data or apache) or that the folder where your pics are uploaded to are chmod'd to 777 blah blah

also by just by quick looking cant be assed downloaded that file, i noticed a space in between here "RewriteRule ^([0-9])/([0-9])/ index.php?id_user=$1&id_gallery=$2&acth=user_galle ry [L,QSA] "

is that intentional?

something else Fellow · 2,296 posts #4

can we see your /sys/inc/ folder also as it has all functions in it 🙂

ashan-b Junior · 17 posts #5

I have attached the sys/inc folder. Thanks for your support.

Added after 3 minutes:

amylee wrote: from my experience usually if you cant see images common problem is down to chmod/chown issues, so check if the folder is the same owner as the user which runs your apache process ( usually www-data or apache) or that the folder where your pics are uploaded to are chmod'd to 777 blah blah

also by just by quick looking cant be assed downloaded that file, i noticed a space in between here "RewriteRule ^([0-9])/([0-9])/ index.php?id_user=$1&id_gallery=$2&acth=user_galle ry [L,QSA] "

is that intentional?

Yeah. I have check them both. Chmod is 777 & space is intentional.😕

subzero Super moderator Fellow · 3,954 posts #6

Open .htaccess

Place this is there

AddType image/gif .gif .GIF 
AddType image/ief .ief 
AddType image/jpeg .jpeg .jpg .jpe .JPG 
AddType image/tiff .tiff .tif

Your server didn't or failed to load imei types so your fixed by that code.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

morse Senior · 364 posts #7

You missed adding

header ("Content-type: image/jpeg");

in img.php, add it and your problem will be solved. Your server thinks that img.php is an html file since the content type header was missing.

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

tzapone Junior · 30 posts #8

i have the same problem ( :

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close