I have the following error when try to install phpmyadmin in 4.0.4 on PHP version 5.4. I am running Apache 2.2 on My Windows 7. I can run . My php is installed in c:\php. I have add the following line in php.ini but no lucks.
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_exif.dll
And also this line in php.ini
--enable-mbstring=all
Fatal error: Call to undefined function mb_detect_encoding() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\phpMyAdmin\libraries\php-gettext\gettext.inc on line 177
I checked the phpinfo() page but it does not show that mbstring is enabled. But I did
extension=php_mbstring.dll
So why the mbstring is not started?
Thanks.
what can I do to fix it?
Thanks
in php 5.5.8 and the php.ini file find the part called Windows Extensions and be sure that the extension php_mbstring.dll is uncomment (remove semi-colon at first) and be sure to appropriately set the extension_dir directive.
Check to make sure your php.ini file is in the correct directory. By default the path should be C:\Windows\php.ini. You can find out what it's looking for using phpinfo().
Related
Using php 8.20 X86 Win32 VS16 not thread safe
In PHP.ini I have
extension=mbstring
(i.e. uncommented ";" in front)
and
extension_dir = "D:\webserve\php8X86Win32VS16NTS\ext"
In file system I have:
file php_mbstring.dll
in:
directory D:\webserve\php8X86Win32VS16NTS\ext
...
PHPInfo()
states it is using the php.ini file I have edited.
extension direct is "ext" (which it is if if I use fully qualitfied
path in php.ini)
...
Yet I still get error in code:
Uncaught Error: Call to undefined function Stichoza\GoogleTranslate\Tokens\mb_strlen()
...
What is the next thing I should check in my configuration to get multibyte string support working in PHP?
Whenever I try to get the mime content type from php, it echos:
Fatal error: Class 'finfo' not found in /home/jobynadel/finadel.com/video/finfo.php on line 4
or
Fatal error: Call to undefined function finfo_open in /home/jobynadel/finadel.com/video/finfo.php on line 4
I just can't figure it out!
The code I am using is:
$file_info = new finfo(FILEINFO_MIME_TYPE);
// See constant value http://php.net/manual/en/fileinfo.constants.php#113687
$mime_type = $file_info->buffer(file_get_contents($file));
Have a look at your php.ini file and check that the fileinfo.soor php_fileinfo.dll is activated (depending on your platform and version).
There should be a line similar to
extension=fileinfo.so
in your php.ini file
If you using XAMPP, you enable extension=php_fileinfo.dll in php.ini
What version of PHP do you have? PHP 5.3.0 and later have Fileinfo built in, but on Windows you must enable it manually in your php.ini. You can find further information in the documentation.
If you are using WAMP then Go to PHP extensions and enbale PHP_fileinfo and restart all serverices.
Windows users: just edit php.ini and uncomment this line:
extension=php_fileinfo.dll
I.e. remove the preceding semicolon from
;extension=php_fileinfo.dll
Remember to restart Apache for new php.ini to take effect.
For those have had it working fine, but then this error appears:
Some hosting providers (e.g., Dreamhost) allow customers to override default PHP settings in a configuration file, often with a path something like:
~/.php/5.4/phprc
That version number in the path can be a problem if you upgrade PHP (or it is upgraded on your behalf). Any custom settings from the prior version, including one enabling the fileinfo extension, will be missing in the newer version. Usually you can just copy the config file to the appropriate new config directory and restart the server.
I had this same issue with PHP.I did the following steps:
- make sure that the fileinfo extension is already installed if you are using < PHP 5.3.0.
- Then you have to add in php.ini ;extension=fileinfo.so or
;extension=php_fileinfo.dll
- If you want to uncomment remove the semicolon(;)
extension=fileinfo.so or extension=php_fileinfo.dll
Then save and restart your web server.
For PHP 7.3 or Higher
Change
;extension=fileinfo
To
extension=fileinfo
in php.ini file.
I know there's tons of topics about my problem, but I can't find a solution.
I'm using wamp and I've changed my version of PHP from 5.5.12 to 5.6.16, then when I go to localhost/phpmyadmin i have this error displayed :
Fatal error: Call to undefined function mb_detect_encoding() in
C:\wamp\apps\phpmyadmin4.1.14\libraries\php-gettext\gettext.inc on
line 177
So I update phpMyAdmin from 4.1.14 to 4.5.2.
And I have this **** error:
phpMyAdmin - Error The mbstring extension is missing. Please check
your PHP configuration.
My php.ini, phpForApache.ini is configured, I have un-commented the extension, set extension_dir to C:\wamp\bin\php\php5.6.16\ext, I stumbled on many topics/forum but none of the solution works.
Do you have any idea?
Please check #36254548
Copying the php.ini file to "wamp64\bin\apache\apache2.4.17\bin" has solved my problem.
Sometimes the extensions directory is well pointed to, the dll files have been uncommented but it still doesn't work.
The next solution to use, that is if your extensions directory is correct and dll files for the mbstring has been uncommented, then copy the php.ini file and paste it into the windows directory (i.e. C:\Windows).
You then restart your wamp/xampp and it will work.
check your php.ini file. In the extensions part of the configuration you should find:
;extension=php_mbstring.dll
remove the leading ';' to uncomment and enable the extension so it looks like this:
extension=php_mbstring.dll
restart your apache and it should work.
I faced the same issue when I start wamp, suddenly my project was not working and when I check the phpmyadmin, it gives the same above error.
My debugging process found php.ini file is missing. However I already installed two PHP versions, 5.6.19 and 7.0.4. I changed the version to 7.0.4 and then re-changed to 5.6.19. It started work.
What I guess, while changing the version, all the configuration files getting re-installed in wamp folder.
I got a photo competition that seems to work fine but when I upload a photo I get a blank screen. I checked the error log and found this:
PHP Fatal error: Call to undefined function exif_imagetype() in /home/fbtabvhk/public_html/pinkdrive_selfie/contest/libs/upload/save.php on line 27
This is the code on line 27:
if (exif_imagetype($_FILES['files']['tmp_name'][0]) === FALSE)
You have to have the exif extension compiled and enabled for this function to work. This extension has good chances to be already compiled in your PHP installation, so you might just have to enable it in your php.ini:
On Linux:
extension=exif.so
On Windows:
extension=php_exif.dll
Note for Windows:
Windows users must enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini.
The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so
adjust your php.ini accordingly.
Try to enable your php.ini and restart server.
extension=php_exif.dll
I have followed this tutorial for installation of php, mysql, apache and phpmyadmin :http://www.youtube.com/watch?v=kZ2zbO6PABk
and towards the end when he tried to access phpmyadmin he got the following error but resolved it :
Fatal error: Call to undefined function mb_detect_encoding() in
C:\Apache24\htdocs\phpMyAdmin\libraries\php-gettext\gettext.inc on
line 177
I am now still having issue. Like this question:
Fatal error: Call to undefined function mb_detect_encoding()
I have also made sure ive uncommented out and unblocked the following extensions:
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysql.dll
extension=php_mysqli.dll
What else am I missing?
added PHPINIDir "C:\php" in http.conf and it now works
I faced this problem too. The problem is that settings in PHP.INI is no incorrect. Mysql is not longer enabled by default. you got to enable the dll in the PHP.INI among other dlls.
http://www.hirokoymj.com/Install_phpMyAdmin.php
These are some of the dlls that you have to uncomment in php.ini
curl, gd2, mysql, mqsqli, mbstring, pdo_mysql, phar, soap, zip
It works like a charm after having changed the settings!
On my install I found that the 4 instructions lines above the 'extension_dir="C:/..." entry in the php.ini file were not properly commented out. So nothing after that in the config file seemed to work. Including the set path to the extension_dir. So the mbstring.dll wasn't loading. I added semi-colons to comment them out, restarted Apache, and Viola! The hirokoymj.com page listed above was a big help!