Any idea why I only get a blank page after I try to save an account icon or picture? I see the images appear in the upload folder (appearing like asd0034eo2k34o2k43o2k134.jpg) but that is all.
AccountPictures was working great at first in my test directory, but then I did a fresh install (moving to a root directory, and new database, vanilla install, and new AccountPictures install) and I keep getting this error now when I try to upload account icons and pictures:
Warning: move_uploaded_file(.../uploads/AccountPictures/4cd353e1b3bee4df59c3db62a3252b22.gif): failed to open stream: No such file or directory in .../library/Framework/Framework.Class.Uploader.php on line 90
Warning: move_uploaded_file(): Unable to move '/var/tmp/phpiLBs7O' to '.../uploads/AccountPictures/4cd353e1b3bee4df59c3db62a3252b22.gif' in .../library/Framework/Framework.Class.Uploader.php on line 90
I made sure I had permissions set to 777 and even created the AccountPictures folder within uploads to try to help it. As for line 90 it is something in the upload code where it assigns a filename or something. I don't know PHP very well.
Any ideas?
You should check again the path and the permission. That really looks like a permission problem. About the name, it is changed on purpose, that shouldn't be the problem.
And the line 90 of the uploader class is this line : if (!move_uploaded_file($_FILES[$InputName]['tmp_name'], $NewFilePath))
$this->Context->WarningCollector->Add('Failed to upload the file: '.$FileName); This mean that $_FILES[$InputName]['tmp_name'] (/var/tmp/phpiLBs7O) is not a valid uploaded file or that he can't be moved (permissions problem or wrong path).
I would also like to see PNGs supported. Otherwise the transparent color of those is set to black. At least my test resulted in this. The rest of the plugin is just great!
EDIT: Just realised that the Internet Explorer is messing up transparent PNGs anyway. No need for PNG support from my side anymore. Thanks for the usefull extension, Jazzman!
EDIT #2: Sorry for the mess. When I upload a GIF with a transparent background, the background is set to black. Bug? And the picture is overlapping a bit:
Some problems were encountered An error occurred while attempting to copy the source image "talk/uploads/pics4cd353e1b3bee4df59c3db62a3252b22.gif". Your version of php (4.4.1) may not have gif support.
And I definitely haev gif support. The image gets loaded to the right spot and everything, it just spits out this error and doesn't set the icon. The folder has 777 access and everything. Any ideas, this is driving me nuts.
You might want to add in validation incase somebody enters in a URL instead of a file location. Someone on my forum added a URL of a picture from facebook, which didn't work.
Alex
Is this following functionality intended?
Logged in as an admin user I would like to upload pictures for the users (In case they uploaded something I don't like to see in my forum;)
But if I use the link "Account Pictures" in the users profil I get redirected to my own profil.
Thanks
Jan Doe
I have got this great extension too. It seems to work well except that icons in discussions are not always resized or cropped as set in the configuration page, and if they are then i can see a white block below it extending over the role description line. Do you know what I can do to avoid that ?
Is it possible to have the option of uploading an image from a local drive and from a link on one page? The way it is now is a little bit confusing for people who aren't accustomed with Vanilla.
The "problem" is actually theme-related. It's quite hard to have variable dimensions for icons. Maybe I'll add some theme files to the next release although I still think there should be a better solution
Instead of overriding vanilla.css, you add an image (via delegate?) right before the name. Maybe that requires a new delegate. If the image is larger than 32x32 and top left position is the same, you don't even need to worry about removing the background image unless it's a transparent thingy. Or make default background icons pure white squares.
OK, i have created the "uploads/AccountPictures" folder and chmod 777 on both folders. When i try to upload a pic, i get this error:
Some problems were encountered
You are not allowed to upload (avatar) the requested file type: application/octet-stream
How do i correct this?
Comments
About the name, it is changed on purpose, that shouldn't be the problem.
And the line 90 of the uploader class is this line :
if (!move_uploaded_file($_FILES[$InputName]['tmp_name'], $NewFilePath)) $this->Context->WarningCollector->Add('Failed to upload the file: '.$FileName);
This mean that $_FILES[$InputName]['tmp_name'] (/var/tmp/phpiLBs7O) is not a valid uploaded file or that he can't be moved (permissions problem or wrong path).
I have a simple question - What image types are compatible with this extension?
My follow-up question would be - Why is there this restriction?
I have only used PNG files so far.
EDIT: Just realised that the Internet Explorer is messing up transparent PNGs anyway. No need for PNG support from my side anymore. Thanks for the usefull extension, Jazzman!
EDIT #2: Sorry for the mess. When I upload a GIF with a transparent background, the background is set to black. Bug? And the picture is overlapping a bit:
Some problems were encountered
An error occurred while attempting to copy the source image "talk/uploads/pics4cd353e1b3bee4df59c3db62a3252b22.gif". Your version of php (4.4.1) may not have gif support.
And I definitely haev gif support. The image gets loaded to the right spot and everything, it just spits out this error and doesn't set the icon. The folder has 777 access and everything. Any ideas, this is driving me nuts.