Support » Plugin: Frontend Uploader » Fatal Error

  • Resolved s3rgej

    (@s3rgej)


    Hi,

    after installation of All-in-One Event Calendar i get the following error accessing the admin panel:

    Fatal error: Call to undefined function get_current_screen() in C:\root\wp-content\plugins\frontend-uploader\frontend-uploader.php on line 185

    I figuered out that you have to include the screen.php file from the wp-admin directory like this:

    ....
    require_once FU_ROOT . '/lib/php/class-html-helper.php';
    require_once FU_ROOT . '/lib/php/settings-api/class.settings-api.php';
    require_once FU_ROOT . '/lib/php/functions.php';
    require_once FU_ROOT . '/lib/php/frontend-uploader-settings.php';
    require_once( FU_ROOT . '../../../../wp-admin/includes/screen.php' );

    Is this a general problem of frontend uploader?!

    Best regards

    http://wordpress.org/extend/plugins/frontend-uploader/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error’ is closed to new replies.