Error sending photos

Phoca Gallery - image gallery extension
EduSantos
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 09 Aug 2026, 19:59

Error sending photos

Post by EduSantos »

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?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 10291
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Error sending photos

Post by Benno »

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?
0 Call to undefined function mime_content_type()
Images with which mime type do you want to upload? This refers to the file name extension, e.g.,
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
Phoca Newbie
Posts: 2
Joined: 09 Aug 2026, 19:59

Re: Error sending photos

Post by EduSantos »

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?
0 Call to undefined function mime_content_type()
Images with which mime type do you want to upload? This refers to the file name extension, e.g.,
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
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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49543
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error sending photos

Post by Jan »

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. :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply