Results 1 to 8 of 8

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

  1. #1
    Junior Member ashan-b's Avatar
    Join Date
    Mar 2011
    Posts
    17
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Rep Power
    0

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

    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?
    Last edited by ashan-b; 27-07-12 at 08:00.

  2. #2
    Senior Member something else's Avatar
    Join Date
    Feb 2008
    Location
    if($something){echo 'Status code 404'; }else{ echo 'coding-talk.com';}
    Posts
    1,818
    Thanks
    209
    Thanked 447 Times in 202 Posts
    Rep Power
    0

    Default

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

    [Only registered and activated users can see links. Click Here To Register...]


  3. #3
    Senior Member
    Join Date
    Jun 2006
    Posts
    1,096
    Thanks
    2
    Thanked 75 Times in 42 Posts
    Rep Power
    0

    Default

    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?

  4. The Following User Says Thank You to amylee For This Useful Post:

    ashan-b (14-07-11)

  5. #4
    Senior Member something else's Avatar
    Join Date
    Feb 2008
    Location
    if($something){echo 'Status code 404'; }else{ echo 'coding-talk.com';}
    Posts
    1,818
    Thanks
    209
    Thanked 447 Times in 202 Posts
    Rep Power
    0

    Default

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

    [Only registered and activated users can see links. Click Here To Register...]


  6. The Following User Says Thank You to something else For This Useful Post:

    ashan-b (14-07-11)

  7. #5
    Junior Member ashan-b's Avatar
    Join Date
    Mar 2011
    Posts
    17
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

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

    Added after 3 minutes:

    Quote Originally Posted by amylee [Only registered and activated users can see links. Click Here To Register...]
    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.
    Last edited by ashan-b; 27-07-12 at 07:57.

  8. #6
    Super Moderator subzero's Avatar
    Join Date
    Mar 2006
    Location
    Your Screen.
    Posts
    3,971
    Thanks
    442
    Thanked 379 Times in 180 Posts
    Blog Entries
    7
    Rep Power
    0

    Default

    Open .htaccess

    Place this is there

    Code:
    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: [Only registered and activated users can see links. Click Here To Register...]
    Visit: [Only registered and activated users can see links. Click Here To Register...]
    _______
    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...
    _______
    Info & Tips
    php.net
    w3schools.com

  9. The Following User Says Thank You to subzero For This Useful Post:

    ashan-b (14-07-11)

  10. #7
    Senior Member
    Join Date
    Jul 2008
    Posts
    364
    Thanks
    124
    Thanked 32 Times in 31 Posts
    Rep Power
    0

    Default

    You missed adding
    Code:
    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

  11. The Following User Says Thank You to morse For This Useful Post:

    ashan-b (14-07-11)

  12. #8
    Junior Member
    Join Date
    Oct 2007
    Location
    Bucharestii
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    i have the same problem ( :

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. .htaccess problem
    By blockerhead in forum Domains - Hosting - Servers
    Replies: 2
    Last Post: 10-01-10, 16:52
  2. Problem With Gallery
    By mobilmega in forum Site / Script testing and error fixing
    Replies: 9
    Last Post: 24-08-09, 18:37
  3. Gallery problem
    By Vicelord in forum Coding Forum
    Replies: 5
    Last Post: 15-04-09, 13:30
  4. Gallery Upload Problem
    By flaremobile in forum Coding Forum
    Replies: 2
    Last Post: 01-05-08, 15:28
  5. Gallery Problem
    By SpiderWap in forum Coding Forum
    Replies: 2
    Last Post: 12-03-08, 07:07

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19