Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

PHP Notice: Undefined variable in dir-search-form.php

Find Answers and Get Support Forums Cera – Intranet & Community Theme Compatible Plugins BuddyPress PHP Notice: Undefined variable in dir-search-form.php

This topic is resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Sam
    Participant
    • 18 Topics
    • 41 Posts
    @sjregan

    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:772

    Manathan
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 6435 Posts
    @themodactyl

    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,

Roboraptor 🦖
Themosaurus Topic Closer

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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘PHP Notice: Undefined variable in dir-search-form.php’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site