Knowledge Base
"call to undefined function mb_detect_encoding()" Error When Using PHP phiMail or phiQuery Connector
The error relates to a missing PHP extension that is needed after the connection is opened. The connector requires the PHP mbstring extension so if you receive this error, the mbstring extension is disabled on your server which is why the connector cannot find the associated function mb_detect_encoding().
To enable this extension for Windows installations of PHP, look in the php.ini file, and located the following line which is probably commented out:
;extension=php_mbstring.dll
Remove the semicolon (";") at the beginning of the line to enable the extension and then restart your server. If this line is not present in your php.ini file, you will need to add it manually. If this does not fix the issue, make sure you actually have the referenced DLL present in the correct path for your installation.
Did this article answer your question? If not, please contact us.