1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice
  3. What happens when the XF 2.0 is out? See the discussion here: http://www.sonnb.com/threads/what-happens-when-xf-2-0-is-out.1146/
    Dismiss Notice

Not a bug Errorexception: Is_file(): Open_basedir Restriction In Effect.

Discussion in 'Bug Reports' started by hollosch, Mar 16, 2018.

  1. hollosch

    hollosch Authorized Member Authorized

    Hi, while config the video-uploader following errot occurs. Do you have an idea for fixing?
    I#m using Plesk Onyx for Webserver configuration.

    regards,
    hollosch

    ____________

    Fehlerinformation
    ErrorException: is_file(): open_basedir restriction in effect. File(/usr/bin/ffmpeg) is not within the allowed path(s): (/var/www/vhosts/domain.tld/:/tmp/) - library/sonnb/XenGalleryVideoUpload/Option/FFMPEG.php:17

    Generiert durch: hollosch, Vor 9 Minuten
    Stapelverfolgung

    #0 [internal function]: XenForo_Application::handlePhpError(2, 'is_file(): open...', '/var/www/vhosts...', 17, Array)
    #1 /../library/sonnb/XenGalleryVideoUpload/Option/FFMPEG.php(17): is_file('/usr/bin/ffmpeg')
    #2 /../library/XenForo/DataWriter/Option.php(366): sonnb_XenGalleryVideoUpload_Option_FFMPEG::validate('/usr/bin/ffmpeg', Object(Nobita_Teams_XenForo_DataWriter_Option), 'sonnbXGVU_ffmpe...')
    #3 /../library/XenForo/DataWriter/Option.php(222): XenForo_DataWriter_Option->_validateOptionValuePreSave('/usr/bin/ffmpeg')
    #4 /../library/vw/XenForo/DataWriter/Option.php(38): XenForo_DataWriter_Option->_preSave()
    #5 /../library/Nobita/Teams/XenForo/DataWriter/Option.php(17): vw_XenForo_DataWriter_Option->_preSave()
    #6 /../library/XenForo/DataWriter.php(1460): Nobita_Teams_XenForo_DataWriter_Option->_preSave()
    #7 /../library/XenForo/DataWriter.php(1399): XenForo_DataWriter->preSave()
    #8 /../library/XenForo/Model/Option.php(572): XenForo_DataWriter->save()
    #9 /../library/vw/XenForo/Model/Option.php(133): XenForo_Model_Option->updateOptions(Array)
    #10 /../library/XenForo/ControllerAdmin/Option.php(179): vw_XenForo_Model_Option->updateOptions(Array)
    #11 /../library/Audentio/UIX/ControllerAdmin/Option.php(7): XenForo_ControllerAdmin_Option->actionSave()
    #12 /../library/phc/LinkDirectory/Extend/XenForo/ControllerAdmin/Option.php(7): Audentio_UIX_ControllerAdmin_Option->actionSave()
    #13 /../library/Nobita/Teams/XenForo/ControllerAdmin/Option.php(15): phc_LinkDirectory_Extend_XenForo_ControllerAdmin_Option->actionSave()
    #14 /../library/XenForo/FrontController.php(369): Nobita_Teams_XenForo_ControllerAdmin_Option->actionSave()
    #15 /../library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #16 /../admin.php(13): XenForo_FrontController->run()
    #17 {main}


    Benötigter Status

    array(3) {
    ["url"] => string(68) "https://domain.tld/admin.php?options/save/sonnbXG_VideoUpload"
    ["_GET"] => array(1) {
    ["options/save/sonnbXG_VideoUpload"] => string(0) ""
    }
    ["_POST"] => array(3) {
    ["options"] => array(8) {
    ["sonnbXGVU_ffmpeg_path"] => string(15) "/usr/bin/ffmpeg"
    ["sonnbXGVU_ffprobe_path"] => string(0) ""
    ["sonnbXGVU_conversionSpeed"] => string(8) "veryfast"
    ["sonnbXGVU_outputQuality"] => string(2) "25"
    ["sonnbXGVU_threadCount"] => string(1) "1"
    ["sonnbXGVU_tuning"] => string(4) "psnr"
    ["sonnbXGVU_storeUnencoded"] => string(1) "1"
    ["sonnbXGVU_globalMaxVideoSize"] => string(10) "2048000000"
    }
    ["options_listed"] => array(10) {
    [0] => string(21) "sonnbXGVU_ffmpeg_path"
    [1] => string(22) "sonnbXGVU_ffprobe_path"
    [2] => string(13) "sonnbXGVU_mp4"
    [3] => string(25) "sonnbXGVU_conversionSpeed"
    [4] => string(23) "sonnbXGVU_outputQuality"
    [5] => string(21) "sonnbXGVU_threadCount"
    [6] => string(16) "sonnbXGVU_tuning"
    [7] => string(24) "sonnbXGVU_storeUnencoded"
    [8] => string(28) "sonnbXGVU_animatedThumbnails"
    [9] => string(28) "sonnbXGVU_globalMaxVideoSize"
    }
    ["_xfToken"] => string(8) "********"
    }
    }
     
  2. sonnb

    sonnb Administrator Staff Member

    Hi hollosch,

    This is not a bug but configuration issue. The Video Upload add-on's library uses ffmpeg as the video encoder. ffmpeg is located in /usr/bin/ffmpeg while the XF in /var/www/vhosts/domain.tld/xxx. The opendir settings in php.ini only allows to access XF path and temp path so it is not possible to access ffmpeg. You should add ffmpeg path to the config or disable the opendir check. The first choice is more security oriented.
     
    hollosch and whynot like this.
Tags: plesk, onyx

Share This Page