'Email Forms' plugin throwing up a WP Critical Error

Hi all,

I can’t add a new form using the Email Forms plugin without getting the dreaded “Critical error” screen on WordPress.

An error of type E_ERROR was caused in line 28 of the file /nas/content/live/xxxxx/wp-content/plugins/tco-email-forms/email-integration/functions/framework/setup.php. Error message: Uncaught Error: Call to undefined function create_function() in /nas/content/live/xxxxx/wp-content/plugins/tco-email-forms/email-integration/functions/framework/setup.php:28 Stack trace: #0 /nas/content/live/xxxxx/wp-content/plugins/tco-email-forms/email-integration/functions/admin/cpt-metaboxes.php(437): tco_add_meta_box(Array) #1 /nas/content/live/xxxxx/wp-content/plugins/tco-email-forms/email-integration/functions/plugin.php(77): include('/nas/content/li...') #2 /nas/content/live/xxxxx/wp-includes/class-wp-hook.php(309): Tco_Email_Integration->register_meta_boxes('email-forms') #3 /nas/content/live/xxxxx/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #4 /nas/content/live/xxxxx/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #5 /nas/content/live/xxxxx/wp-admin/includes/meta-boxes.php(1599): do_action('add_meta_boxes', 'email-forms', Object(WP_Post)) #6 /nas/content/live/xxxxx/wp-admin/edit-form-advanced.php(271): register_and_do_post_meta_boxes(Object(WP_Post)) #7 /nas/content/live/xxxxx/wp-admin/post-new.php(75): require('/nas/content/li...') #8 {main}

Checking the Themeco support site I saw a thread from last February mentioning the plugin wasn’t php8.x compatible. I’m guessing that’s my problem?

If so, do you have an ETA on when the plugin will support php8.x?

Hello @KEXINO,

Thanks for writing to us.

Regretfully there is no ETA at the moment, I would suggest you till the upcoming version of the theme release, can you please downgrade the PHP version from 8 to 7.4 and check if that resolves your issue for now. Please have a look at the version compatibility page.

Thanks for understanding

Thanks for getting back to me, and letting me know the current status.

Rolling back to php7.4 isn’t an option, so I’ll have to come up with a workaround instead.

1 Like

Hi @KEXINO,

Unfortunately, there is no other workaround for this right now. I would request you, if possible please downgrade the PHP version till the upcoming version with the fix released.

Thanks

Like I said, reverting back to php7.4 isn’t an option.

1 Like

Hi @KEXINO,

In that case, you need to wait for the next upcoming release with the fix.

Please bear with us

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.