Find Answers and Get Support › Forums › Cera – Intranet & Community Theme › Compatible Plugins › BuddyPress › PHP Notice: Undefined variable in dir-search-form.php
- This topic has 1 reply, 2 voices, and was last updated 2 years, 6 months ago by
Manathan.
-
AuthorPosts
-
SamParticipant@sjregan
- 18 Topics
- 41 Posts
Hi,
The following notice is generated when visiting the BuddyPress group directory.
Grimlock BuddyPress v1.4.7
[08-Feb-2022 00:25:11 UTC] PHP Notice: Undefined variable: value in /example/wp-content/plugins/grimlock-buddypress/templates/common/search/dir-search-form.php on line 20
[08-Feb-2022 00:25:11 UTC] PHP Stack trace:
[08-Feb-2022 00:25:11 UTC] PHP 1. {main}() /example/index.php:0
[08-Feb-2022 00:25:11 UTC] PHP 2. require() /example/index.php:17
[08-Feb-2022 00:25:11 UTC] PHP 3. require_once() /example/wp-blog-header.php:19
[08-Feb-2022 00:25:11 UTC] PHP 4. include() /example/wp-includes/template-loader.php:106
[08-Feb-2022 00:25:11 UTC] PHP 5. get_template_part() /example/wp-content/themes/cera/template-classic-12-cols-left.php:19
[08-Feb-2022 00:25:11 UTC] PHP 6. locate_template() /example/wp-includes/general-template.php:204
[08-Feb-2022 00:25:11 UTC] PHP 7. load_template() /example/wp-includes/template.php:716
[08-Feb-2022 00:25:11 UTC] PHP 8. require() /example/wp-includes/template.php:772
[08-Feb-2022 00:25:11 UTC] PHP 9. do_action() /example/wp-content/themes/cera/template-parts/content-page.php:20
[08-Feb-2022 00:25:11 UTC] PHP 10. WP_Hook->do_action() /example/wp-includes/plugin.php:474
[08-Feb-2022 00:25:11 UTC] PHP 11. WP_Hook->apply_filters() /example/wp-includes/class-wp-hook.php:331
[08-Feb-2022 00:25:11 UTC] PHP 12. cera_grimlock_page() /example/wp-includes/class-wp-hook.php:307
[08-Feb-2022 00:25:11 UTC] PHP 13. do_action() /example/wp-content/themes/cera/inc/grimlock/grimlock-template-functions.php:438
[08-Feb-2022 00:25:11 UTC] PHP 14. WP_Hook->do_action() /example/wp-includes/plugin.php:474
[08-Feb-2022 00:25:11 UTC] PHP 15. WP_Hook->apply_filters() /example/wp-includes/class-wp-hook.php:331
[08-Feb-2022 00:25:11 UTC] PHP 16. Grimlock->page() /example/wp-includes/class-wp-hook.php:307
[08-Feb-2022 00:25:11 UTC] PHP 17. Grimlock_Page_Component->render() /example/wp-content/plugins/grimlock/inc/class-grimlock.php:659
[08-Feb-2022 00:25:11 UTC] PHP 18. do_action() /example/wp-content/plugins/grimlock/inc/component/class-grimlock-page-component.php:41
[08-Feb-2022 00:25:11 UTC] PHP 19. WP_Hook->do_action() /example/wp-includes/plugin.php:474
[08-Feb-2022 00:25:11 UTC] PHP 20. WP_Hook->apply_filters() /example/wp-includes/class-wp-hook.php:331
[08-Feb-2022 00:25:11 UTC] PHP 21. grimlock_page_content() /example/wp-includes/class-wp-hook.php:307
[08-Feb-2022 00:25:11 UTC] PHP 22. the_content() /example/wp-content/plugins/grimlock/inc/grimlock-template-functions.php:730
[08-Feb-2022 00:25:11 UTC] PHP 23. apply_filters() /example/wp-includes/post-template.php:253
[08-Feb-2022 00:25:11 UTC] PHP 24. WP_Hook->apply_filters() /example/wp-includes/plugin.php:189
[08-Feb-2022 00:25:11 UTC] PHP 25. bp_replace_the_content() /example/wp-includes/class-wp-hook.php:307
[08-Feb-2022 00:25:11 UTC] PHP 26. apply_filters() /example/wp-content/plugins/buddypress/bp-core/bp-core-theme-compatibility.php:767
[08-Feb-2022 00:25:11 UTC] PHP 27. WP_Hook->apply_filters() /example/wp-includes/plugin.php:189
[08-Feb-2022 00:25:11 UTC] PHP 28. BP_Groups_Theme_Compat->directory_content() /example/wp-includes/class-wp-hook.php:307
[08-Feb-2022 00:25:11 UTC] PHP 29. bp_buffer_template_part() /example/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-theme-compat.php:134
[08-Feb-2022 00:25:11 UTC] PHP 30. bp_get_template_part() /example/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:407
[08-Feb-2022 00:25:11 UTC] PHP 31. bp_locate_template() /example/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:67
[08-Feb-2022 00:25:11 UTC] PHP 32. load_template() /example/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:222
[08-Feb-2022 00:25:11 UTC] PHP 33. require() /example/wp-includes/template.php:772
[08-Feb-2022 00:25:11 UTC] PHP 34. bp_get_template_part() /example/wp-content/plugins/grimlock-buddypress/templates/groups/index.php:31
[08-Feb-2022 00:25:11 UTC] PHP 35. bp_locate_template() /example/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:67
[08-Feb-2022 00:25:11 UTC] PHP 36. load_template() /example/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php:222
[08-Feb-2022 00:25:11 UTC] PHP 37. require() /example/wp-includes/template.php:772February 8, 2022 at 01:28 #38637@themodactyl- 0 Topics
- 6587 Posts
Hi Sam, 🙂
No worries. These are PHP notices, not errors. Unlike errors, notices won’t break your website. They’re just messages aimed at developers to improve their code.
To hide this message, I suggest that you activate error logging on your website. Please keep WP_DEBUG to true and just paste the following code lines in your wp-config.php file, just before the line that says ‘That’s all, stop editing! Happy blogging.’:
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );
More on this in the following topic: Debugging in WordPress
You will still be able to consult the warnings and errors triggered by your website but these won’t appear on your pages anymore.
Regards,
February 8, 2022 at 14:23 #38667 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘PHP Notice: Undefined variable in dir-search-form.php’ is closed to new replies.