Fatal error: Uncaught Error: Call to undefined function get_current_screen()

Posted in: Newspaper
Post count: 20

Hi Guys, Thank you for your support.

I am experiencing the same error in 2 of my most used WordPress Plugins (Wp-Statistics) and (Woocommerce).
This is the error: Fatal error: Uncaught Error: Call to undefined function get_current_screen()

This appears in the (Text with Title) block in the new TagDiv Editor and prevents anything from being edited or saved…
Currently, I have the two plugins disabled and everything works fine.
If you would like me to send you the full error message please let me know.

Could you please fix this issue in an update…
Thanks.

Post count: 9544

Woocommerce update broke several of our plugins including one from woo funnily enough, and they did major patch fix. Make sure you have the newest update to Woo with fixes. Might not be your issue but messed us up.

Post count: 20

Currently, I’m running Woocommerce version 3.1.1 which, (as far as I know), is the latest version of Woocommerce…

Post count: 20688

Hi,

We are aware of this issue with Woocommerce. It will get fixed in the next theme update. You can try the fix provided below and see if it is working for you.
Add this line of code in the wpeditor.php file located in the plugins directory td-composer->includes folder
https://www.screencast.com/t/chJaSVGCWT
https://pastebin.com/rTqTHfSa
Then the text elements should work properly
https://www.screencast.com/t/1qaNudxkXE

Thanks

Post count: 20

Hi,

Your code worked perfectly!
It fixed Wp-Statistics which is kind of an essential plugin for me.

Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.