No thumbs or Pictures

Hello everything was fine with my setup until I upgraded to 1.02b....

After upgrading , no thumbnails or images would show. I tried uploading new pics and then check to see on the web site and they weren't showing either but they were uploaded on the server correctly. I deleted everything, did a complete reinstall and still the same issue, setup went fine , connection to the DB is fine , I can upload , or edit albums , but not 1 single image is showing as a thumb or regular photo ?? Please help me

here is my php info regarding GD in case you need it :

GD

GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

here is my web site if you want to take a look

http://www.mattgalarneau.com/zenphoto
«1

Comments

  • trisweb Administrator
    You're running IIS aren't you? I know this bug...

    Change line 98 of i.php from:
    `$protocol = $_SERVER['HTTPS'] ? 'https' : 'http';`
    to:
    `$protocol = 'http';`

    (Even if you aren't on IIS, but please tell me your setup in any case so I can diagnose it better and fix this bug...)
  • yes i'm on IIS , t line of which file Tris ?

    Thanks for the quick response
  • ok found it
    i.php

    line 97
  • and it is working !!!

    Thank you Tris!
  • trisweb Administrator
    Sorry about that, glad you found it :) I updated my instruction for others.
  • Tris, I am experiencing the same issue, no thumbs, no picts, tried altering line 98 as in this thread, but no joy.

    Ideas?

    Pete
    www.kuhnfoto.com
  • trisweb Administrator
    Pete, I found your gallery and it seems to be working. Want to tell us how you fixed it so others can see if they have the same problem? Thanks!
  • abbey Member
    Guys looks like I have a similar problem. I have searched the forum all nite without any sucess. the installations was ok but the pictures and thumbs do not display. the link is http://www.zongoonline.com/gallery.

    i need help here. thanks
  • Are you sure that you changed your .htaccess file to reflect the directory where your gallery is?

    You need to change it from
    `RewriteBase /zp`
    to
    `RewriteBase /gallery`
  • abbey Member
    yes i have done that already.
    # !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
    RewriteBase /gallery
  • relee Member
    how do i edit the .htaccess file on my Mac?
  • relee Member
    I feel a bit in over my head. I have edited the .htaccess file. however I am still unable to view thumbnails or albums. Please advise!
  • relee Member
    I have the Rewrite Engine=On
    changed zp to zenphoto
    cache & albums =777

    ANy other suggestions?
  • relee Member
    While viewing i.php I do not see:
    Change line 98 of i.php from:
    $protocol = $_SERVER['HTTPS'] ? 'https' : 'http';
    to:
    $protocol = 'http';

    (Even if you aren't on IIS, but please tell me your setup in any case so I can diagnose it better and fix this bug...)

    I am not sure if i am on IIS or not...thanks for your help.
  • abbey Member
    Hi guys, i am still waiting for help. the pictures and thumbs do not display. the link is http://www.zongoonline.com/gallery.

    when i click on the thumbnail the picture does not show rather it shows the link http://www.zongoonline.com/gallery/bright/bright_21.jpg and when u click on the link the picture shows. i checked the path for that and it was http://www.zongoonline.com/gallery/albums/bright/bright_21.jpg

    i noticed that this had a folder called album

    i have changed the htaccess file but still it does not work.
    # !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
    RewriteBase /gallery
    i need help here. thanks
  • relee Member
    Because I am using a Windows-based Server I cannot change permissions in an ftp program. I have to go to my site control center interface and assign permissions to the folders there. I still cannot see my thumbnails but at least the folders albums and cache have the correct permisssions.
  • @abbey
    Not sure what you mean when you say:
    i noticed that this had a folder called album
    However, what I would suggest is try reinstalling ZenPhoto. Delete all your files (including the .htaccess) and then try to reinstall it. I was looking at your paths and all, and I can't figure out what's going on. It seems like something is going on (if you look at the HTML source you can see that it's trying to access a different path), but I can't figure it out exactly because I don't have access to your site.

    @relee
    That line 98 thing in i.php is no longer relevent as of ZenPhoto 1.0.3. I'm not too sure why yours isn't working. Do you have a url where I can see it?
  • @abbey
    WAIT!
    Somehow I've been able to recreate this problem. Let me see if I can figure this out.
  • I figured it out!!!!
    I had uninstalled WAMP then reinstalled it (because of some other thing that was going on). When it was reinstalled, I had the same error that you guys have.

    Now I know what the problem is. You don't have GD installed or enabled.

    The WIKI states:
    GD 2.0 or later (built in to PHP since version 4.3 or so, but you might need to recompile PHP or contact your host if it's not working).
    GD is the graphics library that ZenPhoto is based on. Normally, it should come already compiled in with your PHP executable, but as I found out, it's not always the fact.

    Here's how to enable GD2 in PHP:
    1) If you have access to your php.ini file...
    • Open it up in your favorite text editor and look for the following line (near the middle):
    `;extension=php_gd2.dll`
    change it to
    `extension=php_gd2.dll`
    (basically, remove the semi-colon in front)
    • Save the file and upload it back on the server and overwrite the old file.
    • Restart your server
    • That's it!

    2) If you don't have access to your php.ini file, you're most likely being hosted. Ask the system administrator to enable GD2 or to recompile PHP with GD2.
  • Here's also another blurb and more information from the PHP Manuals:
    To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.

    In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
  • relee Member
    GameDudeX=hero
    I previously spoke with host=crystal tech and they assured me GD was enabled. I will rehash this with them. Again, thank you for taking the time to work with us...and Abbey thanks for letting me bombard your post...i am SO anxious to work with this program...and i don't wanna have to go to flickr....
    www.re-lee.com
  • abbey Member
    Relee and GamedudeX. thanks a lot cos my gallery is working now....... i am so excited and i cant wait to start uploadin pictures.......
  • relee Member
    Abbey I am so Jel b/c I am still not up and running. I have a Windows-based Host is this a problem? My host is trying to convince me to use phpalbum.net....please don't make me change?! Thanks,
    Rebecca
  • relee Member
    Abbey? DO you know what solved the prob?
  • relee Member
    Here is what my host said: "You are not able to see the php.ini file for security reasons.
    However, I did place a GD test on your site.
    http://www.re-lee.com/gd_test.php

    The results you should see are as follows:

    array(9) {

    ["GD Version"]=>

    string(24) "bundled (2.0 compatible)"

    ["FreeType Support"]=>

    bool(false)

    ["T1Lib Support"]=>

    bool(false)

    ["GIF Read Support"]=>

    bool(true)

    ["GIF Create Support"]=>

    bool(false)

    ["JPG Support"]=>

    bool(false)

    ["PNG Support"]=>

    bool(true)

    ["WBMP Support"]=>

    bool(true)

    ["XBM Support"]=>

    bool(false)

    }

    See this link for more on this: http://us3.php.net/manual/en/function.gd-info.php"

    ANy ideas?
  • @relee
    If you have gd installed, it seems you might have a different problem. Can you give me your ZenPhoto gallery?
  • relee Member
    gladly....you mean the link
    www.re-lee.com/zenphoto
  • trisweb Administrator
    @relee
    You're using Microsoft IIS -- you can't use the mod_rewrite option with it, so you'll have to stick with regular URLs. Find that in config.php and set it to false.

    Your image generation is working great, as you can see from this URL to i.php I made by hand...
    http://www.re-lee.com/zenphoto/zen/i.php?a=our-first-house&i=DSCN0159.JPG&s=595
  • relee Member
    THANK YOU THANK YOU THANK YOU!!! I hope that this thread will work for others who experience the issues I had!!! I AM UP AND RUNNING!!! WOOO HOOOO!!! trisweb=rock star!
  • So lemme see if I get this straight...

    GameDudeX = hero
    trisweb = rock star!

    YaY! I finally have the super powers I've always wanted! And tristan... it seems you now have all the women, drugs, and fame that you ever could've wanted.

    =P
Sign In or Register to comment.