A PHP Error was encountered

Severity: Warning

Message: mysqli::real_connect(): (HY000/2002): Cannot assign requested address

Filename: mysqli/mysqli_driver.php

Line Number: 201

Backtrace:

File: /www/wwwroot/dash.konsole.xyz/application/core/MY_Controller.php
Line: 343
Function: __construct

File: /www/wwwroot/dash.konsole.xyz/application/controllers/Api.php
Line: 12
Function: __construct

File: /www/wwwroot/dash.konsole.xyz/index.php
Line: 316
Function: require_once

Database Error

数据库发生错误。

无法使用提供的设置连接到数据库服务器。

Filename: core/MY_Controller.php

Line Number: 343


Fatal error: Uncaught Error: Call to a member function close() on string in /www/wwwroot/dash.konsole.xyz/application/core/MY_Controller.php:349 Stack trace: #0 [internal function]: Index_Controller->__destruct() #1 {main} thrown in /www/wwwroot/dash.konsole.xyz/application/core/MY_Controller.php on line 349
HEX
HEX
Server: Apache
System: Linux sys.digiflyeg.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User: opal (1023)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/opal/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Loader.php
<?php

namespace WPML\TM\Jobs;

use WPML\Core\WP\App\Resources;
use WPML\LIB\WP\Hooks;
use WPML\TranslationRoles\Service\AdministratorRoleManager;
use WPML\UIPage;

class Loader implements \IWPML_Backend_Action, \IWPML_DIC_Action {

	private $administratorRoleManager;
	public function __construct(
		AdministratorRoleManager $administratorRoleManager
	) {
		$this->administratorRoleManager = $administratorRoleManager;
	}
	public function add_hooks() {
		if ( wpml_is_ajax() ) {
			return;
		}

		if ( UIPage::isTMJobs( $_GET ) || UIPage::isTranslationQueue( $_GET ) ) {
			Hooks::onAction( 'wp_loaded' )
				->then( [ $this, 'verifyAdminInitialization' ] )
			     ->then( [ $this, 'getData' ] )
			     ->then( Resources::enqueueApp( 'jobs' ) );
		}
	}

	public function verifyAdminInitialization() {
		$this->administratorRoleManager->verifyCurrentUser();
	}

	public function getData() {
		$data = ( new \WPML_TM_Jobs_List_Script_Data() )->get();
		$data = ( new \WPML_TM_Scripts_Factory() )->build_localize_script_data( $data );

		return [
			'name' => 'WPML_TM_SETTINGS',
			'data' => $data,
		];
	}
}