WordPress database error: [Server shutdown in progress]SELECT option_value FROM wp_options WHERE option_name = 'so_widget_settings[SiteOrigin_Widget_Editor_Widget]' LIMIT 1
if ( $is_ipv6 && extension_loaded( 'mysqlnd' ) ) { $host = "[$host]"; } if ( WP_DEBUG ) { mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); } else { // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged @mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); } // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $this->files->getRequire($path, $data); } catch (Throwable $e) { $this->handleViewException($e, $obLevel); } return ltrim(ob_get_clean()); } } // Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other templates. We also keep a stack of views // which have been rendered for right exception messages to be generated. $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data); array_pop($this->lastCompiled); return $results; } * * @return string */ protected function getContents() { return $this->engine->get($this->path, $this->gatherData()); } /** * Get the data bound to the view instance. * // clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each sections get flushed out next time a view is created and // no old sections are staying around in the memory of an environment. $this->factory->decrementRender(); * @throws \Throwable */ public function render(callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when <body <?php body_class(); ?>> <?php wp_body_open(); ?> <?php do_action('get_header'); ?> <div id="app"> <?php echo view(app('sage.view'), app('sage.data'))->render(); ?> </div> <?php do_action('get_footer'); ?> <?php wp_footer(); ?> </body> * * @param string $template The path of the template to include. */ $template = apply_filters( 'template_include', $template ); if ( $template ) { include $template; } elseif ( current_user_can( 'switch_themes' ) ) { $theme = wp_get_theme(); if ( $theme->errors() ) { wp_die( $theme->errors() ); } // Set up the WordPress query. wp(); // Load the theme template. require_once ABSPATH . WPINC . '/template-loader.php';} * @var bool */define( 'WP_USE_THEMES', true );/** Loads the WordPress Environment and Template */require __DIR__ . '/wp-blog-header.php'; if ( $is_ipv6 && extension_loaded( 'mysqlnd' ) ) { $host = "[$host]"; } if ( WP_DEBUG ) { mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); } else { // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged @mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); } * @throws \ErrorException */ public function handleError($level, $message, $file = '', $line = 0, $context = []) { try { parent::handleError($level, $message, $file, $line, $context); } catch (Throwable $e) { if (! apply_filters('acorn/throw_error_exception', true, $e)) { return false; } if ( $is_ipv6 && extension_loaded( 'mysqlnd' ) ) { $host = "[$host]"; } if ( WP_DEBUG ) { mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); } else { // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged @mysqli_real_connect( $this->dbh, $host, $this->dbuser, $this->dbpassword, null, $port, $socket, $client_flags ); } // of the "unable to connect" message on the bail() screen, if it appears. if ( $this->reconnect_retries === $tries && WP_DEBUG ) { error_reporting( $error_reporting ); } if ( $this->db_connect( false ) ) { if ( $error_reporting ) { error_reporting( $error_reporting ); } return true; } } } if ( empty( $this->dbh ) || 2006 === $mysql_errno ) { if ( $this->check_connection() ) { $this->_do_query( $query ); } else { $this->insert_id = 0; return false; } if ( $query ) { if ( $this->check_current_query && $this->check_safe_collation( $query ) ) { $this->check_current_query = false; } $this->query( $query ); } else { return null; } $new_array = array(); // Get meta info. $id_list = implode( ',', $non_cached_ids ); $id_column = ( 'user' === $meta_type ) ? 'umeta_id' : 'meta_id'; $meta_list = $wpdb->get_results( "SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list) ORDER BY $id_column ASC", ARRAY_A ); if ( ! empty( $meta_list ) ) { foreach ( $meta_list as $metarow ) { $mpid = (int) $metarow[ $column ]; $mkey = $metarow['meta_key']; * @param int[] $user_ids User ID numbers list */ function cache_users( $user_ids ) { global $wpdb; update_meta_cache( 'user', $user_ids ); $clean = _get_non_cached_ids( $user_ids, 'users' ); if ( empty( $clean ) ) { return; $author_ids = wp_list_pluck( $posts, 'post_author' ); $author_ids = array_map( 'absint', $author_ids ); $author_ids = array_unique( array_filter( $author_ids ) ); cache_users( $author_ids );}/** * Updates parent post caches for a list of post objects. * $post_ids = array_filter( $post_ids ); if ( $post_ids ) { _prime_post_caches( $post_ids, $this->query_vars['update_post_term_cache'], $this->query_vars['update_post_meta_cache'] ); } $post_objects = array_map( 'get_post', $this->posts ); update_post_author_caches( $post_objects ); } $this->in_the_loop = true; if ( -1 == $this->current_post ) { // Loop has just started. if ( ! isset( $wp_query ) ) { return; } $wp_query->the_post();}/* * Comments loop. */<?php $__env->startSection('content'); ?> <?php while(have_posts()): ?> <?php (the_post()); ?> <?php echo $__env->first(['partials.content-page', 'partials.content'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endwhile; ?><?php $__env->stopSection(); ?> $__data = $data; return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } return (static function () use ($__path, $__data) { extract($__data, EXTR_SKIP); return require $__path; })(); } throw new FileNotFoundException("File does not exist at path {$path}."); } // We'll evaluate the contents of the view inside a try/catch block so we can // flush out any stray output that might get out before an error occurs or // an exception is thrown. This prevents any partial views from leaking. try { $this->files->getRequire($path, $data); } catch (Throwable $e) { $this->handleViewException($e, $obLevel); } return ltrim(ob_get_clean()); } // Once we have the path to the compiled file, we will evaluate the paths with // typical PHP just like any other templates. We also keep a stack of views // which have been rendered for right exception messages to be generated. $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data); array_pop($this->lastCompiled); return $results; } * * @return string */ protected function getContents() { return $this->engine->get($this->path, $this->gatherData()); } /** * Get the data bound to the view instance. * // clear out the sections for any separate views that may be rendered. $this->factory->incrementRender(); $this->factory->callComposer($this); $contents = $this->getContents(); // Once we've finished rendering the view, we'll decrement the render count // so that each sections get flushed out next time a view is created and // no old sections are staying around in the memory of an environment. $this->factory->decrementRender(); * @throws \Throwable */ public function render(callable $callback = null) { try { $contents = $this->renderContents(); $response = isset($callback) ? $callback($this, $contents) : null; // Once we have the contents of the view, we will flush the sections if we are // done rendering all views so that there is nothing left hanging over when <body <?php body_class(); ?>> <?php wp_body_open(); ?> <?php do_action('get_header'); ?> <div id="app"> <?php echo view(app('sage.view'), app('sage.data'))->render(); ?> </div> <?php do_action('get_footer'); ?> <?php wp_footer(); ?> </body> * * @param string $template The path of the template to include. */ $template = apply_filters( 'template_include', $template ); if ( $template ) { include $template; } elseif ( current_user_can( 'switch_themes' ) ) { $theme = wp_get_theme(); if ( $theme->errors() ) { wp_die( $theme->errors() ); } // Set up the WordPress query. wp(); // Load the theme template. require_once ABSPATH . WPINC . '/template-loader.php';} * @var bool */define( 'WP_USE_THEMES', true );/** Loads the WordPress Environment and Template */require __DIR__ . '/wp-blog-header.php';|
[2/2]
ViewException
|
|---|
Illuminate\View\ViewException:
mysqli_real_connect(): (HY000/2002): Connection refused (View: /var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/resources/views/page.blade.php)
at /var/www/rightsdesk.com/wp-includes/class-wpdb.php:2019
at Illuminate\View\Engines\CompilerEngine->handleViewException()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/Engines/PhpEngine.php:60)
at Illuminate\View\Engines\PhpEngine->evaluatePath()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/Engines/CompilerEngine.php:61)
at Illuminate\View\Engines\CompilerEngine->get()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/View.php:139)
at Illuminate\View\View->getContents()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/View.php:122)
at Illuminate\View\View->renderContents()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/View.php:91)
at Illuminate\View\View->render()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/index.php:14)
at include('/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/index.php')
(/var/www/rightsdesk.com/wp-includes/template-loader.php:106)
at require_once('/var/www/rightsdesk.com/wp-includes/template-loader.php')
(/var/www/rightsdesk.com/wp-blog-header.php:19)
at require('/var/www/rightsdesk.com/wp-blog-header.php')
(/var/www/rightsdesk.com/index.php:17)
|
|
[1/2]
ErrorException
|
|---|
ErrorException:
mysqli_real_connect(): (HY000/2002): Connection refused
at /var/www/rightsdesk.com/wp-includes/class-wpdb.php:2019
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54)
at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
at mysqli_real_connect()
(/var/www/rightsdesk.com/wp-includes/class-wpdb.php:2019)
at wpdb->db_connect()
(/var/www/rightsdesk.com/wp-includes/class-wpdb.php:2206)
at wpdb->check_connection()
(/var/www/rightsdesk.com/wp-includes/class-wpdb.php:2343)
at wpdb->query()
(/var/www/rightsdesk.com/wp-includes/class-wpdb.php:3099)
at wpdb->get_results()
(/var/www/rightsdesk.com/wp-includes/meta.php:1173)
at update_meta_cache()
(/var/www/rightsdesk.com/wp-includes/pluggable.php:128)
at cache_users()
(/var/www/rightsdesk.com/wp-includes/post.php:7433)
at update_post_author_caches()
(/var/www/rightsdesk.com/wp-includes/class-wp-query.php:3635)
at WP_Query->the_post()
(/var/www/rightsdesk.com/wp-includes/query.php:1005)
at the_post()
(/var/www/rightsdesk.com/wp-content/cache/acorn/framework/views/63f36e2343da513e34d21532b5bc86eeb7c8e93e.php:2)
at require('/var/www/rightsdesk.com/wp-content/cache/acorn/framework/views/63f36e2343da513e34d21532b5bc86eeb7c8e93e.php')
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/filesystem/Filesystem.php:107)
at Illuminate\Filesystem\Filesystem::Illuminate\Filesystem\{closure}()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/filesystem/Filesystem.php:108)
at Illuminate\Filesystem\Filesystem->getRequire()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/Engines/PhpEngine.php:58)
at Illuminate\View\Engines\PhpEngine->evaluatePath()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/Engines/CompilerEngine.php:61)
at Illuminate\View\Engines\CompilerEngine->get()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/View.php:139)
at Illuminate\View\View->getContents()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/View.php:122)
at Illuminate\View\View->renderContents()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/vendor/illuminate/view/View.php:91)
at Illuminate\View\View->render()
(/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/index.php:14)
at include('/var/www/rightsdesk.com/wp-content/themes/rightsdesk-v4/index.php')
(/var/www/rightsdesk.com/wp-includes/template-loader.php:106)
at require_once('/var/www/rightsdesk.com/wp-includes/template-loader.php')
(/var/www/rightsdesk.com/wp-blog-header.php:19)
at require('/var/www/rightsdesk.com/wp-blog-header.php')
(/var/www/rightsdesk.com/index.php:17)
|