Deprecated: flash(): Implicitly marking parameter $message as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/doska.codelux.space/app/Helpers/functions.php on line 134
Fatal error: Uncaught RuntimeException: Query failed: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'shamiszk_doska.categories' doesn't exist | SQL: SELECT c.*,
(SELECT COUNT(*) FROM ads a
WHERE a.status = "active"
AND (
a.category_id = c.id
OR a.category_id IN (SELECT id FROM categories sub WHERE sub.parent_id = c.id)
)
) AS ads_count
FROM categories c
WHERE c.parent_id IS NULL AND c.is_active = 1
ORDER BY c.sort, c.name in /www/wwwroot/doska.codelux.space/app/Core/Database.php:163
Stack trace:
#0 /www/wwwroot/doska.codelux.space/app/Core/Database.php(74): App\Core\Database->die()
#1 /www/wwwroot/doska.codelux.space/app/Core/Database.php(86): App\Core\Database->query()
#2 /www/wwwroot/doska.codelux.space/app/Models/Category.php(10): App\Core\Database->fetchAll()
#3 /www/wwwroot/doska.codelux.space/app/Controllers/HomeController.php(14): App\Models\Category::rootCategories()
#4 [internal function]: App\Controllers\HomeController->index()
#5 /www/wwwroot/doska.codelux.space/app/Core/Router.php(139): call_user_func_array()
#6 /www/wwwroot/doska.codelux.space/app/Core/Router.php(102): App\Core\Router->runHandler()
#7 /www/wwwroot/doska.codelux.space/public_html/index.php(14): App\Core\Router->dispatch()
#8 {main}
thrown in /www/wwwroot/doska.codelux.space/app/Core/Database.php on line 163