Elementor plugin is displaying an error during the runtime check

Aperta
#185 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
php
Ambito
testing-qa

Direzione di ricerca

Inizia da includes/Checker/Runtime_Environment_Setup.php alla chiamata a wp_install e segui come Plugin_Check_Command.php invoca set_up(). Riproduci due volte il controllo di Elementor in un ambiente WordPress, esamina debug.log alla ricerca dell’errore fatale segnalato e verifica che il controllo runtime ripetuto venga completato senza questo errore.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

[Type] Bug
Describe the bug

During our runtime checks for plugins, we discovered that if the Elementor plugin is active on a website, it also triggers an error. To ensure a smooth experience for other plugins, it is essential that we address this issue promptly.

Steps to Reproduce
  1. Take latest pull from the branch.
  2. Set up a WordPress environment.
  3. Install and activate the Elementor plugin.
  4. Navigate to the Admin Panel > Tools > Plugin Check.
  5. Select Elementor from the dropdown menu and click the "Check it!" button.
  6. Perform the check for a second time.
  7. Check for any errors in your debug.log file.
Screenshots, screen recording, code snippet
PHP Fatal error:  Uncaught Exception: Invalid post. in /var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php:101
Stack trace:
#0 /var/www/html/wp-content/plugins/elementor/core/base/document.php(1688): Elementor\Core\Settings\Page\Manager->ajax_before_save_settings(Array, NULL)
#1 /var/www/html/wp-content/plugins/elementor/core/base/document.php(801): Elementor\Core\Base\Document->save_settings(Array)
#2 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(295): Elementor\Core\Base\Document->update_settings(Array)
#3 /var/www/html/wp-content/plugins/elementor/core/kits/manager.php(457): Elementor\Core\Kits\Manager->update_kit_settings_based_on_option('site_name', 'Plugin Check')
#4 /var/www/html/wp-includes/class-wp-hook.php(310): Elementor\Core\Kits\Manager->Elementor\Core\Kits\{closure}('My Site', 'Plugin Check')
#5 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /var/www/html/wp-includes/option.php(570): do_action('update_option_b...', 'My Site', 'Plugin Check', 'blogname')
#8 /var/www/html/wp-admin/includes/upgrade.php(58): update_option('blogname', 'Plugin Check')
#9 /var/www/html/wp-content/plugins/plugin-check/includes/Checker/Runtime_Environment_Setup.php(39): wp_install('Plugin Check', 'plugincheck', 'demo@pluginchec...', false)
#10 /var/www/html/wp-content/plugins/plugin-check/includes/CLI/Plugin_Check_Command.php(136): WordPress\Plugin_Check\Checker\Runtime_Environment_Setup->set_up()
#11 [internal function]: WordPress\Plugin_Check\CLI\Plugin_Check_Command->check(Array, Array)
#12 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func(Array, Array, Array)
#13 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}(Array, Array)
#14 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(491): call_user_func(Object(Closure), Array, Array)
#15 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(419): WP_CLI\Dispatcher\Subcommand->invoke(Array, Array, Array)
#16 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(442): WP_CLI\Runner->run_command(Array, Array)
#17 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1256): WP_CLI\Runner->run_command_and_exit()
#18 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#19 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
#20 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#21 phar:///usr/local/bin/wp/php/boot-phar.php(11): include('phar:///usr/loc...')
#22 /usr/local/bin/wp(4): include('phar:///usr/loc...')
#23 {main}
  thrown in /var/www/html/wp-content/plugins/elementor/core/settings/page/manager.php on line 101
Environment information

No response

WordPress information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
Lingua principale
PHP
Stelle
365
Fork
135
Merge medio
1g 8h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di WordPress/plugin-check

Tutte le issue di WordPress/plugin-check

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.