Fatal error: Call to a member function Query() on a non-object in /home/bitrix/www/bitrix/php_interface/after_connect_d7.php on line 3 Call Stack: 0.0000 635000 1. {main}() /home/bitrix/www/bitrix/urlrewrite.php:0 0.0001 635432 2. include_once('/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php') /home/bitrix/www/bitrix/urlrewrite.php:2 0.0024 1171816 3. include_once('/home/bitrix/www/department/programms.php') /home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159 0.0024 1172256 4. require('/home/bitrix/www/bitrix/header.php') /home/bitrix/www/department/programms.php:2 0.0025 1172680 5. require_once('/home/bitrix/www/bitrix/modules/main/include/prolog.php') /home/bitrix/www/bitrix/header.php:1 0.0029 1256432 6. require_once('/home/bitrix/www/bitrix/modules/main/include/prolog_before.php') /home/bitrix/www/bitrix/modules/main/include/prolog.php:10 0.0031 1262264 7. require_once('/home/bitrix/www/bitrix/modules/main/include.php') /home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14 0.0086 3297160 8. Bitrix\Main\Application->initializeExtendedKernel() /home/bitrix/www/bitrix/modules/main/include.php:24 0.0086 3297208 9. Bitrix\Main\HttpApplication->initializeContext() /home/bitrix/www/bitrix/modules/main/lib/application.php:122 0.0092 3403344 10. Bitrix\Main\HttpRequest->__construct() /home/bitrix/www/bitrix/modules/main/lib/httpapplication.php:43 0.0092 3406096 11. Bitrix\Main\HttpRequest->prepareCookie() /home/bitrix/www/bitrix/modules/main/lib/httprequest.php:63 0.0093 3436296 12. Bitrix\Main\Config\Option::get() /home/bitrix/www/bitrix/modules/main/lib/httprequest.php:329 0.0094 3436376 13. Bitrix\Main\Config\Option::load() /home/bitrix/www/bitrix/modules/main/lib/config/option.php:36 0.0101 3566608 14. Bitrix\Main\DB\Connection->query() /home/bitrix/www/bitrix/modules/main/lib/config/option.php:150 0.0102 3567192 15. Bitrix\Main\DB\MysqlConnection->queryInternal() /home/bitrix/www/bitrix/modules/main/lib/db/connection.php:329 0.0103 3567192 16. Bitrix\Main\DB\MysqlConnection->connectInternal() /home/bitrix/www/bitrix/modules/main/lib/db/mysqlconnection.php:91 0.0106 3568400 17. include('/home/bitrix/www/bitrix/php_interface/after_connect_d7.php') /home/bitrix/www/bitrix/modules/main/lib/db/mysqlconnection.php:52