I’m trying to install the Email Forms Plugin, but I keep getting a fatal error. This is the message I received from Wordpress. How can I fix it?
Appreciate your attention.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.0.1
Active theme: Pro (version 5.1.5)
Current plugin: Email Forms (version 2.0.5)
PHP version 8.0.17
Error Details
An error of type E_ERROR was caused in line 28 of the file /home4/diegola1/public_html/hollbras/wp-content/plugins/tco-email-forms/email-integration/functions/framework/setup.php. Error message: Uncaught Error: Call to undefined function create_function() in /home4/diegola1/public_html/hollbras/wp-content/plugins/tco-email-forms/email-integration/functions/framework/setup.php:28
Stack trace:
#0 /home4/diegola1/public_html/hollbras/wp-content/plugins/tco-email-forms/email-integration/functions/admin/cpt-metaboxes.php(437): tco_add_meta_box(Array)
#1 /home4/diegola1/public_html/hollbras/wp-content/plugins/tco-email-forms/email-integration/functions/plugin.php(77): include(’/home4/diegola1…’)
#2 /home4/diegola1/public_html/hollbras/wp-includes/class-wp-hook.php(309): Tco_Email_Integration->register_meta_boxes(‘email-forms’)
#3 /home4/diegola1/public_html/hollbras/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#4 /home4/diegola1/public_html/hollbras/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#5 /home4/diegola1/public_html/hollbras/wp-admin/includes/meta-boxes.php(1599): do_action(‘add_meta_boxes’, ‘email-forms’, Object(WP_Post))
#6 /home4/diegola1/public_html/hollbras/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post))
#7 /home4/diegola1/public_html/hollbras/wp-admin/post-new.php(75): require(’/home4/diegola1…’)
#8 {main}
thrown