Fatal Error When using the filter for disabling a module
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Start by locating hello_elementor_tweak_settings() and the Theme::get_module() call it uses; the issue does not name their file or a test. Trace how the documented hello-plus-theme/modules/admin-home/is-active filter can leave the module unavailable, then check the existing tests or add coverage for that case. Done means disabling the module no longer causes a null get_component() call on front-end or admin requests.
Written by the indexing model from the issue text.
Description
When using the documented filter for disabling a module, You will get a 500 error
add_filter( 'hello-plus-theme/modules/admin-home/is-active', '__return_false' );
when using the filter i noticed fatal error
Theme::get_module() returns null, and hello_elementor_tweak_settings() on init calls ->get_component() on null:
Call to a member function get_component() on null
Every front-end and admin request dies, there should be a guard for a null module
- Dominant language
- PHP
- Stars
- 614
- Forks
- 240
- Avg merge
- 4h 17m
- Merged PRs (30d)
- 9
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from elementor/hello-theme
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
elementor/hello-theme#600 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
elementor/hello-theme#517 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
elementor/hello-theme#497 · 2 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 28/100
elementor/hello-theme#487 · 1 comment · 6 reactions ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
elementor/hello-theme#483 ·
Maintainers usually reply within 1 day
All issues in elementor/hello-theme
Similar issues
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
[Sync EN] Formatting improvements to "Large Objects (LOBs)" docs (#6056)Possibly taken A pull request linked to this issue is open or already merged. Opensync-en
Difficulty 1/5 Under an hour Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Перевод устарел
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day
-
repo:cms
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
craftcms/cms#20613 · 1 comment ·
Maintainers usually reply within 1 day
-
项目日志弹出窗尺寸可拉伸功能Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day