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/2
System: Linux ns1.websitegang.club 5.4.0-149-generic #166-Ubuntu SMP Tue Apr 18 16:51:45 UTC 2023 x86_64
User: kunchorn (1109)
PHP: 8.2.29
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/kunchorn/public_html/wp-content/themes/flatsome/inc/woocommerce/structure-wc-cart.php
<?php


// Move Cross sell product to under cart
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
add_action( 'woocommerce_after_cart_table', 'woocommerce_cross_sell_display' );

// Add Content after Cart
if(!function_exists('flatsome_html_cart_footer')) {
  function flatsome_html_cart_footer(){
  	$content = get_theme_mod('html_cart_footer');
      echo '<div class="cart-footer-content after-cart-content relative">'.do_shortcode($content).'</div>';
  }
  add_action( 'woocommerce_after_cart', 'flatsome_html_cart_footer', 99);
}


// Add Content in cart sidebar
if(!function_exists('flatsome_html_cart_sidebar')) {
  function flatsome_html_cart_sidebar(){
  	$content = get_theme_mod('html_cart_sidebar');
  	$icons = get_theme_mod('payment_icons_placement');

      echo '<div class="cart-sidebar-content relative">'.do_shortcode($content).'</div>';
      if(is_array($icons) && in_array('cart', $icons)) echo do_shortcode('[ux_payment_icons]');
  }
  add_action( 'flatsome_cart_sidebar', 'flatsome_html_cart_sidebar', 10);
}


// Continue Shopping button
if(!function_exists('flatsome_continue_shopping')) {
  function flatsome_continue_shopping(){
    wc_get_template_part('cart/continue-shopping');
  }
}
add_action('woocommerce_cart_actions', 'flatsome_continue_shopping', 10);


// Move Privacy policy to bottom
function flatsome_fix_policy_text(){
  if(function_exists('wc_checkout_privacy_policy_text')) {
    remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_checkout_privacy_policy_text', 20 );
    add_action( 'woocommerce_checkout_after_order_review', 'wc_checkout_privacy_policy_text', 1 );
  }
}
add_action( 'init', 'flatsome_fix_policy_text', 10);