-
AuthorPosts
-
June 27, 2018 at 8:33 am #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 4148June 27, 2018 at 1:52 pm #978409Hey nikishavardaam,
Could you post a link to the page in question so that we can take a closer look please?
Best regards,
RikardJune 27, 2018 at 2:04 pm #978418Hello 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 4148I 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.- This reply was modified 6 years, 4 months ago by nikishavardaam.
June 27, 2018 at 2:28 pm #978431Hi,
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,
YigitJune 27, 2018 at 4:02 pm #978468Hi 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 PatelJune 28, 2018 at 4:37 pm #978947Hi 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,
YigitJune 29, 2018 at 7:06 am #979194welcome.Hope it helps you and your developer to solve these bug.
do ask if you have any question.
June 29, 2018 at 9:21 am #979215 -
AuthorPosts
- The topic ‘Widget registration error on search page’ is closed to new replies.