Problems with Zen and Xampp under Windows

Hi.

I have XAMPP installed under Windows XP to develop my websites and for testing.
Now I want to test ZenPhoto for my website and installed it. It worked all fine.

But now I have add some images and I can´t see them. The gallery is public without password, I have recreate the cache for the pictures, but I can´t see them anyway if logged in or not.
I see the gallery and instead of the thumbnails there are only the pictures name (html alt-tag I think) and when I click on the gallery or the pictures-name I get an error message from apache, that the url is not found.

When I look into the cache folder, there are no thumbnail pictures available. It must be a problem with the thumbnail creation but I don´t know which one. It´s windows, apache has permission to the cache-folder.
I test a other gallery before and it worked fine (created thumbnails).

Has someone any suggestions for me?
Thanks!

Comments

  • The most common cause of a failure to generate thumbnails is having the main image too large for the memory allocated to PHP. You should also check the servers CGI error log to see if anything there will provided a clue.
  • uk81 Member
    hmm ... I tested now and it does not work also with a 144kb File and 7kb File!
    I think the size is not the problem at the moment.

    But I also found nothing in the apaches error log.
    The only error I get is a "file does not exist" error when try to accessing the gallery:
    C:/Programme/Xampp/htdocs/domainname/zend/galleryname, referer: ... (to the cache-images.php)

    That´s all ...
  • This could be a problem with mod_rewrite not working. Try reseting it on the admin gallery options tab.
  • uk81 Member
    ahhhh ... :)
    it worked ... you are right. It was a problem with the mod_rewrite. I think the part of the script to create the thumbnails also use mod_rewrite to locate the thumbnail folder?
    When mod_rewrite does not work properly it can´t create thumbnails in the correct folder.

    Very good.
    But how I can use mod_rewrite? Or how I can check what´s the problem and how to fix it to use mod_rewrite (because I use the CodeIgniter PHP lightweight Framework and it´s use also search engine friendly URLs (via mod_rewrite). This also works with XAMPP on my developer notebook.
    Maybe I have set something wrong in the options tabs? But if I saw it correctly I can only activate or deactivate mod_rewrite. Or can I set some other options?

    [edit]
    I read a post a few hours ago (iirc) and there was something explained about mod_rewrite in the .htaccess file!?
    But I think it was a older version (1.06 ...!?).
  • mod_rewrite is just on or off. You will have to find out why the rewrite engine is not working on your server. Perhaps it is not enabled or the server is not appache? See also: http://www.zenphoto.org/2007/12/troubleshooting-zenphoto/#5
  • uk81 Member
    Hej, thanks for the fast and appropriate help.
    It really (I can´t believe it) was the mod_rewrite not enabled.

    I really thought the other things (other gallery and the lightweight php framework codeigniter) uses also mod_rewrite, but they don´t.
    It was not loaded. I take a look at the phpinfo() and it was not listed.

    Thanks for your link.
    A note to the troubleshooting page: it would be nice if someone can add some sentences to apache like this:
    "When the apache module mod_rewrite is not loaded, you can´t use mod_rewrite within your ZenPhoto configuration. Via phpinfo() you can look, if mod_rewrite is listed as loaded module. If is not, you can load it by open the httpd.conf of your apache and uncomment (delete the leading #) or add this line:
    LoadModule rewrite_module modules/mod_rewrite.so"

    Thanks! :)
  • We will add the note to the trouble shooting page.
Sign In or Register to comment.