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/shortcodes/price_table.php
<?php
// [ux_price_table]
function ux_price_table( $atts, $content = null ){
  extract( shortcode_atts( array(
    'class' => '',
    'visibility' => '',
    'title' => 'Title',
    'price' => '$99.99',
    'description' => '',
    'featured' => '',
    'radius' => '',
    'color' => '',
    'bg_color' => '',
    'depth' => '',
    'depth_hover' => '3',

    // Depricated
    'button_style' => '',
    'button_text' => '',
    'button_link' => '',
  ), $atts ) );

  if($visibility == 'hidden') return;

  ob_start();

  $classes = array('pricing-table','ux_price_table');
  $classes_wrapper = array('pricing-table-wrapper');

  $classes[] = 'text-center';

  if( $class ) $classes[] = $class;
  if( $visibility ) $classes[] = $visibility;

  if($color == 'dark') $classes_wrapper[] = 'dark';
  if($depth) $classes[] = 'box-shadow-'.$depth;
  if($depth_hover) $classes[] = 'box-shadow-'.$depth_hover.'-hover';
  if($featured) $classes[] = 'featured-table';

  $css_args = array(
      array( 'attribute' => 'border-radius', 'value' => $radius, 'unit' => 'px'),
      array( 'attribute' => 'background-color', 'value' => $bg_color ),
  );

?>
<div class="<?php echo implode(' ', $classes_wrapper); ?>">
  <div class="<?php echo implode(' ', $classes); ?>"<?php echo get_shortcode_inline_css($css_args); ?>>
    <div class="pricing-table-header">
      <div class="title uppercase strong"><?php echo $title;?></div>
      <div class="price is-xxlarge"><?php echo $price;?></div>
      <?php if(!empty($description)) { ?>
        <div class="description is-small">
          <?php echo $description;?>
        </div>
      <?php } ?>
    </div>
    <div class="pricing-table-items items">
      <?php echo do_shortcode( $content ); ?>
    </div>
    <?php if($button_text) { ?>
    <div class="cta-button">
        <a class="button <?php echo $button_style;?>" href="<?php echo $button_link;?>">
        <?php echo $button_text;?></a>
    </div>
    <?php } ?>
  </div>
</div>

<?php
    $content = ob_get_contents();
    ob_end_clean();
    return $content;
}
add_shortcode('ux_price_table', 'ux_price_table');

// Price bullet
function bullet_item( $atts, $content = null ){
  extract( shortcode_atts( array(
    'text' => 'Add any text here...',
    'tooltip' => '',
    'enabled' => ''
  ), $atts ) );
    $tooltip_html = '';
    $classes = array('bullet-item');
    if($enabled == 'false') $classes[] = 'is-disabled';
    if($tooltip) {
      $classes[] = 'tooltip';
      $classes[] = 'has-hover';
      $tooltip_html = '<span class="tag-label bullet-more-info circle">?</span>';
    }
    $content = '<div class="'.implode(' ',$classes).'" title="'.$tooltip.'"><span class="text">'.$text.'</span>'.$tooltip_html.'</div>';
    return $content;
}
add_shortcode('bullet_item', 'bullet_item');