Reputation: 1827
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:
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:
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?
Upvotes: 1
Views: 13519
Reputation: 372
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.
Upvotes: 4
Reputation: 6755
Just switch the code to JString:strpos(). Joomla does not require that you have mb installed.
Upvotes: 3
Reputation: 1827
The issue was fixed by adding AddHandler application/x-httpd-php55 .php
to the .htaccess
at the root level (~/public_html)
Upvotes: 1