Elementor plugin is displaying an error during the runtime check
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- php
- 领域
- testing-qa
调研方向
从 includes/Checker/Runtime_Environment_Setup.php 中调用 wp_install 的位置开始,并跟踪 Plugin_Check_Command.php 如何调用 set_up()。在 WordPress 环境中重复执行 Elementor 检查两次,检查 debug.log 中是否有报告的致命错误,并验证重复的运行时检查能够在没有此错误的情况下完成。
由索引模型根据 Issue 内容生成。
描述
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
- Take latest pull from the branch.
- Set up a WordPress environment.
- Install and activate the Elementor plugin.
- Navigate to the
Admin Panel > Tools > Plugin Check. - Select Elementor from the dropdown menu and click the "Check it!" button.
- Perform the check for a second time.
- Check for any errors in your
debug.logfile.
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
- 主要语言
- PHP
- 星标
- 365
- 派生
- 135
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 20
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
WordPress/plugin-check 的其他 Issue
-
False positive trademarked_term warning for "wc" inside the word "Flowchart"可能已有人在做 @anandrajaram21 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
WordPress/plugin-check#1556 · 1 条评论 ·
维护者通常 1 天内回复
-
Add opt-in .distignore exclusions for local and CI scans可能已有人在做 @jakaria-istauk 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 42/100
WordPress/plugin-check#1559 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 58/100
WordPress/plugin-check#1557 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
WordPress/plugin-check#1555 · 1 条评论 ·
维护者通常 1 天内回复
-
PHPErrorReportingSniff flags debug constants used as values in const declarations可能已有人在做 @elphizu 于 7 天前认领。 未关闭
难度 3/5 半天 新手友好度 35/100
WordPress/plugin-check#1553 ·
维护者通常 1 天内回复
查看 WordPress/plugin-check 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
quantum-php/project#222 ·
-
support
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 66/100
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
mailcow/mailcow-dockerized#7717 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
mage-os/devdocs-website#75 ·