e2interactive forums » Report a Bug

Search:

Can upload pictures, but can't view in gallery

(7 posts)
  • Started 2 months ago by sabrehagen
  • Latest reply from sabrehagen

  1. sabrehagen
    Member

    Hi,

    I recently downloaded e2's gallery and installed it on my server. I want to leave the folder structure exactly as it is from when it is installed.

    I have the uploader working successfully, but the gallery will not display the images I have uploaded

    When I edit the config.php file, do I put the images folder as 'uploader/images'? (given that the folder name I provided to the uploader is to store this images in is "images") This is the folder where the images are stored after they are uploaded. I have put this path in the config.php file already in the root folder, but the gallery will not display my images.

    Below are the links to my gallery, uploader, then a transcript of my config.php file.

    http://redbook.no-ip.org:6731/galleries/sabrehagen@ozemail.com.au/Milky's%2018th/

    http://redbook.no-ip.org:6731/galleries/sabrehagen@ozemail.com.au/Milky's%2018th/uploader/

    <?php
    //Define the folder where your photos will be placed on you server.
    //Relative to the path you place the galery index.php
    $gallerypath="uploader/images"; //EX. images or ../gallery/images no trailing slash needed
    $thumbpath="uploader/images/thumbs"; //EX. images or ../gallery/images no trailing slash needed
    $transitionspeed="500"; //How fast you want the animations to render
    $fadespeed="300"; //How fast you want the photos to fade in and out
    $users[0]="username"; //Username for accessing image uploader
    $passw[0]="password"; //Password to access image uploader
    ?>

    Thankyou for all your help, and please treat my webserver with respect :)

    sabrehagen

    Posted 2 months ago #
  2. First you can't have the thumbs folder in the images folder.

    The $gallerypath needs to be relative to the index.php file and same for the $thumbpath.

    I'd recommend going with the default setting for the gallery it makes it a lot less complicated. When you use the uploader with the default set up for the images and imagethumbs folder you'd use a relative path to upload the photos to your images and imagesthumb folders. Example: ../images/ and ../imagethumbs/

    Posted 2 months ago #
  3. sabrehagen
    Member

    OK, I tried your changes and I seem to have got a new type of error.

    Warning: getimagesize(images/thumbs) [function.getimagesize]: failed to open stream: Permission denied in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 105

    Is this because the gallery does not have permission to view the files I uploaded? If so, how do I chmod the files to 777 if I have them installed on an apache server running on windows xp?

    Thank you VERY much again :)

    sabrehagen

    Posted 2 months ago #
  4. It kind of looks like your server doesn't like to read the IPTC data of the images. Check out what this guy did to fix the problem.

    http://www.e2interactive.com/blog/forums/topic/126?replies=4

    He's talking about modifying the getfolders.php file part of the script

    Posted 2 months ago #
  5. sabrehagen
    Member

    He says:

    "I've corrected the script. I've changed every IPTC APP13 reference for APP0. Also i've corrected every array referencing. Now it works fine"

    Is this as simple as doing a 'replace' in notepad whereby I replace the string "APP13" with "APP0"? Also, when he says "i've corrected every array referencing" do you know which array he is referring to and how he corrected it?

    __________________________________________________________________

    Update:

    I did a replace on the getfolders.php file to replace APP13 with APP0 and now the code generates these errors:

    Notice: Use of undefined constant sizetext - assumed 'sizetext' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 106

    Notice: Undefined index: APP0 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 107

    Notice: Undefined index: APP0 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 109

    Notice: Use of undefined constant name - assumed 'name' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 118

    Minimalistic Light Gray Design Dark Gray Design Black Design (E)2 Design Show IPTC Info Toggle Thumbnails

    Notice: Use of undefined constant sizetext - assumed 'sizetext' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 178

    Notice: Undefined index: APP0 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 179

    Notice: Undefined index: APP0 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 181

    Notice: Use of undefined constant name - assumed 'name' in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\galleries\gallerytemplate\getfolders.php on line 190

    It looks like a) you havn't defined your constants and b) the language is very strict about declaring all constants/variables. Is there a way to declare these constants so these errors don't occur?

    Also, is it possible for me to mimic your current server setup so that I can get this working?

    Posted 2 months ago #
  6. sabrehagen
    Member

    Hi, i've been waiting for your response for 2 days, is it possible you could help me clear up this issue? Thanks.

    Posted 2 months ago #
  7. sabrehagen
    Member

    thank you for your minor help, but as you have not resolved my problem, i have decided to use smooth gallery instead

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.