Envira: "Fatal error: mb_detect_encoding"

Hi Team, got in troubles after updating the website.

PHP version is 5.6 and got the following error:

Fatal error: Call to undefined function mb_detect_encoding() in /home/rodrigor/public_html/ramblas.cl/wordp/wp-content/plugins/envira-gallery/src/Functions/gallery.php on line 612

I have:

  • Deleted the plugin
  • Deleted the galleries
  • Created new galleries
  • Updated the php version to 7.1
  • Deleted Child Theme

Nothing seems to work:

  • PHP 7.1 sends a huge list of errors, so went back to 5.6
  • New galleries continue with the problem

Put a page with one gallery and nothing else:

https://ramblas.cl/testing/

Thanks for any help.

Hi Rodrigo,

The mb_detect_encoding error is usually caused by the lack of GD library installation. I am not sure if your case applies here but I do suggest that you contact your hosting service provider and ask them to install the latest version of the GD library for PHP.

That is something the hosting service provider should do and you most probably do not have permission to install the GD library.

Finally, please make sure that you update the Envira Gallery to the latest supported version which is mentioned here:

Thank you.

Hi Christopher,
Thanks for your reply.
My PhP installation has the GD library installed and the envira plugin is the latest one supported.

The galleries where working before updating.

Hi @RowrRigo,

Perhaps, the mbstring feature itself isn’t available or installed for 7.1, please check this https://stackoverflow.com/questions/17204437/fatal-error-call-to-undefined-function-mb-detect-encoding. Maybe it’s best letting your hosting provider fix it, that’s because the function mb_detect_encoding is a standard PHP function on PHP 4, 5, and 7 and only fixable through their end.

https://www.php.net/manual/en/function.mb-detect-encoding.php

Thanks!

Will contact them, thank you =)

You are most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.