e2interactive forums » Report a Bug

Search:

Errors On Image Uploads

(12 posts)

  1. Thanks for the user / pass fix. I've made it to the file uploader but when i hit upload I get the following errors, can you shed any light as to what I am doing wrong? Thanks.

    malan.

    Notice: Undefined index: crop1 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 118

    Notice: Undefined index: crop2 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 119

    Notice: Undefined index: crop3 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 120

    Notice: Undefined index: crop4 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 121

    Notice: Undefined index: crop5 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 122

    Notice: Undefined index: crop6 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 123

    Notice: Undefined variable: crop4 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 124

    Notice: Undefined variable: crop5 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 124

    Notice: Undefined variable: crop6 in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 124

    Notice: Use of undefined constant php_SELF - assumed 'php_SELF' in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 206

    Notice: Undefined index: php_SELF in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 206

    Notice: Use of undefined constant php_SELF - assumed 'php_SELF' in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 211

    Notice: Undefined index: php_SELF in /home/.heebee/maland/pasadenarecords.net/gallery/uploader/index.php on line 211

    Posted 1 year ago #
  2. The folder where you are trying to upload to, is it set to CHMOD 777?

    Posted 1 year ago #
  3. What's your server php 4 or 5? Tell me a little about your server settings so I can see if it's something with the script or php version.

    Posted 1 year ago #
  4. I think I figured out what's happening, I made a couple of changes to a file for the upload section. Download this zip file here http://www.e2interactive.com/e2_photo_gallery/uploader_patch.zip .

    Save this 'index.php' file over the top of the 'index.php' file located in the uploader folder.

    Let me know if there is any more errors and will see what I can do from there.

    The latest dowload file on download page for the photo gallery has also been updated to reflect this fix.

    Posted 1 year ago #
  5. ZAP
    Member

    That doesn't seem to have fixed this for me. I got both the optimized and full downloads here today, and they both gave me the same errors as above on submit (and my large files are not being cropped or scaled either, although my thumbnails are). I reapplied the patch you link to above just in case it hadn't made it into the download files but that made no difference.

    The folders are CHMOD 777 (files are uploaded), and the server is Apache 1.3.33 with PHP 4.3.10.

    Very nice script...if I could only get it to work!

    Posted 1 year ago #
  6. The image uploader currently does not Scale the larger images. I did this because if someone resizes the images and preps them for the web and then the Uploader resizes them again, you'd have double compression. If you like this to be a feature, I'd be willing to look at doing it that way. Or I could make it an option.

    I mainly built the Uploader to upload and automatically create the thumbnails, but left the large image sizes to your liking. If enough poeple feel that they want it to resize the larger images also, I could add that in.

    Posted 1 year ago #
  7. ZAP
    Member

    Oh - I just assumed that the larger images would be resized to fit the display area. My mistake. I think that this would be a good idea, however. If the image is already less than or equal to the maximum size then you wouldn't need to recompress it, but if it's bigger then you would. You could set these values (and also the JPG compression percentage) in the config file. This would allow for Photoshop-free management of galleries by non-techie clients.

    To return to the original reason for this post, what might be causing the crop# errors on upload?

    Posted 1 year ago #
  8. I sent you an email with some things to try, to see if it fixed the error, I hope you got it.

    Posted 1 year ago #
  9. ZAP
    Member

    Doh! Sorry, but I think I saw it arrive this morning and I deleted it along with the usual fifteen tons of spam. Can you please resend it?

    Posted 1 year ago #
  10. yeah, I'll send it a little later, it's in my sent folder on my other computer.

    Posted 1 year ago #
  11. ZAP
    Member

    OK I got your email and tried the patch you sent, but it was actually the same as the one I'd already tried before.

    So I started looking more closely at the code and I figured out what the problem was: You're referencing $_POST vars that are unset. I guess whether or not you'd see this error depends on your error display setting. Anyway you can fix it by replacing lines 118-123 in uploader/index.php with:

    $crop1=isset($_POST['crop1']) ? $_POST['crop1'] : '';
    $crop2=isset($_POST['crop2']) ? $_POST['crop2'] : '';
    $crop3=isset($_POST['crop3']) ? $_POST['crop3'] : '';
    $crop4=isset($_POST['crop4']) ? $_POST['crop4'] : '';
    $crop5=isset($_POST['crop5']) ? $_POST['crop5'] : '';
    $crop6=isset($_POST['crop6']) ? $_POST['crop6'] : '';

    Also: I think that you should load the image folder locations from the config file for this script instead of making people type them in (I know that my clients do not generally understand relative paths, nor do they care to learn about them).

    Posted 1 year ago #
  12. Thanks for the help! I'll implement this.

    Understandable that some people might not understand the realative path and absolute path. I made it that way because if you had multiple galleries you could send the images to that one folder or another. But maybe I could have it read any folder that is located in the e2 photo gallery directory and they could just choose from the list of folders in a drop down.

    Again, thanks for the ideas and feedback.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.