Incorrect saving a lead with avatar.

hello

Mautic installed on your own hosting.

Incorrect saving a lead with avatar.



When saving a lead with an avatar, log says:

Quote:
[2015-07-27 13:49:58] mautic.CRITICAL: Uncaught PHP Exception LogicException: "Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?)" at /home/..../public_html/mautic/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php line 127 {"exception":"[object] (LogicException(code: 0): Unable to guess the mime type as no guessers are available (Did you enable the php_fileinfo extension?) at /home/..../public_html/mautic/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php:127)"} []

After the power is turned on php_fileinfo save still not working
Quote:
[2015-07-27 14:41:12] mautic.CRITICAL: Uncaught PHP Exception SymfonyComponentHttpFoundationFileExceptionFileException: "Unable to create the "/media/images/lead_avatars" directory" at /home/rsw63763/public_html/mautic/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/File.php line 134 {"exception":"[object] (Symfony\Component\HttpFoundation\File\Exception\FileException(code: 0): Unable to create the "/media/images/lead_avatars" directory at /home/rsw63763/public_html/mautic/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/File.php:134)"} []

This message saying that the application could not create a directory to store avatars.
After you create this directory manually, the application will further pay the same mistake, and therefore it is impossible for me to accurately determine the cause of such behavior.

hello
Mautic installed on your own hosting.
Incorrect saving a lead with avatar.

When saving a lead with an avatar, log says:

After the power is turned on php_fileinfo save still not working

This message saying that the application could not create a directory to store avatars.
After you create this directory manually, the application will further pay the same mistake, and therefore it is impossible for me to accurately determine the cause of such behavior.

Thank you for the clear and concise post! It makes it much easier to read the problem and try to help solve it. Based on the last part of your post I think the problem is in the file ownership. Can you verify that the /media/images/lead_avatars directory is correctly owned by the web or apache user? Typically on a VPS system this is www:data. Most of the time when the ownership is not correct the system cannot properly write to the folder (even if you’ve given the forbidden 777 access). :slight_smile:

If this doesn’t work just update this thread and hopefully we’ll have some other ideas to try.

Hope it helps!
David

David, thank you for responding to my call.
Changing permissions to 777 did not help.
I do not have a VPS system. I have a regular web hosting. Maybe there is a problem

David, thank you for responding to my ticket.
Changing permissions to 777 did not help.
I do not have a VPS system. I have a regular web hosting. Maybe there is a problem
Slawek

Hey :slight_smile:

You should absolutely NOT use 777 :wink: That’s always dangerous. Rather than changing permissions we need to make sure that the web user is the owner of the directory. How was Mautic installed? Did you upload the files directly?

Thanks!
David

Hey
Mautic was installed by Softacolous

Slawek