I am trying to log into phpmyadmin page from a localhost, but whenever I try to open the phpmyadmin directory, I get the following message...
Fatal error: Uncaught Error: Call to undefined function __() in C:\dev\www\pma\libraries\sanitizing.lib.php:135 Stack trace: #0 C:\dev\www\pma\libraries\Message.php(586): PMA_sanitize('Undefined index...', false, true) #1 C:\dev\www\pma\libraries\Message.php(650): PMA\libraries\Message::decodeBB('Undefined index...') #2 C:\dev\www\pma\libraries\Error.php(167): PMA\libraries\Message->getMessage() #3 C:\dev\www\pma\libraries\ErrorHandler.php(157): PMA\libraries\Error->getHash() #4 C:\dev\www\pma\libraries\ErrorHandler.php(121): PMA\libraries\ErrorHandler->addError('Undefined index...', 8, 'C:\dev\www\pma\...', 285, true) #5 C:\dev\www\pma\libraries\core.lib.php(285): PMA\libraries\ErrorHandler->handleError(8, 'Undefined index...', 'C:\dev\www\pma\...', 285, Array) #6 C:\dev\www\pma\libraries\core.lib.php(312): PMA_getPHPDocLink('book.mbstring.p...') #7 C:\dev\www\pma\libraries\core.lib.php(954): PMA_warnMissingExtension('mbstring', true) #8 C:\dev\www\pma\libraries\common.inc.php(97): PMA_checkExtensions() #9 C:\dev in C:\dev\www\pma\libraries\sanitizing.lib.php on line 135
Anyone knows how to fix it?
Just had this. Needs the php-mbstring extension installed.
This could be a multitude of things. Typically this occurs due to the permissions you have set for the PHPMyAdmin directory. Assuming you manually compiled/installed PHP (as opposed to using an out-of-the-box solution such as XAMPP), it would do you well to ensure that the following extensions are enabled within your php.ini file:
extension=php_bz2.dll
extension=mbstring.dll
extension=mysqli.dll
Take the time while doing so to verify that the extension_dir property is also properly set. Remember to fully restart Apache using httpd -k stop and httpd -k start in order for changes made to php.ini or other configuration files to take effect as httpd -k restart sometimes doesn't propagate the changes.
Related
For the New Laravel project, I need to update the PHP version using XAMPP,
After the update, the PHP version and apache folder when I start apache and MySQL from the XAMPP control panel this working but I open localhost/phpmyadmin/ it shows me fatal error and doesn't show the database.
Fatal error: Uncaught mysqli_sql_exception: You are not using binary logging in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php:199 Stack trace: #0 C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php(199): mysqli->query('SHOW MASTER LOG...', 0) #1 C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php(316): PhpMyAdmin\Dbi\DbiMysqli->realQuery('SHOW MASTER LOG...', Object(mysqli), 1) #2 C:\xampp\phpMyAdmin\libraries\classes\DatabaseInterface.php(1869): PhpMyAdmin\DatabaseInterface->tryQuery('SHOW MASTER LOG...', 256, 1, false) #3 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(573): PhpMyAdmin\DatabaseInterface->fetchResult('SHOW MASTER LOG...', 'Log_name', NULL, 256, 1) #4 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(107): PhpMyAdmin\Menu->_getServerTabs() #5 C:\xampp\phpMyAdmin\libraries\classes\Menu.php(70): PhpMyAdmin\Menu->_getMenu() #6 C:\xampp\phpMyAdmin\libraries\classes\Header.php(445): PhpMyAdmin\Menu->getDisplay() #7 C:\xampp\phpMyAdmin\libraries\classes\Response.php(323): PhpMyAdmin\Header->getDisplay() #8 C:\xampp\phpMyAdmin\libraries\classes\Response.php(336): PhpMyAdmin\Response->_getDisplay() #9 C:\xampp\phpMyAdmin\libraries\classes\Response.php(495): PhpMyAdmin\Response->_htmlResponse() #10 [internal function]: PhpMyAdmin\Response->response() #11 {main} thrown in C:\xampp\phpMyAdmin\libraries\classes\Dbi\DbiMysqli.php on line 199
I feel the main issue is that your tried to upgrade only php instead of the whole Xampp Bundle. Either you should install complete xampp again or you should upgrade phpMyAdmin manually too as this will fix the php compatibility issues.
I had this exact same issue and I have spent many hours trying to figure this out, so it is as simple as this.
Once you have upgraded your php. (In my case I upgraded to php 8.1.10)
Make a copy of your phpMyAdmin folder renaming it different than the current value that it has.
Download phpMyAdmin 5.2.0 or higher.
Unzip the file, and then copy it into your xampp folder replacing the old phpMyAdmin folder.
Inside the new folder create the file config.inc.php and paste inside there the data that is in config.inc.php located in your old phpMyAdmin folder.
Thats it!
Have a problem with install Symfony vendors on remote server (VPS), because after installation composer library by server administration, I have PHP Fatal error when I run it:
PHP Fatal error: Uncaught ErrorException: proc_close() has been disabled for security reasons in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php:957
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_close() ha...', 'phar:///usr/loc...', 957, Array)
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(957): proc_close(Resource id #252)
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(753): Symfony\Component\Console\Application->getSttyColumns()
#3 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(714): Symfony\Component\Console\Application->getTerminalDimensions()
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(648): Symfony\Component\Console\Application->getTerminalWidth()
#5 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(127): Symfony\Component\Console\Application->renderException(Object(ErrorException), Object(Symfony\Component\Console\Output\StreamOutput))
#6 p in phar:///usr/local/bin/composer/vendor/symfony/console/Application.php on line 957
Have PHP 7.3.15
memory_limit => 1024M
disable_functions => exec,system,passthru,shell_exec,proc_close,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname => exec,system,passthru,shell_exec,proc_close,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Maybe someone have any ideas?
If you are deploying in a shared cloud service the process won't work due to the limited resources available for your instance. I will advise you do the composer update or install on your development instance and transfer the files zipped to the host
There are multiple ways:
Contact your hosting source to allow you.
Push/Deploy the vendor from your local these way you don't need to run any composer command.
Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in C:\Apache24\htdocs\phpMyAdmin\libraries\php-gettext\gettext.inc:177 Stack trace: #0 C:\Apache24\htdocs\phpMyAdmin\libraries\php-gettext\gettext.inc(282): _encode('The %s extensio...') #1 C:\Apache24\htdocs\phpMyAdmin\libraries\php-gettext\gettext.inc(289): _gettext('The %s extensio...') #2 C:\Apache24\htdocs\phpMyAdmin\libraries\core.lib.php(306): __('The %s extensio...') #3 C:\Apache24\htdocs\phpMyAdmin\libraries\core.lib.php(957): PMA_warnMissingExtension('mbstring', true) #4 C:\Apache24\htdocs\phpMyAdmin\libraries\common.inc.php(102): PMA_checkExtensions() #5 C:\Apache24\htdocs\phpMyAdmin\index.php(13): require_once('C:\Apache24\htd...') #6 {main} thrown in C:\Apache24\htdocs\phpMyAdmin\libraries\php-gettext\gettext.inc on line 177
I ran into the same problem after I had installed on windows PHP7, MySql, Apache and PhpMyAdmin.
The solution was to add in the php.ini file:extension_dir = "c:/php7/ext"I was helped by this answer: https://stackoverflow.com/a/25301739/3548935Make sure that you also uncomment this line in the php.ini file as well:extension=php_mbstring.dll
I had same issue i just update full extension folder path like this
extension_dir = "C:/wamp/bin/php/php7.1.13/ext/"
and updated latest phpmyadmin version because phpmyadmin4.1.14 is not compatible with php7. i wish it will resolve your problem
This is what comes up when I try to go to localhost/phpmyadmin. I have tried restarting Apache and my browser multiple times. I am just setting all of this up for the first time, so I'm not really sure how to phrase my question, and I don't really understand what the error is telling me, so any clarification on that would be greatly appreciated.
Fatal error: Uncaught Error: Call to undefined function __() in C:\Apache\htdocs\phpmyadmin\libraries\sanitizing.lib.php:135
Stack trace:
#0 C:\Apache\htdocs\phpmyadmin\libraries\Message.php(586): PMA_sanitize('Undefined index...', false, true)
#1 C:\Apache\htdocs\phpmyadmin\libraries\Message.php(650): PMA\libraries\Message::decodeBB('Undefined index...')
#2 C:\Apache\htdocs\phpmyadmin\libraries\Error.php(167): PMA\libraries\Message->getMessage()
#3 C:\Apache\htdocs\phpmyadmin\libraries\ErrorHandler.php(157): PMA\libraries\Error->getHash()
#4 C:\Apache\htdocs\phpmyadmin\libraries\ErrorHandler.php(121): PMA\libraries\ErrorHandler->addError('Undefined index...', 8, 'C:\\Apache\\htdoc...', 285, true)
#5 C:\Apache\htdocs\phpmyadmin\libraries\core.lib.php(285): PMA\libraries\ErrorHandler->handleError(8, 'Undefined index...', 'C:\\Apache\\htdoc...', 285, Array) #6 C:\Apache\htdocs\phpmyadmin\libraries\core.lib.php(312): PMA_getPHPDocLink('book.mbstring.p...')
#7 C:\Apache\htdocs\phpmyadmin\libraries\core.lib.php(954): PMA_warnM in C:\Apache\htdocs\phpmyadmin\libraries\sanitizing.lib.php on line 135
I am very new to programming, so I apologize if this is something that was resolved before. I am still unsure how to phrase many of my questions to get the results that I am looking for.
I suggest you to follow this suggestion
Unable to open phpmyadmin directory: Call to undefined function
It worked for me.
[...] ensure that the following extensions are enabled within your php.ini file:
extension=php_bz2.dll
extension=mbstring.dll
extension=mysqli.dll
Take the time while doing so to verify that the extension_dir property is also properly set. Remember to fully restart Apache using httpd -k stop and httpd -k start in order for changes made to php.ini or other configuration files to take effect as httpd -k restart sometimes doesn't propagate the changes.
My application was working perfectly on localhost. But when i uploaded the application on server i got an error. I made a test file to check databse connection, this is the error i am getting. Please hellp me how to fix this..
Fatal error: Uncaught exception 'Doctrine_Connection_Exception' with message 'Couldn't locate driver named mysql' in /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Connection.php:492 Stack trace: #0 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Connection/Mysql.php(101): Doctrine_Connection->connect() #1 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Connection.php(1008): Doctrine_Connection_Mysql->connect() #2 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Query/Abstract.php(1094): Doctrine_Connection->execute('SELECT u.id AS ...', Array) #3 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Query/Abstract.php(1142): Doctrine_Query_Abstract->_execute(Array) #4 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/models/Users.php(22): Doctrine_Query_Abstract->execute() #5 /hermes/web05/b1392/moo.fanyer/httpdocs/test.php(8): Users->get_details_username('mohit') #6 {main} thrown in /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Connection.php on line 492
Edit: how to enable my sql drivers..???
apt-get install php5-mysql ---------------
Enable pdo_mysql in the php.ini file
Make sure that:
mysql extension is enabled on the server where you have uploaded files.
you have specified the correct paths.
there are no directory permission issues