/** * Your base production configuration goes in this file. Environment-specific * overrides go in their respective config/environments/{{WP_ENV}}.php file. * * A good default policy is to deviate from the production config as little as * possible. Try to define as much of your configuration in this file as you * can. */ use Roots\WPConfig\Config; use function Env\env; /** * Directory containing all of the site's files * * @var string */ $root_dir = dirname(__DIR__); /** * Document Root * * @var string */ $webroot_dir = $root_dir . '/web'; var_dump($webroot_dir); /** * Use Dotenv to set required environment variables and load .env file in root * .env.local will override .env if it exists */ $env_files = file_exists($root_dir . '/.env.local') ? ['.env', '.env.local'] : ['.env']; $dotenv = Dotenv\Dotenv::createUnsafeImmutable($root_dir, $env_files, false); if (file_exists($root_dir . '/.env')) { $dotenv->load(); $dotenv->required(['WP_HOME', 'WP_SITEURL']); if (!env('DATABASE_URL')) { $dotenv->required(['DB_NAME', 'DB_USER', 'DB_PASSWORD']); } } /** * Set up our global environment constant and load its config first * Default: production */ define('WP_ENV', env('WP_ENV') ?: 'production'); /** * URLs */ Config::define('WP_HOME', env('WP_HOME')); Config::define('WP_SITEURL', env('WP_SITEURL')); /** * Custom Content Directory */ Config::define('CONTENT_DIR', '/app'); Config::define('WP_CONTENT_DIR', $webroot_dir . Config::get('CONTENT_DIR')); Config::define('WP_CONTENT_URL', Config::get('WP_HOME') . Config::get('CONTENT_DIR')); /** * DB settings */ Config::define('DB_NAME', env('DB_NAME')); Config::define('DB_USER', env('DB_USER')); Config::define('DB_PASSWORD', env('DB_PASSWORD')); Config::define('DB_HOST', env('DB_HOST') ?: 'localhost'); Config::define('DB_CHARSET', 'utf8mb4'); Config::define('DB_COLLATE', ''); $table_prefix = env('DB_PREFIX') ?: 'wp_'; if (env('DATABASE_URL')) { $dsn = (object) parse_url(env('DATABASE_URL')); Config::define('DB_NAME', substr($dsn->path, 1)); Config::define('DB_USER', $dsn->user); Config::define('DB_PASSWORD', isset($dsn->pass) ? $dsn->pass : null); Config::define('DB_HOST', isset($dsn->port) ? "{$dsn->host}:{$dsn->port}" : $dsn->host); } /** * Authentication Unique Keys and Salts */ Config::define('AUTH_KEY', env('AUTH_KEY')); Config::define('SECURE_AUTH_KEY', env('SECURE_AUTH_KEY')); Config::define('LOGGED_IN_KEY', env('LOGGED_IN_KEY')); Config::define('NONCE_KEY', env('NONCE_KEY')); Config::define('AUTH_SALT', env('AUTH_SALT')); Config::define('SECURE_AUTH_SALT', env('SECURE_AUTH_SALT')); Config::define('LOGGED_IN_SALT', env('LOGGED_IN_SALT')); Config::define('NONCE_SALT', env('NONCE_SALT')); /** * Custom Settings */ Config::define('AUTOMATIC_UPDATER_DISABLED', true); Config::define('DISABLE_WP_CRON', env('DISABLE_WP_CRON') ?: false); // Disable the plugin and theme file editor in the admin Config::define('DISALLOW_FILE_EDIT', true); // Disable plugin and theme updates and installation from the admin Config::define('DISALLOW_FILE_MODS', true); // Limit the number of post revisions that Wordpress stores (true (default WP): store every revision) Config::define('WP_POST_REVISIONS', env('WP_POST_REVISIONS') ?: 5); /** TWIZE settings */ Config::define('TWZ_GF_DEFAULT_RECPIENT_EMAIL', env('TWZ_GF_DEFAULT_RECPIENT_EMAIL') ?: false); Config::define('GTM_CODE', env('GTM_CODE') ?: false); //multisite setup define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', env('DOMAIN_CURRENT_SITE') ?: 'verfplaza.local.twize.nl'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE',env('SITE_ID_CURRENT_SITE') ?: 1); define('BLOG_ID_CURRENT_SITE',env('BLOG_ID_CURRENT_SITE') ?: 1); define('WC_TS_EASY_INTEGRATION_ENCRYPTION_KEY', 'fabb602b6abc48b32794979dcbe2d5aae4b71c88bf03df402f5de5163aa8cd2c'); /** * Debugging Settings */ Config::define('WP_DEBUG_DISPLAY', false); Config::define('WP_DEBUG_LOG', false); Config::define('SCRIPT_DEBUG', false); Config::define('upload_max_size', 5000); Config::define('COLOR_OVERVIEW', 34420); Config::define('PRODUCT_OVERVIEW', 39734); Config::define('BLOG_OVERVIEW', 34421); Config::define('COLOR_WIZARD_FORM', 3); /** * Allow WordPress to detect HTTPS when used behind a reverse proxy or a load balancer * See https://codex.wordpress.org/Function_Reference/is_ssl#Notes */ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') { $_SERVER['HTTPS'] = 'on'; } $env_config = __DIR__ . '/environments/' . WP_ENV . '.php'; if (file_exists($env_config)) { require_once $env_config; } Config::define('BCN_SETTINGS_FAVOR_LOCAL', true); /** * Kinsta CDN fix for Bedrock */ Config::define('KINSTA_CDN_USERDIRS', 'app'); /** * Fix Kinsta MU Plugins URL path with Bedrock */ $mu_plugins_url = Config::get('WP_CONTENT_URL') . '/mu-plugins'; Config::define('KINSTAMU_CUSTOM_MUPLUGIN_URL', "{$mu_plugins_url}/kinsta-mu-plugins"); Config::apply(); define('TWZ_SYNC_SETTINGS', [ 'connector_id' => 'color_excel', 'connector_type' => 'excel', 'post_type' => 'color', 'post_type_single' => 'Color', 'post_type_plural' => 'Colors', 'text_domain' => 'twz-connector', 'sync_strategy' => 'trash', // draft, trash, delete, add 'unique_sync_id' => 'id', // check for existing items 'unique_update_id' => 'id', // field for checking if items need updating 'feed_type' => 'xls', // json, xml, html, xls 'root_element' => 'data', // results,resultaten,data, false etc. ]); /** * Bootstrap WordPress */ if (!defined('ABSPATH')) { define('ABSPATH', $webroot_dir . '/wp/'); } define('WC_LOG_DIR', $webroot_dir . '/app/themes/verfplaza/assets/uploads/wc-logs');
Warning: mysqli_real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in /www/verfplaza_526/public/web/wp/wp-includes/class-wpdb.php on line 1982
WordPress › Error

Access denied for user ''@'localhost' (using password: NO)

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at could not be established. This could mean your host’s database server is down.

If you are unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress support forums.