Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #978293

    I found that search page is giving PHP Notice error for not registering the widgets before calling them when we used enfold theme.

    Below is the error :
    Notice: the_widget was called incorrectly. Widgets need to be registered using register_widget(), before they can be displayed. Please see Debugging in WordPress for more information. (This message was added in version 4.9.0.) in /www/wp-includes/functions.php on line 4148

    #978409

    Hey nikishavardaam,

    Could you post a link to the page in question so that we can take a closer look please?

    Best regards,
    Rikard

    #978418

    Hello Rikard,

    Thanks ! But i solved the error.They have used the_widget() on loop-search.php file directly , but forgot to register the widget .
    Refere Below Error:
    Notice: the_widget was callled incorrectly.Widgets need to be registered using register_widget(), before they can be displayed.Please see Debugging i WordPress form more information.(This message was added in version 4.9.0) in /www/wp-includes/functions.php on line 4148

    I registered widget using the following code and now PHP Notice error is solved (Note: Error only gets displayed when WP-Debug is enabled.).

    function register_avia_combo_widget() {
    register_widget( ‘avia_combo_widget’ );
    }
    add_action( ‘widgets_init’, ‘register_avia_combo_widget’ );
    I think this is bug and enfold theme developer will go through and solve in next version.

    #978431

    Hi,

    I could not reproduce the issue on my local installation. Could you please share more details?
    Since we have not received such reports recently, it might be that files were not updated correctly.

    Best regards,
    Yigit

    #978468

    Hi Yigit,

    Sure i have created staging site for you and you can go through the link.

    I understand but the issue was not on 1 site but on all my 30 sites where i am using Enfold theme.

    Regards,
    Nikisha Patel

    #978947

    Hi Nikisha,

    Thanks for sharing the info. Now i get the issue. Thanks for letting us know. I will report it to our devs :)

    Best regards,
    Yigit

    #979194

    welcome.Hope it helps you and your developer to solve these bug.

    do ask if you have any question.

    #979215

    Hi,

    We already have reported the issue. It should be fixed in upcoming update :)

    Thanks again and enjoy your weekend!

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Widget registration error on search page’ is closed to new replies.