Good afternoon
When I download photos to upload them to the website's gallery, this error appears:
An error has occurred.
0 Call to undefined function mime_content_type()
Can you help?
Error sending photos
- Benno
- Phoca Hero

- Posts: 10291
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: Error sending photos
Hi,
Which Phoca Gallery version do you use?
Which Joomla version do you use?
Which PHP version do you use?
Do you upload in front- or backend?
example.jpg or example.png or example.webp or what ever... (Phoca Gallery supports not all image mime types. Some needs to convert to common first...)
Kind regards,
Benno
Which Phoca Gallery version do you use?
Which Joomla version do you use?
Which PHP version do you use?
Do you upload in front- or backend?
Images with which mime type do you want to upload? This refers to the file name extension, e.g.,0 Call to undefined function mime_content_type()
example.jpg or example.png or example.webp or what ever... (Phoca Gallery supports not all image mime types. Some needs to convert to common first...)
Kind regards,
Benno
-
EduSantos
- Phoca Newbie

- Posts: 2
- Joined: 09 Aug 2026, 19:59
Re: Error sending photos
Benno,Benno wrote: 09 Aug 2026, 22:39 Hi,
Which Phoca Gallery version do you use?
Which Joomla version do you use?
Which PHP version do you use?
Do you upload in front- or backend?Images with which mime type do you want to upload? This refers to the file name extension, e.g.,0 Call to undefined function mime_content_type()
example.jpg or example.png or example.webp or what ever... (Phoca Gallery supports not all image mime types. Some needs to convert to common first...)
Kind regards,
Benno
Thanks for the reply.
The photos all have the .jpg extension.
Joomla version is 5.4.7.
Phoca Gallery version is 6.1.3.
PHP version is 8.2.32.
Eduardo Santos
- Jan
- Phoca Hero

- Posts: 49543
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error sending photos
Hi, can you enable debug mode to see on which line you get the error.
BTW this function should be enabled on standard webhostings, maybe you should ask your webhosting provider, why it is not enabled.
I will add check if the function exists or not but this will not solve the problem, in case, it will not exist, the false is returned so it will be not able to upload image.
Jan
BTW this function should be enabled on standard webhostings, maybe you should ask your webhosting provider, why it is not enabled.
I will add check if the function exists or not but this will not solve the problem, in case, it will not exist, the false is returned so it will be not able to upload image.
Jan
If you find Phoca extensions useful, please support the project