AI Assistant
Notifications
Clear all

PHP Fatal Error: Call to undefined function get_current_screen

2 Posts
2 Users
0 Reactions
3,475 Views
Posts: 14
Customer
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@webtoolsframeworks)
Member
Joined: 9 years ago
[#746]

 When creating posts via a cron job WP Discuz Media Uploader throws a fatal php error:

PHP Fatal error:  Call to undefined function get_current_screen() in /var/foo/bar/public/wp-content/plugins/wpdiscuz-media-uploader/utils/class.WMUHelper.php on line 432

The fix (work-around) is to add 'require_once(ABSPATH . ‘wp-admin/includes/screen.php’);' to line 432 of wpdiscuz-media-uploader/utils/class.WMUHelper.php.

Any chance this will be fixed in an upcoming release?


1 Reply
Posts: 4248
 Tom
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tomson)
Famed Member
Joined: 11 years ago

Could you please provide more details? How do you use WP Cron? We can add a new condition in next version to avoid such errors.


Reply
Share:
Scroll to top