Photo upload problem

Hi!

When trying to upload photos (regular photos module) I get to see a preview on the website but it says File upload failed.


When I check the server, I see the photo was indeed uploaded to modules/boonex/photos/data/files.


When I check the error log, I see this:

 

[07-Dec-2015 14:42:56 America/Mexico_City] PHP Warning:  filesize(): stat failed for /home2/username/public_html/modules/boonex/photos/data/files/9_t.jpg in /home2/username/public_html/modules/boonex/photos/classes/BxPhotosModule.php on line 76
[07-Dec-2015 14:42:56 America/Mexico_City] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home2/username/public_html/modules/boonex/photos/classes/BxPhotosModule.php:76) in /home2/username/public_html/modules/boonex/photos/classes/BxPhotosModule.php on line 76
[07-Dec-2015 14:42:56 America/Mexico_City] PHP Warning:  readfile(/home2/username/public_html/modules/boonex/photos/data/files/9_t.jpg): failed to open stream: No such file or directory in /home2/username/public_html/modules/boonex/photos/classes/BxPhotosModule.php on line 77

 

(username being my username)

Could anybody please point me where everything's going wrong? It's a new test install.

Thank you!

Quote · 7 Dec 2015

Hi. This tells me that it could be a permission issue ie. the server can rights to upload the file but then fails in reading it.

 

This could happen if you're using different permissions (user/group) for the Webserver than for the "user" that actually owns the public_html directory and sub-directories.

 

Do you use anything like mod_php, mod_fcgi, mod_fpm ? any of those can user different credentials to access your files and directories than the actual web server owner.

Quote · 8 Dec 2015

Hi,

 

afaik the server doesn't use any of that (I'm on a reseller). Does public_html need to be CHMOD to 0755, by any chance? Everything else note-worthy is 0755.

 

Thanks for taking the time :)

Quote · 8 Dec 2015

Try to check your hosting requirements:

Admin panel > Tools > Host Tools > Audit

It maybe you have no exif or fileinfo php extensions.

Rules → http://www.boonex.com/terms
Quote · 14 Dec 2015
 
 
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.