Furry stuff, oekaki stuff, and other stuff.
You are not logged in.
Pages: 1
I just installed Wax Poteto 5.5.9 and one of my members uploaded a picture onto the board, but when they tried to retouch it, it gave them an error message and the picture didn't show up. I tried to upload myself to see if it was an isolated incident, but alas it wasn't, and I received the same message the other member got which is:
Warning: getimagesize(pictures/3.png): failed to open stream: No such file or directory in /home/teaoe730/public_html/oekaki/oekaki/noteBBS.php on line 37
I tried setting my whole oekaki folder to 777 in case it was a CHMOD problem, but it said there was a bad file descripter for some files and they stayed 644 (announce.php, etc)...so I'm lost! Please help me :3!
Offline
Let me guess, the uploaded picture was a JPEG, right? If not, I'm not sure why getimagesize() would return this error, since it's supposed to run on the same security level as PHP, and thus, it should have no problem reading or writing to files made by PHP.
I'm afraid there's still some limitations in Wax Poteto that are leftover from OekakiPoteto. For one thing, only PNG images are supported for pictures, and JPEGs are only used for thumbnails. Wax gets around this issue by showing a JPEG upload as a thumbnail. It works, but it's a bad hack, so unlike Wacintaki, not all of the board's features will work with uploaded JPEGs. True JPEG/GIF/PNG support is something I plan to add later.
So, at the moment, you can only upload JPEG files, and only if JPEG support (thumbnails) are turned on. To retouch uploaded images, they must be PNG files.
As for CHMODing files...
There's a lot of things you can't do to files created by PHP when using an FTP client. On most servers, FTP and PHP run on different security groups, so attempting to CHMOD a file in the pictures folder will usually give you a "permission denied" error. "Bad file descriptor" is a more generic way of putting it, if the server doesn't even want to tell you it's a security-related issue. The only way to solve this is to download the file in question (such as announce.php), delete it from the server, upload it, then CHMOD it to 664, so it is writable to both FTP and PHP. I wouldn't recommend doing this with things in the pictures folder, though.
Offline
That happens to me when I upload jpg/jpeg files. Try a png. I can't retouch anyway, but I don't get errors with png.
If you can't retouch PNGs, go to wwwJava.com and get the latest distribution. Old versions of Java don't import PNGs correctly.
Offline
Pages: 1