error plugins learnpress in wordpress

It looks like the file is missing but its has been called from one of the files.

After further review of the plugin files I saw that inside the LearnPress->inc directory in lp-core-functions.php file at 2291 line it adding the filter to add that missing file however that file is not inside the template files. Developer of the plugin has moved all the buttons file inside buttons.php in template folder without updating that filter.

So the solution is to remove that filter manually until the developer fix the issue or you can manually go the lp-core-functions.php file and comment out line 2291 like below

// add_filter( 'learn_press_get_template', '_learn_press_enroll_button', 1000, 5 );

Or you can add this line to removed that filter in somewhere in your theme functions.php

`remove_filter( 'learn_press_get_template', '_learn_press_enroll_button');`