Fatal error: call to undefined function mb_strtolower() in OpenCart [duplicate] - php

This question already has answers here:
Fatal error: Call to undefined function mb_strtolower()
(4 answers)
Closed 8 years ago.
I am using opencart 1.5.6
I had a major server meltdown this week and had to do a mirror restore of the server. Now all is back to normal except now in opencart when I try to login as a customer or go to checkout I get this error and have NO idea how to fix it.
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Fatal error: Call to undefined function mb_strtolower() in public_html/vqmod/vqcache/vq2-catalog_model_account_customer.php on line 46
Re-installing opencart isn't an option so I'm stuck on what to do.

You need to install/enable mb_string PHP extension. Usually you just need to enable one as mb_string should be shipped with your PHP. See PHP's conf.d or php.ini (depends on used version).

Related

New PHP site on a new server - Parse error: syntax error, unexpected '?> ' [duplicate]

This question already has answers here:
PHP parse/syntax errors; and how to solve them
(20 answers)
Reference - What does this error mean in PHP?
(38 answers)
Closed 4 years ago.
I tried to set up a site from my old to new server, checked over the databases and set it up exactly like it should but it keeps throwing errors such as:
Parse error: syntax error, unexpected '?> ', expecting function (T_FUNCTION) in /search/index.php on line 2536
I can fix this by adding a } at the end of the page, but that wasn't needed for when it was on the other server and even after that there were more problems that followed up after:
Notice: Use of undefined constant SUBPAGE_LEVEL_1 - assumed 'SUBPAGE_LEVEL_1' in
would appear all over the site, I know the issue related to that is due to the constant not actually being defined on that particular page.
The main thing is I believe this is related to my php ini settings on the new server, these errors never appeared on the old server.
For reference my new server (the one with the errors) are on:
PHP 5.6.36-1+ubuntu18.04.1+deb.sury.org+1 (cli)
and the old server:
PHP 5.6.37 (cli)
I've looked up the differences between .36 to .37 but I've never noticed anything that stood out to me, is it because of this or am I overlooking something really obvious?
Update: error reporting is in a file called the config.php, it's not being loaded into the sitewide (as it did with the old server, I do know however it's being included because its the file that's required to make the site work)
Once I manually add the error report code into the header.php it fixes some but not all the issues and I feel I shouldn't have to touch any of the site code as it is.

Getting a mysqli_conect error in codeigniter [duplicate]

This question already has answers here:
How to install MySQLi on MacOS
(16 answers)
Closed 5 years ago.
I am runing codeingiter on local host and was working fine but after completing my project i moved files on my server now the problem is that I am keep getting an unusual error with codeigniter which I had never been got before I searched on google a lot but the problem is that I am not getting an accurate answer related to my issue
Fatal error: Call to undefined function mysqli_init() in /home/begazed/public_html/demo/begazed/system/database/drivers/mysqli/mysqli_driver.php on line 125
A PHP Error was encountered
Severity: Error
Message: Call to undefined function mysqli_init()
Filename: mysqli/mysqli_driver.php
Line Number: 125
Backtrace:
Can anyone help me out to resolve this issue
Your server does not have php-mysql package installed. You will have to install it and reload the server. Package might be different on the basis of your PHP version. I hope this helped.

Website Crash and Error

I was working on my Wordpress last night and went to open the dashboard in a new tab and suddenly now I can't log in or view my site, I just keep getting these error messages:
"Fatal error: Call to undefined function mysql_connect() in /home/caschica/public_html/connect.php on line 2"
"Your PHP installation appears to be missing the MySQL extension which is required by WordPress."
www.caschicago.com
www.caschicago.com/wp
Another reason to use mysqli or pdo, since php 6 or 7 it is not supported anymore to use mysql.
I cant believe how many times this is the answer on SO.

sqlsrv in Registered PHP Streams [duplicate]

This question already has answers here:
"Call to undefined function sqlsrv_connect()" when trying to connect to Azure DB from PHP
(2 answers)
Closed 6 years ago.
How can I get sqlsrv in Registered PHP Streams of my php installation?
I am getting the following error:
Fatal error: Call to undefined function sqlsrv_error() in C:\inetpub\wwwroot\twickenham2013\class\sqlsrv.class.php on line 14
How can I fix this?
Im facing the same issue.
Thats because the Registered PHP streams(phpinfo()) does not contain sqlsrv field.
this can be checked using the code
<?php
phpinfo();
?>
add the necessary .dll files in you xampp/php/ext. and edit the php.ini document.
To download the necessary .dll files and for more detailed installation instructions, see the PHP docs: http://php.net/manual/en/sqlsrv.installation.php

Fatal error: Call to undefined method SplFileInfo::getRealPath()

I've got a client who has just set up a new VPN and is attempting to install my plugin.
He's getting the following error:
Fatal error: Call to undefined method SplFileInfo::getRealPath() on the commented line below. This appears to have something to do with the ZEND libraries. Any ideas what I should tell him to do?
If you are getting the undefined error means you have lower version of PHP.
The function is supported after PHP 5.2.2
SplFileInfo::getRealPath
(PHP 5 >= 5.2.2)
SplFileInfo::getRealPath — Gets
absolute path to file
http://php.net/manual/en/splfileinfo.getrealpath.php

Categories