Fatal error: Uncaught Error: Call to a member function exists() on null in - mysql

when I open myPhpAdmin of xampp on mac, it gives
Fatal error: Uncaught Error: Call to a member function exists()
on null in /opt/lampp/phpmyadmin/libraries/classes/DatabaseInterface.php:1544
Stack trace: #0
/opt/lampp/phpmyadmin/libraries/classes/DatabaseInterface.php(2477):
PhpMyAdmin\DatabaseInterface->postConnectControl() #1
/opt/lampp/phpmyadmin/libraries/common.inc.php(358):
PhpMyAdmin\DatabaseInterface->connect(257) #2
/opt/lampp/phpmyadmin/index.php(26):
require_once('/opt/lampp/phpm...') #3 {main}
thrown in
/opt/lampp/phpmyadmin/libraries/classes/DatabaseInterface.php
on line 1544
Do you know what I should do?

Related

Fatal error: Uncaught Error: Call to undefined function wp_is_block_theme()

Fatal error: Uncaught Error: Call to undefined function wp_is_block_theme() in /home/vol12_4/epizy.com/epiz_26959882/htdocs/wp-admin/menu.php:205 Stack trace: #0 /home/vol12_4/epizy.com/epiz_26959882/htdocs/wp-admin/admin.php(158): require() #1 /home/vol12_4/epizy.com/epiz_26959882/htdocs/wp-admin/index.php(10): require_once('/home/vol12_4/e...') #2 {main} thrown in /home/vol12_4/epizy.com/epiz_26959882/htdocs/wp-admin/menu.php on line 205

undefined reference to symbol '_ZN12QSqlDatabase11setHostNameERK7QString'

My program has a basic function for adding datas to database but when the code gives an error when it is compiled.
void MainWindow::AddLocationToDatabase()
{
QSqlDatabase db= QSqlDatabase::addDatabase("QMYSQL");
db.setHostName("localhost");
db.setUserName("root");
db.setPassword("*******");
db.setDatabaseName("databasename");
db.setPort(1111);
if(db.open()){
qDebug()<<"connected";
}
}
/usr/bin/ld: build/debug/mainwindow.o: undefined reference to symbol '_ZN12QSqlDatabase11setHostNameERK7QString'
/usr/lib/x86_64-linux-gnu/libQt5Sql.so.5: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [sub-pcapprogram-make_first-ordered] Error 2
06:57:04: The process "/usr/bin/make" exited with code 2.
When executing step "Make"
When I added "QT += sql", there was no error.

RESTful - CodeIgniter 3.1.5 - Fatal Error, Call to undefined function factory

I'm trying to make "RESTful" using CodeIgniter 3.1.5 and libraries https://github.com/chriskacerguis/codeigniter-restserver
I get this error:
Fatal error: Call to undefined factory function () in D:\AppServ\www\restful\application\libraries\REST_Controller.php on line 857
A PHP Error was encountered
Severity: Error
Message: Call to undefined function factory ()
Filename: libraries/REST_Controller.php
Line Number: 857
Backtrace:
(Not my code, but it is example from codeigniter-restserver)
enter in line 61 of autoload.php
$autoload['libraries'] = array('database','Format');
I solved it that way.

undefined reference to `lzma_index_end#XZ_5.0'

I am trying to install caffe, but I got the following error. Exist solution does not work.
System info:
echo $LD_LIBRARY_PATH
/lib/x86_64-linux-gnu:
Error:
//usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_end#XZ_5.0'
//usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_size#XZ_5.0'
//usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_buffer_decode#XZ_5.0'
//usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_stream_footer_decode#XZ_5.0'
//usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_stream_buffer_decode#XZ_5.0'
//usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_uncompressed_size#XZ_5.0'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/finetune_net.dir/build.make:133: recipe for target 'tools/finetune_net' failed
make[2]: *** [tools/finetune_net] Error 1
CMakeFiles/Makefile2:435: recipe for target 'tools/CMakeFiles/finetune_net.dir/all' failed
make[1]: *** [tools/CMakeFiles/finetune_net.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Yii2 console Fatal error: Uncaught exception

When I enter command yii or test/codeception/bin/yii migrate in the console, receive such a message
Fatal error: Uncaught exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: yii\console\ErrorHandler::errorAction' in D:\Desktop\loalhost\yii2-wiersz\vendor\yiisoft\yii2\base\Component.php:197
Stack trace:
#0 D:\Desktop\loalhost\yii2-wiersz\vendor\yiisoft\yii2\BaseYii.php(518): yii\base\Component->__set('errorAction', 'site/error')
#1 D:\Desktop\loalhost\yii2-wiersz\vendor\yiisoft\yii2\base\Object.php(105): yii\BaseYii::configure(Object(yii\console\ErrorHandler), Array)
#2 [internal function]: yii\base\Object->__construct(Array)
#3 D:\Desktop\loalhost\yii2-wiersz\vendor\yiisoft\yii2\di\Container.php(372): ReflectionClass->newInstanceArgs(Array)
#4 D:\Desktop\loalhost\yii2-wiersz\vendor\yiisoft\yii2\di\Container.php(151): yii\di\Container->build('yii\\console\\Err...', Array, Array)
#5 D:\Desktop\loalhost\yii2-wiersz\vendor\yiisoft\yii2\BaseYii.php(344): yii\di\Container->get('yii\\console\\Err...', Array, Array)
#6 D:\Desktop\loalhost\yii2-wiersz\vendor\yiisoft\yii2\di\ServiceLocator.php(13 in D:\Desktop\loalhost\yii2-wiersz\vendor\yiisoft\yii2\base\Component.php on line 197
console/config/main.php is default. Problem is on localhost (win7x62) and remote host (debian).
I had the same situation with the attempt to migrate rbac
(yii migrate --migrationPath=#yii/rbac/migrations)
What is causing the problem ??? my ignorance ;)?
Well, as you error message says, you are trying to set unknown property 'errorAction'. I suppose you are using the same error component config here in console app as in web app. See if there is
[
'components' => [
'error' => [
'errorAction' => ...
]
]
]
in your console app config. There shouldn't be 'errorAction'.
Thanks,
I moved from frontend/config and backend/config code
'errorHandler' => [
'errorAction' => 'site/error',
]
to common/config. Frontend and backend app did not have a problem with that, but console yes. After rollback is ok.