Create albums and uploading images fails.

Hi,

I did 1.3.1.1 fresh install. When I go to admin page and try to create new album I get error:

Notice: class-album detected an invalid folder name: %2Ftest. in /www/zenphoto/www-root/zp-core/class-album.php on line 68

Zenphoto encountered an error
Error: The album named cannot be found.

Zenphoto encountered an error
Error: The album named cannot be found.

Zenphoto encountered an error
MySQL Query ( SELECT * FROM `zp_images` WHERE `albumid`= ) failed. MySQL returned the error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

It seems that album part of url in browser seems wrong after pressing OK in album creation dialog:

https://mydomain.com/zp-core/admin-edit.php?page=edit&album=%2Ftest

After all album is created. When I try to upload multiple images I get also erro:

p1010541.jpg (2.7MB) - IO Error

But if I try single file upload it works.

Comments

  • acrylian Administrator, Developer
    `%2F` is the escaped string of backslash `/`. Actually the backslash is not part of the name of a top level album (it would be for a sublevel one as that alwas includes its parent(s)). How is the album actually named?
  • Album was named as Test. So there was no any special chars like backslash. It does that for every album name. On albums page name seems to be ok.
  • This would appear to be a combination of a bug in the New Album handling and your file system not allowing the "%" character in a file name. Anyway, fix will be in the nightly build tonight--the %2f (slash) should not have been there!
  • Taking the latest version from svn fixed the first issue with creating album. (Nightly build didn't have the fix yet)

    How ever the second problem with uploadin multiple images still remains.

    Thanks for so quick response.
  • I don'w have any "%" characters in my album names. System is Debian Linux (Lenny). If I try to make folder from command lin for example "test%case" it works. So I think my file system accepts also "%" characters.
  • There was something it was not accepting, but no matter, the % should not have been there in the first place.

    What upload method are you using? What is the server file upload size limit?
  • I'm using the "multi file upload". Server file upload limit is set to 1000MB so it should not be that. The "http-browser single file upload" method works.
  • Where does that error show up?
  • Those errors are comming from the uploadify flash code which is provided by a third party. Does the upload work if you do only one file? I am sorry, but I really do not know what might cause that. Perhaps this (or similar posts) can help: http://www.uploadify.com/forum/viewtopic.php?f=7&t=41
  • Flash unloader won't work even with one file. Thanks for the link, I try to investigate what seems to cause this problem.
  • It seems that problem is somewhere in my admin https configuration. I have proxy that redirects admin http request to https. When I turned that off and tried with plain http it worked.
  • acrylian Administrator, Developer
    Does the uploadify site say anything about issues with https? Maybe that is something for its developer to fix.
  • I resolved problem with lazy way and made rules to keep upload page http and another pages https. I don't know how insecure it that but at least it works.

    I seems that it is some kind of feature of Flash and self signed certificates. http://www.uploadify.com/forum/viewtopic.php?f=3&t=44 Have somebody else got https and flash uploader work together?
  • With Safari https and uploadify works! :o
  • A little bit of Googling reveals that an HTTP error usually preceeds the IO Error. I found this topic (http://uploadify.com/forum/viewtopic.php?f=5&t=12) that yields a code snippet to help reveal what the HTTP error actually is. If you try that, you should have a much better idea of what's going wrong.
  • I tested the code and error message was:
    error IO: Error #2038: File I/O Error. URL: https://kuvat.souni.dy.fi/zp-core/admin-uploadify/uploader.php
Sign In or Register to comment.