[Gelöst] Call to undefined function get_current_screen() in /classes/class.file.php
This support ticket is created vor 6 Jahre, 9 Monate. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Any time I try to update a post or page I get:
Fatal error: Call to undefined function get_current_screen() in /nas/content/staging/techwomen/wp-content/plugins/types/library/toolset/toolset-common/toolset-forms/classes/class.file.php on line 38
I fixed the issue on my end by adding require_once (ABSPATH . 'wp-admin/includes/screen.php');. Just curious if you guys are aware of this issue or have a fix in mind? Thanks!
It seems that this issue was already reported to the team. Also could you try reinstalling Types and see if the issue still remains because the issue could be due to corrupt files.
That error is mentioning a Core function of WordPress.
I have one other report of this, but I cannot replicate it.
There must be an edge case where the Core File wp-admin/includes/screen.php cannot be loaded when that code is triggered.
Please send me a Site's Snapshot, so I can analyse this.
I suspect this is a server issue, where the server or the WordPress install is customised in a way that does not allow the file to be read. https://toolset.com/faq/provide-supporters-copy-site/
Thank you for the cooperation, once I have a site's snapshot I will be able to find the issue.