Question

I got stuck into this problem and I can't seem to find a solution.

The version of PHP installed in the server is 5.3.22. After installing Joomla and the default sample data I got this error accessing the web site:

Fatal error: Call to undefined function mb_strpos() in /public_html/site/templates/yoo_sync/layouts/module.php on line 115

I checked the phpinfo page and I noticed that option --enable-mbstring is missing:

before adding the handler

I spoke with the hosting company's support team and they told me to add the following entry to the .htaccess file in the Joomla installation directory:

AddHandler application/x-httpd-php55 .php

Now I can see the option there but many of the others are missing:

after adding the handler

which causes the following error (due to the missing options):

Database connection error (1): The MySQL adapter 'mysqli' is not available.

Is there anything else I can try?

Was it helpful?

Solution 3

The issue was fixed by adding AddHandler application/x-httpd-php55 .php to the .htaccess at the root level (~/public_html)

OTHER TIPS

Just switch the code to JString:strpos(). Joomla does not require that you have mb installed.

On windows installations (and maybe others as well), php_mbstring.dll is not loaded by default. Uncomment it in php.ini That did the trick for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top