n find_temp_files( $temp_path ) { $file_names = []; $possible_file_names = array_diff( scandir( $temp_path ), [ '.', '..' ] ); // Find nested files in the unzipped path. This happens for example when the user imports a Website Kit. foreach ( $possible_file_names as $possible_file_name ) { $full_possible_file_name = $temp_path . $possible_file_name; if ( is_dir( $full_possible_file_name ) ) { $file_names = array_merge( $file_names, $this->find_temp_files( $full_possible_file_name . '/' ) ); } else { $file_names[] = $full_possible_file_name; } } return $file_names; } }
Fatal error: Uncaught Error: Class "Elementor\Core\Files\File_Types\Zip" not found in /htdocs/wp-content/plugins/elementor/core/files/uploads-manager.php:58 Stack trace: #0 /htdocs/wp-content/plugins/elementor/core/files/uploads-manager.php(676): Elementor\Core\Files\Uploads_Manager->register_file_types() #1 /htdocs/wp-content/plugins/elementor/includes/plugin.php(765): Elementor\Core\Files\Uploads_Manager->__construct() #2 /htdocs/wp-content/plugins/elementor/includes/plugin.php(674): Elementor\Plugin->init_components() #3 /htdocs/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('') #4 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /htdocs/wp-settings.php(704): do_action('init') #7 /htdocs/wp-config.php(106): require_once('/htdocs/wp-sett...') #8 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #9 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #10 /htdocs/index.php(17): require('/htdocs/wp-blog...') #11 {main} thrown in /htdocs/wp-content/plugins/elementor/core/files/uploads-manager.php on line 58