craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.21k stars 617 forks source link

A server error occurred when developing locally #6928

Closed nitech closed 3 years ago

nitech commented 3 years ago

Description

Getting A server error occurred randomly when developing locally. I've inspected the web.log where I found the attached error:

2020-09-30 08:35:22 [-][-][-][error][craft\db\Connection::open] SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
2020-09-30 08:35:22 [-][-][-][error][craft\db\Connection::open] SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
2020-09-30 08:35:22 [-][-][-][error][craft\base\ApplicationTrait::getIsDbConnectionValid] There was a problem connecting to the database: Craft CMS can’t connect to the database with the credentials in config/db.php.
2020-09-30 08:35:22 [-][-][-][error][craft\errors\DbConnectException] PDOException: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO) in C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\db\Connection.php:710
Stack trace:
#0 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\db\Connection.php(710): PDO->__construct('mysql:host=;dbn...', '', '', Array)
#1 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\db\Connection.php(631): yii\db\Connection->createPdoInstance()
#2 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\db\Connection.php(152): yii\db\Connection->open()
#3 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(812): craft\db\Connection->open()
#4 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(291): craft\web\Application->getIsDbConnectionValid()
#5 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\services\Sites.php(1127): craft\web\Application->getIsInstalled()
#6 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\services\Sites.php(465): craft\services\Sites->_loadAllSites()
#7 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Component.php(180): craft\services\Sites->setCurrentSite(NULL)
#8 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(558): yii\base\Component->__set('currentSite', NULL)
#9 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(107): yii\BaseYii::configure(Object(craft\services\Sites), Array)
#10 [internal function]: yii\base\BaseObject->__construct(Array)
#11 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#12 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\services\\...', Array, Array)
#13 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\services\\...', Array, Array)
#14 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#15 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Module.php(742): yii\di\ServiceLocator->get('sites', true)
#16 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(335): yii\base\Module->get('sites', true)
#17 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Instance.php(164): craft\web\Application->get('sites')
#18 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Instance.php(137): yii\di\Instance->get(NULL)
#19 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Request.php(223): yii\di\Instance::ensure(Object(yii\di\Instance), 'craft\\services\\...')
#20 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(109): craft\web\Request->init()
#21 [internal function]: yii\base\BaseObject->__construct(Array)
#22 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#23 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\web\\Reque...', Array, Array)
#24 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\web\\Reque...', Array, Array)
#25 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\config\app.web.php(13): yii\BaseYii::createObject(Array)
#26 [internal function]: {closure}()
#27 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(536): call_user_func_array(Object(Closure), Array)
#28 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->invoke(Object(Closure), Array)
#29 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\ServiceLocator.php(137): yii\BaseYii::createObject(Object(Closure))
#30 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Module.php(742): yii\di\ServiceLocator->get('request', true)
#31 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(335): yii\base\Module->get('request', true)
#32 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\web\Application.php(160): craft\web\Application->get('request')
#33 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(1394): yii\web\Application->getRequest()
#34 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(101): craft\web\Application->_preInit()
#35 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(109): craft\web\Application->init()
#36 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Application.php(206): yii\base\BaseObject->__construct(Array)
#37 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(92): yii\base\Application->__construct(Array)
#38 [internal function]: craft\web\Application->__construct(Array)
#39 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#40 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\web\\Appli...', Array, Array)
#41 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\web\\Appli...', Array, Array)
#42 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\bootstrap\bootstrap.php(246): yii\BaseYii::createObject(Array)
#43 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\bootstrap\web.php(51): require('C:\\customer\\amate...')
#44 C:\customer\customer_department_craft_hyperlane\web\index.php(20): require('C:\\customer\\amate...')
#45 {main}

Next yii\db\Exception: SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO) in C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\db\Connection.php:642
Stack trace:
#0 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\db\Connection.php(152): yii\db\Connection->open()
#1 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(812): craft\db\Connection->open()
#2 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(291): craft\web\Application->getIsDbConnectionValid()
#3 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\services\Sites.php(1127): craft\web\Application->getIsInstalled()
#4 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\services\Sites.php(465): craft\services\Sites->_loadAllSites()
#5 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Component.php(180): craft\services\Sites->setCurrentSite(NULL)
#6 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(558): yii\base\Component->__set('currentSite', NULL)
#7 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(107): yii\BaseYii::configure(Object(craft\services\Sites), Array)
#8 [internal function]: yii\base\BaseObject->__construct(Array)
#9 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#10 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\services\\...', Array, Array)
#11 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\services\\...', Array, Array)
#12 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#13 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Module.php(742): yii\di\ServiceLocator->get('sites', true)
#14 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(335): yii\base\Module->get('sites', true)
#15 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Instance.php(164): craft\web\Application->get('sites')
#16 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Instance.php(137): yii\di\Instance->get(NULL)
#17 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Request.php(223): yii\di\Instance::ensure(Object(yii\di\Instance), 'craft\\services\\...')
#18 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(109): craft\web\Request->init()
#19 [internal function]: yii\base\BaseObject->__construct(Array)
#20 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#21 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\web\\Reque...', Array, Array)
#22 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\web\\Reque...', Array, Array)
#23 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\config\app.web.php(13): yii\BaseYii::createObject(Array)
#24 [internal function]: {closure}()
#25 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(536): call_user_func_array(Object(Closure), Array)
#26 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->invoke(Object(Closure), Array)
#27 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\ServiceLocator.php(137): yii\BaseYii::createObject(Object(Closure))
#28 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Module.php(742): yii\di\ServiceLocator->get('request', true)
#29 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(335): yii\base\Module->get('request', true)
#30 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\web\Application.php(160): craft\web\Application->get('request')
#31 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(1394): yii\web\Application->getRequest()
#32 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(101): craft\web\Application->_preInit()
#33 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(109): craft\web\Application->init()
#34 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Application.php(206): yii\base\BaseObject->__construct(Array)
#35 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(92): yii\base\Application->__construct(Array)
#36 [internal function]: craft\web\Application->__construct(Array)
#37 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#38 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\web\\Appli...', Array, Array)
#39 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\web\\Appli...', Array, Array)
#40 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\bootstrap\bootstrap.php(246): yii\BaseYii::createObject(Array)
#41 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\bootstrap\web.php(51): require('C:\\customer\\amate...')
#42 C:\customer\customer_department_craft_hyperlane\web\index.php(20): require('C:\\customer\\amate...')
#43 {main}

Next craft\errors\DbConnectException: Craft CMS can’t connect to the database with the credentials in config/db.php. in C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\db\Connection.php:173
Stack trace:
#0 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(812): craft\db\Connection->open()
#1 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(291): craft\web\Application->getIsDbConnectionValid()
#2 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\services\Sites.php(1127): craft\web\Application->getIsInstalled()
#3 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\services\Sites.php(465): craft\services\Sites->_loadAllSites()
#4 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Component.php(180): craft\services\Sites->setCurrentSite(NULL)
#5 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(558): yii\base\Component->__set('currentSite', NULL)
#6 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(107): yii\BaseYii::configure(Object(craft\services\Sites), Array)
#7 [internal function]: yii\base\BaseObject->__construct(Array)
#8 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#9 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\services\\...', Array, Array)
#10 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\services\\...', Array, Array)
#11 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\ServiceLocator.php(137): yii\BaseYii::createObject(Array)
#12 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Module.php(742): yii\di\ServiceLocator->get('sites', true)
#13 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(335): yii\base\Module->get('sites', true)
#14 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Instance.php(164): craft\web\Application->get('sites')
#15 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Instance.php(137): yii\di\Instance->get(NULL)
#16 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Request.php(223): yii\di\Instance::ensure(Object(yii\di\Instance), 'craft\\services\\...')
#17 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(109): craft\web\Request->init()
#18 [internal function]: yii\base\BaseObject->__construct(Array)
#19 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#20 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\web\\Reque...', Array, Array)
#21 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\web\\Reque...', Array, Array)
#22 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\config\app.web.php(13): yii\BaseYii::createObject(Array)
#23 [internal function]: {closure}()
#24 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(536): call_user_func_array(Object(Closure), Array)
#25 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->invoke(Object(Closure), Array)
#26 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\ServiceLocator.php(137): yii\BaseYii::createObject(Object(Closure))
#27 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Module.php(742): yii\di\ServiceLocator->get('request', true)
#28 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(335): yii\base\Module->get('request', true)
#29 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\web\Application.php(160): craft\web\Application->get('request')
#30 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\base\ApplicationTrait.php(1394): yii\web\Application->getRequest()
#31 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(101): craft\web\Application->_preInit()
#32 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\BaseObject.php(109): craft\web\Application->init()
#33 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\base\Application.php(206): yii\base\BaseObject->__construct(Array)
#34 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\src\web\Application.php(92): yii\base\Application->__construct(Array)
#35 [internal function]: craft\web\Application->__construct(Array)
#36 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(406): ReflectionClass->newInstanceArgs(Array)
#37 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\di\Container.php(165): yii\di\Container->build('craft\\web\\Appli...', Array, Array)
#38 C:\customer\customer_department_craft_hyperlane\vendor\yiisoft\yii2\BaseYii.php(365): yii\di\Container->get('craft\\web\\Appli...', Array, Array)
#39 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\bootstrap\bootstrap.php(246): yii\BaseYii::createObject(Array)
#40 C:\customer\customer_department_craft_hyperlane\vendor\craftcms\cms\bootstrap\web.php(51): require('C:\\customer\\amate...')
#41 C:\customer\customer_department_craft_hyperlane\web\index.php(20): require('C:\\customer\\amate...')
#42 {main}
2020-09-30 08:35:22 [-][-][-][trace][yii\base\Application::bootstrap] Bootstrap with omnilight\scheduling\Bootstrap::bootstrap()
2020-09-30 08:35:22 [-][-][-][trace][yii\base\Module::getModule] Loading module: site-module
2020-09-30 08:35:22 [-][-][-][info][modules\sitemodule\SiteModule::init] SiteModule module loaded
2020-09-30 08:35:22 [-][-][-][trace][yii\base\Application::bootstrap] Bootstrap with modules\sitemodule\SiteModule
2020-09-30 08:35:22 [-][-][-][info][yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=
2020-09-30 08:35:22 [-][-][-][profile begin][yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=
2020-09-30 08:35:22 [-][-][-][profile end][yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=
2020-09-30 08:35:22 [-][-][-][error][craft\db\Connection::open] SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
2020-09-30 08:35:22 [-][-][-][error][craft\db\Connection::open] SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO)
2020-09-30 08:35:22 [-][-][-][info][application] $_GET = [
    'p' => 'admin/actions/element-indexes/get-elements'
    'v' => '1601454922784'
]

$_POST = []

$_FILES = []

$_COOKIE = [
    '1031b8c41dfff97a311a7ac99863bdc5_username' => '5b8a62e3757099a418b3b4005999a138af444b2e19275960c333817a878ff4e3a:2:{i:0;s:41:\"1031b8c41dfff97a311a7ac99863bdc5_username\";i:1;s:5:\"admin\";}'
    '__stripe_mid' => '3886e460-5884-430f-aad6-95d3fa9f41a0'
    'cookieconsent_status' => 'allow'
    '_ga' => 'GA1.2.1564619219.1592828510'
    'Craft-83fc0062-6c4b-445a-8791-2d7c24bad817:siteId' => '5'
    'CRAFT_CSRF_TOKEN' => '•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••'
    'CraftSessionId' => 'tv4s4rjbs3h7ogtcj9s3457qg6'
    '1031b8c41dfff97a311a7ac99863bdc5_identity' => '106e0b9b3b8dc2d989ae9b1bc435a7e62c964adc9f856c9db592cd5d31e65a71a:2:{i:0;s:41:\"1031b8c41dfff97a311a7ac99863bdc5_identity\";i:1;s:245:\"[1,\"[\\\"8T7IjRXlT-uEFosFh2R9FhLjWxmQonkrI_wck6hn3-Ch2RswxDPimD2i9KvX-HksSOVfEonPDLQXgTzNM3QkgiDf5AK8ntx6e31J\\\",null,\\\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36\\\"]\",1209600]\";}'
    '_gid' => 'GA1.2.1392250382.1601453962'
]

$_SERVER = [
    'AccessControlAllowOrigin' => 'http://department.craft'
    'HTTP_HOST' => 'department.craft'
    'HTTP_CONNECTION' => 'keep-alive'
    'CONTENT_LENGTH' => '355'
    'HTTP_X_REGISTERED_JS_FILES' => ',http://department.craft/cpresources/cfa5557c/axios.min.js?v=1600780736,http://department.craft/cpresources/185b653b/d3.js?v=1600780736,http://department.craft/cpresources/b5c4d218/element-resize-detector.js?v=1600780736,http://department.craft/cpresources/9a5479ed/jquery.js?v=1600780736,http://department.craft/cpresources/115a79a8/jquery.mobile-events.js?v=1600780736,http://department.craft/cpresources/8bdb8e90/velocity.js?v=1600780736,http://department.craft/cpresources/2be672bd/garnish.js?v=1600780736,http://department.craft/cpresources/c5721535/jquery-ui.js?v=1600780736,http://department.craft/cpresources/97fc2178/jquery.payment.js?v=1600780736,http://department.craft/cpresources/16fe456a/picturefill.js?v=1600780736,http://department.craft/cpresources/428068ee/selectize.js?v=1600780736,http://department.craft/cpresources/e164494/jquery.fileupload.js?v=1600780736,http://department.craft/cpresources/48ec2c64/xregexp-all.js?v=1600780736,http://department.craft/cpresources/3ea0a683/fabric.js?v=1600780736,http://department.craft/cpresources/2b57b83/iframeResizer.js?v=1600780736,http://department.craft/cpresources/d5f2e0c9/js/Craft.min.js?v=1600849966,http://department.craft/cpresources/d86dd088/js/SiteModule.js?v=1600861220,http://department.craft/cpresources/77aa72e9/main.js?v=1600076889'
    'HTTP_ACCEPT' => 'application/json, text/plain, */*'
    'HTTP_X_CSRF_TOKEN' => '••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••'
    'HTTP_X_REQUESTED_WITH' => 'XMLHttpRequest'
    'HTTP_USER_AGENT' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36'
    'HTTP_X_REGISTERED_ASSET_BUNDLES' => ',modules\\sitemodule\\assetbundles\\sitemodule\\SiteModuleAsset,craft\\web\\assets\\cp\\CpAsset,craft\\web\\assets\\axios\\AxiosAsset,craft\\web\\assets\\d3\\D3Asset,craft\\web\\assets\\elementresizedetector\\ElementResizeDetectorAsset,craft\\web\\assets\\garnish\\GarnishAsset,yii\\web\\JqueryAsset,craft\\web\\assets\\jquerytouchevents\\JqueryTouchEventsAsset,craft\\web\\assets\\velocity\\VelocityAsset,craft\\web\\assets\\jqueryui\\JqueryUiAsset,craft\\web\\assets\\jquerypayment\\JqueryPaymentAsset,craft\\web\\assets\\datepickeri18n\\DatepickerI18nAsset,craft\\web\\assets\\picturefill\\PicturefillAsset,craft\\web\\assets\\selectize\\SelectizeAsset,craft\\web\\assets\\fileupload\\FileUploadAsset,craft\\web\\assets\\xregexp\\XregexpAsset,craft\\web\\assets\\fabric\\FabricAsset,craft\\web\\assets\\iframeresizer\\IframeResizerAsset,spicyweb\\embeddedassets\\assets\\Main'
    'CONTENT_TYPE' => 'application/json;charset=UTF-8'
    'HTTP_ORIGIN' => 'http://department.craft'
    'HTTP_REFERER' => 'http://department.craft/admin/entries/services'
    'HTTP_ACCEPT_ENCODING' => 'gzip, deflate'
    'HTTP_ACCEPT_LANGUAGE' => 'en,no;q=0.9,en-US;q=0.8,nb;q=0.7,nn;q=0.6'
    'HTTP_COOKIE' => '1031b8c41dfff97a311a7ac99863bdc5_username=5b8a62e3757099a418b3b4005999a138af444b2e19275960c333817a878ff4e3a%3A2%3A%7Bi%3A0%3Bs%3A41%3A%221031b8c41dfff97a311a7ac99863bdc5_username%22%3Bi%3A1%3Bs%3A5%3A%22admin%22%3B%7D; __stripe_mid=3886e460-5884-430f-aad6-95d3fa9f41a0; cookieconsent_status=allow; _ga=GA1.2.1564619219.1592828510; Craft-83fc0062-6c4b-445a-8791-2d7c24bad817:siteId=5; CRAFT_CSRF_TOKEN=888f00ad09448928eba122316ac7b0820802cd8be42b25bc1adb10c4ae6e1edea%3A2%3A%7Bi%3A0%3Bs%3A16%3A%22CRAFT_CSRF_TOKEN%22%3Bi%3A1%3Bs%3A208%3A%22vZY9878c2ZqfoyMfgydypRnlFR8q4yNedpwicDT4%7C199466b30c415d6b05c6dd0091948939ae38e9acf70c265c2311c1c2fd761a4evZY9878c2ZqfoyMfgydypRnlFR8q4yNedpwicDT4%7C1%7C%242y%2413%24RcRWxsXmez2GksenYTg%2FIuoJ3SngpL2meYAxDx.nAffIXypwcuV9C%22%3B%7D; CraftSessionId=tv4s4rjbs3h7ogtcj9s3457qg6; 1031b8c41dfff97a311a7ac99863bdc5_identity=106e0b9b3b8dc2d989ae9b1bc435a7e62c964adc9f856c9db592cd5d31e65a71a%3A2%3A%7Bi%3A0%3Bs%3A41%3A%221031b8c41dfff97a311a7ac99863bdc5_identity%22%3Bi%3A1%3Bs%3A245%3A%22%5B1%2C%22%5B%5C%228T7IjRXlT-uEFosFh2R9FhLjWxmQonkrI_wck6hn3-Ch2RswxDPimD2i9KvX-HksSOVfEonPDLQXgTzNM3QkgiDf5AK8ntx6e31J%5C%22%2Cnull%2C%5C%22Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F85.0.4183.121+Safari%2F537.36%5C%22%5D%22%2C1209600%5D%22%3B%7D; _gid=GA1.2.1392250382.1601453962'
    'PATH' => 'C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Program Files\\PHP\\v7.3;C:\\Program Files (x86)\\iis express\\PHP\\v7.1;C:\\Program Files\\Microsoft MPI\\Bin\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\iCLS\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\iCLS\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files\\nodejs\\;C:\\Program Files (x86)\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\ManagementStud;C:\\ProgramData\\ComposerSetup\\bin;C:\\Program Files\\dotnet\\;c:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;c:\\Program Files\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;c:\\Program Files (x86)\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps'
    'SystemRoot' => 'C:\\WINDOWS'
    'COMSPEC' => 'C:\\WINDOWS\\system32\\cmd.exe'
    'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
    'WINDIR' => 'C:\\WINDOWS'
    'SERVER_SIGNATURE' => '<address>Apache/2.4.37 (Win64) OpenSSL/1.1.1a PHP/7.3.1 Server at department.craft Port 80</address>
'
    'SERVER_SOFTWARE' => 'Apache/2.4.37 (Win64) OpenSSL/1.1.1a PHP/7.3.1'
    'SERVER_NAME' => 'department.craft'
    'SERVER_ADDR' => '::1'
    'SERVER_PORT' => '80'
    'REMOTE_ADDR' => '::1'
    'DOCUMENT_ROOT' => 'C:/customer/customer_department_craft_hyperlane/web'
    'REQUEST_SCHEME' => 'http'
    'CONTEXT_PREFIX' => ''
    'CONTEXT_DOCUMENT_ROOT' => 'C:/customer/customer_department_craft_hyperlane/web'
    'SERVER_ADMIN' => 'wampserver@wampserver.invalid'
    'SCRIPT_FILENAME' => 'C:/customer/customer_department_craft_hyperlane/web/index.php'
    'REMOTE_PORT' => '56537'
    'GATEWAY_INTERFACE' => 'CGI/1.1'
    'SERVER_PROTOCOL' => 'HTTP/1.1'
    'REQUEST_METHOD' => 'POST'
    'QUERY_STRING' => 'p=admin/actions/element-indexes/get-elements&v=1601454922784'
    'REQUEST_URI' => '/index.php?p=admin/actions/element-indexes/get-elements&v=1601454922784'
    'SCRIPT_NAME' => '/index.php'
    'PHP_SELF' => '/index.php'
    'REQUEST_TIME_FLOAT' => 1601454922.808
    'REQUEST_TIME' => 1601454922
]

Additional info

AsyncQueue 2.1.1 Bulk Edit 2.0.5 CKEditor 1.0.0-beta.3 CP Field Inspect 1.2.2 Craft Commerce 3.2.6 Embedded Assets 2.3.4 Enupal Backup 1.5.0 Enupal Translate 1.3.0 Faceted Navigation 1.1.4 Feed Me 4.2.3 HTML Cache 1.0.15 Imager v2.4.0 Kint 1.0.0 Mailchimp Subscribe 3.0.3 Migration Assistant 3.2.1 Navigation 1.3.29 Neo 2.8.10.1 NSM Fields 0.0.24 Redactor 2.7.5 Scout 2.3.1 Section Field 1.1.0 SEO 3.6.6 Super Filter 1.1.80 Super Table 2.6.2 Tags 1.0.7 Typed link field 1.0.23 Webhooks 2.3.2

angrybrad commented 3 years ago

Access denied for user ''@'localhost'

It looks like the MySQL username is being dropped off (should be someuser@localhost).

Verify that the username is correct in your .env file and it's correctly being pulled in through config/db.php.

angrybrad commented 3 years ago

Closing for lack of activity.