TypeError
Description
Message: |
Return value of Plugin_Routing::_getQuiz() must be an instance of ActiveRecord_Quiz, null returned |
File: |
/var/www/carwashquiz/library/Plugin/Routing.php |
Line: |
64 |
Source Code
53 |
{
|
54 |
Load::db()->connect(Load::config('db-p12'));
|
55 |
}
|
56 |
|
57 |
protected function _getQuiz(int $klantId) : ActiveRecord_Quiz
|
58 |
{
|
59 |
return Load::dbTable('Quiz')
|
60 |
->select()
|
61 |
->where('is_live = 1')
|
62 |
->where('klanten_id = ' . $klantId)
|
63 |
->order('id DESC')
|
64 |
->fetch();
|
65 |
}
|
66 |
|
67 |
protected function _isAdmin(string $sd) : bool
|
68 |
{
|
69 |
return $sd === 'admin';
|
70 |
}
|
71 |
|
72 |
protected function _isAutowasH2O(string $sd) : bool
|
73 |
{
|
74 |
return $sd === 'autowash2o';
|
75 |
}
|
76 |
|
Backtrace
#0 /var/www/carwashquiz/library/Plugin/Routing.php(183): Plugin_Routing->_getQuiz(84)
#1 /var/www/carwashquiz/library/Plugin/Routing.php(43): Plugin_Routing->_runQuiz('autowas-h2o', 'carwashquiz', 'nl')
#2 /var/www/carwashquiz/library/Controller/Front.php(41): Plugin_Routing->dispatchLoopStartup(Object(Controller_Request))
#3 /var/www/carwashquiz/library/Controller/Front.php(60): Controller_Front->notifyPlugins('dispatchLoopSta...')
#4 /var/www/carwashquiz/www/index.php(23): Controller_Front->run()
#5 {main}
Date: Fri, 25 Apr 2025 11:50:15 +0200 URI: /sitemap.xml REFERER: none