D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
everqlsh
/
www
/
wp-admin
/
user
/
577040
/
Filename :
debug.tar
back
Copy
inspector.php 0000644 00000006470 15162174524 0007301 0 ustar 00 <?php namespace Elementor\Core\Debug; use Elementor\Settings; use Elementor\Tools; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Inspector { protected $is_enabled = false; protected $log = []; /** * @since 2.1.2 * @access public */ public function __construct() { $is_debug = ( defined( 'WP_DEBUG' ) && WP_DEBUG ); $option = get_option( 'elementor_enable_inspector', null ); $this->is_enabled = is_null( $option ) ? $is_debug : 'enable' === $option; if ( $this->is_enabled ) { add_action( 'admin_bar_menu', [ $this, 'add_menu_in_admin_bar' ], 201 ); } add_action( 'elementor/admin/after_create_settings/' . Tools::PAGE_ID, [ $this, 'register_admin_tools_fields' ], 50 ); } /** * @since 2.1.3 * @access public */ public function is_enabled() { return $this->is_enabled; } /** * @since 2.1.3 * @access public */ public function register_admin_tools_fields( Tools $tools ) { $tools->add_fields( Settings::TAB_GENERAL, 'tools', [ 'enable_inspector' => [ 'label' => esc_html__( 'Debug Bar', 'elementor' ), 'field_args' => [ 'type' => 'select', 'std' => $this->is_enabled ? 'enable' : '', 'options' => [ '' => esc_html__( 'Disable', 'elementor' ), 'enable' => esc_html__( 'Enable', 'elementor' ), ], 'desc' => esc_html__( 'Debug Bar adds an admin bar menu that lists all the templates that are used on a page that is being displayed.', 'elementor' ), ], ], ] ); } /** * @since 2.1.2 * @access public */ public function parse_template_path( $template ) { // `untrailingslashit` for windows path style. if ( 0 === strpos( $template, untrailingslashit( ELEMENTOR_PATH ) ) ) { return 'Elementor - ' . basename( $template ); } if ( 0 === strpos( $template, get_stylesheet_directory() ) ) { return wp_get_theme()->get( 'Name' ) . ' - ' . basename( $template ); } $plugins_dir = dirname( ELEMENTOR_PATH ); if ( 0 === strpos( $template, $plugins_dir ) ) { return ltrim( str_replace( $plugins_dir, '', $template ), '/\\' ); } return str_replace( WP_CONTENT_DIR, '', $template ); } /** * @since 2.1.2 * @access public */ public function add_log( $module, $title, $url = '' ) { if ( ! $this->is_enabled ) { return; } if ( ! isset( $this->log[ $module ] ) ) { $this->log[ $module ] = []; } $this->log[ $module ][] = [ 'title' => $title, 'url' => $url, ]; } /** * @since 2.1.2 * @access public */ public function add_menu_in_admin_bar( \WP_Admin_Bar $wp_admin_bar ) { if ( empty( $this->log ) ) { return; } $wp_admin_bar->add_node( [ 'id' => 'elementor_inspector', 'title' => esc_html__( 'Elementor Debugger', 'elementor' ), ] ); foreach ( $this->log as $module => $log ) { $module_id = sanitize_key( $module ); $wp_admin_bar->add_menu( [ 'id' => 'elementor_inspector_' . $module_id, 'parent' => 'elementor_inspector', 'title' => $module, ] ); foreach ( $log as $index => $row ) { $url = $row['url']; unset( $row['url'] ); $wp_admin_bar->add_menu( [ 'id' => 'elementor_inspector_log_' . $module_id . '_' . $index, 'parent' => 'elementor_inspector_' . $module_id, 'href' => $url, 'title' => implode( ' > ', $row ), 'meta' => [ 'target' => '_blank', ], ] ); } } } } classes/theme-missing.php 0000644 00000001205 15162174526 0011472 0 ustar 00 <?php namespace Elementor\Core\Debug\Classes; use Elementor\Modules\SafeMode\Module as Safe_Mode; class Theme_Missing extends Inspection_Base { public function run() { $safe_mode_enabled = get_option( Safe_Mode::OPTION_ENABLED, '' ); if ( ! empty( $safe_mode_enabled ) ) { return true; } $theme = wp_get_theme(); return $theme->exists(); } public function get_name() { return 'theme-missing'; } public function get_message() { return esc_html__( 'Some of your theme files are missing.', 'elementor' ); } public function get_help_doc_url() { return 'https://go.elementor.com/preview-not-loaded/#theme-files'; } } classes/error_log 0000644 00000027006 15162174530 0010127 0 ustar 00 [16-Oct-2025 04:07:40 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [16-Oct-2025 04:07:41 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [16-Oct-2025 04:11:28 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [16-Oct-2025 11:36:54 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [16-Oct-2025 11:36:58 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [16-Oct-2025 11:37:01 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [16-Oct-2025 11:40:07 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [16-Oct-2025 11:44:25 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [16-Oct-2025 11:44:41 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [16-Oct-2025 11:51:48 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [16-Oct-2025 11:58:26 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [16-Oct-2025 12:00:32 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [16-Oct-2025 12:31:46 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [16-Oct-2025 12:32:18 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [16-Oct-2025 12:36:14 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [16-Oct-2025 12:50:55 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [16-Oct-2025 12:55:40 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [19-Nov-2025 22:48:05 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [19-Nov-2025 22:48:07 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [19-Nov-2025 22:48:17 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [20-Nov-2025 03:39:35 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [20-Nov-2025 03:39:35 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [20-Nov-2025 03:39:37 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [20-Nov-2025 03:41:15 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [20-Nov-2025 03:41:33 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [20-Nov-2025 03:43:36 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [20-Nov-2025 03:44:04 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [20-Nov-2025 03:58:09 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [20-Nov-2025 04:03:35 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [20-Nov-2025 04:08:05 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 [29-Mar-2026 00:16:11 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php:6 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/theme-missing.php on line 6 [29-Mar-2026 00:16:14 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php:7 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/htaccess.php on line 7 [29-Mar-2026 00:17:38 UTC] PHP Fatal error: Uncaught Error: Class "Elementor\Core\Debug\Classes\Inspection_Base" not found in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php:4 Stack trace: #0 {main} thrown in /home/everqlsh/public_html/wp-content/plugins/elementor/core/debug/classes/shop-page-edit.php on line 4 classes/htaccess.php 0000644 00000002412 15162174532 0010514 0 ustar 00 <?php namespace Elementor\Core\Debug\Classes; use Elementor\Modules\SafeMode\Module as Safe_Mode; use Elementor\Utils; class Htaccess extends Inspection_Base { private $message = ''; public function __construct() { $this->message = esc_html__( 'Your site\'s .htaccess file appears to be missing.', 'elementor' ); } public function run() { $safe_mode_enabled = get_option( Safe_Mode::OPTION_ENABLED, '' ); if ( empty( $safe_mode_enabled ) || is_multisite() ) { return true; } $permalink_structure = get_option( 'permalink_structure' ); if ( empty( $permalink_structure ) || empty( $_SERVER['SERVER_SOFTWARE'] ) ) { return true; } $server = strtoupper( Utils::get_super_global_value( $_SERVER, 'SERVER_SOFTWARE' ) ); if ( strstr( $server, 'APACHE' ) ) { $htaccess_file = get_home_path() . '.htaccess'; /* translators: %s: Path to .htaccess file. */ $this->message .= ' ' . sprintf( esc_html__( 'File Path: %s', 'elementor' ), $htaccess_file ) . ' '; return file_exists( $htaccess_file ); } return true; } public function get_name() { return 'apache-htaccess'; } public function get_message() { return $this->message; } public function get_help_doc_url() { return 'https://go.elementor.com/preview-not-loaded/#htaccess'; } } classes/shop-page-edit.php 0000644 00000001305 15162174534 0011527 0 ustar 00 <?php namespace Elementor\Core\Debug\Classes; class Shop_Page_Edit extends Inspection_Base { public function run() { return false; } public function get_name() { return 'shop-page-edit'; } public function get_message() { return esc_html__( 'You are trying to edit the Shop Page although it is a Product Archive. Use the Theme Builder to create your Shop Archive template instead', 'elementor' ); } public function get_help_doc_url() { return 'https://elementor.com/help/the-content-area-was-not-found-error/#error-appears-on-woocommerce-pages'; } public function get_header_message() { return esc_html__( 'Sorry, The content area was not been found on your page', 'elementor' ); } } classes/inspection-base.php 0000644 00000000766 15162174536 0012020 0 ustar 00 <?php namespace Elementor\Core\Debug\Classes; abstract class Inspection_Base { /** * @return bool */ abstract public function run(); /** * @return string */ abstract public function get_name(); /** * @return string */ abstract public function get_message(); /** * @return string */ public function get_header_message() { return esc_html__( 'The preview could not be loaded', 'elementor' ); } /** * @return string */ abstract public function get_help_doc_url(); } loading-inspection-manager.php 0000644 00000003370 15162174537 0012471 0 ustar 00 <?php namespace Elementor\Core\Debug; use Elementor\Core\Debug\Classes\Inspection_Base; use Elementor\Core\Debug\Classes\Shop_Page_Edit; use Elementor\Core\Debug\Classes\Theme_Missing; use Elementor\Core\Debug\Classes\Htaccess; use Elementor\Utils; class Loading_Inspection_Manager { public static $_instance = null; public static function instance() { if ( null === self::$_instance ) { self::$_instance = new Loading_Inspection_Manager(); } return self::$_instance; } /** @var Inspection_Base[] */ private $inspections = []; public function register_inspections() { $this->inspections['theme-missing'] = new Theme_Missing(); $this->inspections['htaccess'] = new Htaccess(); $is_editing_shop_page = Utils::get_super_global_value( $_GET, 'post' ) == get_option( 'woocommerce_shop_page_id' ); if ( $is_editing_shop_page ) { $this->inspections['shop-page-edit'] = new Shop_Page_Edit(); } } /** * @param Inspection_Base $inspection */ public function register_inspection( $inspection ) { $this->inspections[ $inspection->get_name() ] = $inspection; } public function run_inspections() { $debug_data = [ 'message' => esc_html__( "We’re sorry, but something went wrong. Click on 'Learn more' and follow each of the steps to quickly solve it.", 'elementor' ), 'header' => esc_html__( 'The preview could not be loaded', 'elementor' ), 'doc_url' => 'https://go.elementor.com/preview-not-loaded/', ]; foreach ( $this->inspections as $inspection ) { if ( ! $inspection->run() ) { $debug_data = [ 'message' => $inspection->get_message(), 'header' => $inspection->get_header_message(), 'doc_url' => $inspection->get_help_doc_url(), 'error' => true, ]; break; } } return $debug_data; } }