Avatars Upload and "Set As Avatar" Broken.

The action button "Set As Avatar" does nothing but transfer you to the avatar page.  There nothing happens except for the choice to pick a stock avatar or upload.  When you try to upload an avatar it just says "Image upload failed".  A couple screenshots attached. FYI all permissions are enabled so that is not it.  Either something petty I am missing or something that stopped working with the 7.1.4. update.

avatar1.png · 36.2K · 146 views
avatar2.png · 3.2K · 163 views
Quote · 22 Dec 2013

Follow up after turning on error reporting I get this..

 

Warning: move_uploaded_file(/home/www/mysite.com/modules/boonex/avatar/data/tmp/1.jpg): failed to open stream: No such file or directory in /home/www/mysite.com/modules/boonex/avatar/classes/BxAvaModule.php on line 821


I have checked the filepath and there is no directory as is says to /avatar/data/tmp/ .  All avatars are in avatars/images/data/.  This seems like a bug in the avatar module directing to the wrong file path.  I think I can fix it given the info but this seems like a rather big screw up whether it be my fault some how or what but I've never messed with the avatar module file path.  Surely there is a ticket for this already I don't know about looking those up very well yet.  Seems like this would be messed up since 7.1.4 unless something I've done caused this.


I dont know how to fix it based on the error..  Line 821 just says if (move_uploaded_file($_FILES['image']['tmp_name'], $sImagePath))  rather than a true path I could change.

Quote · 22 Dec 2013

I just added the folder "tmp" and its working fine now.  No idea how the folder vanished when I have never touched it.  Everyone elses avatars still work and saved to a different folder. The file path and folder it saves to is different than it used to be. None the less its fixed. Hope I did not waste anyone's time.

Quote · 22 Dec 2013

 

Everyone elses avatars still work and saved to a different folder. The file path and folder it saves to is different than it used to be.


No it is not different. The tmp folder is only used during the upload process. Once the uploaded image has been cropped it is moved to the normal images folder.

The tmp folder has always existed in every version of dolphin.

Apparently there is a bug in the permissions tab in host tools. It checks for the proper permissions, but does not report missing folders.

https://www.deanbassett.com
Quote · 22 Dec 2013

Yeah not sure what happened Deano. Something lost during the FTP process maybe.  Everything is good now though so Im content for now. Thanks for your response.

Quote · 22 Dec 2013

Some FTP clients have been known to skip empty folders, so it's possible.

https://www.deanbassett.com
Quote · 23 Dec 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.