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
Related
I have unzipped the installation folder. When going to the install.php to start the installer I get an Fatal error: Uncaught RuntimeException.
I use XAMPP with PHP 7.2 and I go to:
http://localhost/typo3/install.php
I get following message:
Fatal error: Uncaught RuntimeException: Could not create directory "/Applications/XAMPP/xamppfiles/htdocs/typo3temp/var/log/"! in /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php:2172 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php(2140): TYPO3\CMS\Core\Utility\GeneralUtility::createDirectoryPath('/Applications/X...') #1 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(222): TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep('/Applications/X...') #2 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(193): TYPO3\CMS\Core\Log\Writer\FileWriter->createLogFile() #3 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(123): TYPO3\CMS\Core\Log\Writer\FileWriter->openLogFile() #4 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/Fil in /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 2172
Stacktrace in log file:
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php(2140): TYPO3\CMS\Core\Utility\GeneralUtility::createDirectoryPath('/Applications/X...')
#1 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(222): TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep('/Applications/X...')
#2 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(193): TYPO3\CMS\Core\Log\Writer\FileWriter->createLogFile()
#3 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(123): TYPO3\CMS\Core\Log\Writer\FileWriter->openLogFile()
#4 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/Fil in /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 2172
:
No more error logs available..
The error means that php cannot write to your xampp htdocs directory, because of security restrictions of the Applications dir.
You should change your xampp configuration like in this tutorial https://pureinfotech.com/install-xampp-windows-10/
I am getting following error: using cakephp, aws.
Warning: _cake_core_ cache was unable to write 'cake_dev_en-gb' to
File cache in /var/www/html/myApp/lib/Cake/Cache/Cache.php on line 328
Warning: /var/www/html/myApp/app/tmp/cache/persistent/ is not writable
in /var/www/html/myApp/lib/Cake/Cache/Engine/FileEngine.php on line
385
Fatal error: Uncaught exception 'CacheException' with message 'Cache
engine "_cake_core_" is not properly configured. Ensure required
extensions are installed, and credentials/permissions are correct' in
/var/www/html/myApp/lib/Cake/Cache/Cache.php:186 Stack trace: #0
/var/www/html/myApp/lib/Cake/Cache/Cache.php(151):
Cache::_buildEngine('_cake_core_') #1
/var/www/html/myApp/app/Config/core.php(383):
Cache::config('_cake_core_', Array) #2
/var/www/html/myApp/lib/Cake/Core/Configure.php(72):
include('/var/www/html/i...') #3
/var/www/html/myApp/lib/Cake/bootstrap.php(431):
Configure::bootstrap(true) #4
/var/www/html/myApp/app/webroot/index.php(95):
include('/var/www/html/i...') #5 {main} thrown in
/var/www/html/myApp/lib/Cake/Cache/Cache.php on line 186
NOTE : tmp folders have full permission(777), yet getting the same error, please advise?
I have gone through
https://groups.google.com/forum/#!topic/cake-php/gKFJf6mK6qk
also.
Please check with server configuration, Firewall should be disable on the server to access 777 folder by anonymous users.
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
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.
I have Fedora18 and was trying to install cakephp . But it shows
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 323
Warning: /var/www/html/cakem2/app/tmp/cache/persistent/ is not writable in /var/www/html/cakem2/lib/Cake/Cache/Engine/FileEngine.php on line 385
Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/html/cakem2/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /var/www/html/cakem2/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/html/cakem2/app/Config/core.php(374): Cache::config('_cake_core_', Array) #2 /var/www/html/cakem2/lib/Cake/Core/Configure.php(72): include('/var/www/html/c...') #3 /var/www/html/cakem2/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /var/www/html/cakem2/app/webroot/index.php(94): include('/var/www/html/c...') #5 /var/www/html/cakem2/index.php(41): require('/var/www/html/c...') #6 {main} thrown in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 181
Following the answers Similar Question, I have made all the directory and sub-directory writable as shown in . But I am still getting the error ! Whats wrong ?
chown the folders / files so that the user matches the user which httpd or Apache uses to access these files. I don't know the user for fedora, i think its apache or httpd. In ubuntu its www-data.
http://fedoraproject.org/wiki/Administration_Guide_Draft/Apache