Skip Navigation

[Resolved] E_ERROR

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by Luo Yang 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1307171

I am getting this WordPress Critical error randomly:

E_ERROR in line 43 of /home/wplive/web/wp-live/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/toolset-forms/classes/class.date.scripts.php

Message: Uncaught Error: Call to undefined function get_current_screen() in /home/wplive/web/wp-live/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/toolset-forms/classes/class.date.scripts.php:43

Stack trace:
#0 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(286): WPToolset_Field_Date_Scripts->date_enqueue_scripts('')
#1 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#2 /home/wplive/web/wp-live/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home/wplive/web/wp-live/wp-includes/script-loader.php(2537): do_action('wp_enqueue_scri...')
#4 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(286): wp_enqueue_scripts('')
#5 /home/wplive/web/wp-live/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
#6 /home/wplive/web/wp-live/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#7 /home/wplive/web/wp-live/wp-includes/general-template.php(2745): do_action('wp_head')
#8 /home/wplive/web/wp-live/wp-content/plug

#1307461

Hello,

The problem you mentioned above is abnormal, please try these:

1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and form URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1309079

I assume you can not reproduce the same problem in a fresh wordpress installation + the latest version of Toolset plugins, so it should be a compatibility/server problem.

You can try these:
1) migrate your website in another test site,
https://toolset.com/2018/05/when-if-to-migrate-relationships-in-old-toolset-sites/
2) deactivate other plugins and switch to wordpress default theme
3) if the problem still persists, please provide the test site credentials and detail steps to duplicate the same problem in below private message box. Please update here when your test site is ready for debug, thanks

#1309863

I have no way to reproducing the problem, even on the original website. It happens randomly: about once a week I get an error message that has the information I sent you. So far I've got 4 of these in the past month.

I don't know what to do about the error. I hope the trace info could give you enough info to take a look at it.

#1310093

We get similar report on Toolset Types plugin, it is fixed in the latest version Types 3.3.4:
https://toolset.com/errata/fatal-error-when-importing-toolset-types-settings/
I suggest you try to upgrade all Toolset plugins to the latest version, and test again

But according to your debug logs, it seems to be related with Toolset Forms plugin, there are something missing in your debug logs, can you provide the full debug logs?

#1310605

Hi Luo,

Unfortunately, there is nothing to test, as this happens completely randomly. I just updated the plugin to 3.3.4. I hope this fixes the problem. I will let you know if it happens again.

#1310785

Please let me know if you need more assistance for it. thanks