• Hello,

    There are PHP warnings when visiting /wp/wp-admin/options-general.php?page=updraftplus page:

    PHP Warning:
    is_executable(): open_basedir restriction in effect. File(/opt/bin/zip) is not within the allowed path(s): (/var/www/html:/tmp) in /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php on line 1811
    
    Request:
    GET /wp/wp-admin/options-general.php?page=updraftplus
    
    Backtrace:
    #(0): X\{closure}()
    #1 /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php(1811): is_executable()
    #2 /var/www/html/web/app/plugins/updraftplus/admin.php(350): find_working_bin_zip()
    #3 /var/www/html/web/app/plugins/updraftplus/admin.php(629): setup_all_admin_notices_udonly()
    #4 /var/www/html/web/app/plugins/updraftplus/admin.php(38): admin_init()
    #5 /var/www/html/web/app/plugins/updraftplus/admin.php(8): __construct()
    #6 /var/www/html/web/app/plugins/updraftplus/updraftplus.php(103): include_once('/var/www/html/web/app/plugins/updraftplus/admin.php')
    #7 /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php(486): updraft_try_include_file()
    #8 /var/www/html/web/wp/wp-includes/class-wp-hook.php(324): admin_menu()
    #9 /var/www/html/web/wp/wp-includes/class-wp-hook.php(348): apply_filters()
    #10 /var/www/html/web/wp/wp-includes/plugin.php(517): do_action()
    #11 /var/www/html/web/wp/wp-admin/includes/menu.php(161): do_action()
    #12 /var/www/html/web/wp/wp-admin/menu.php(417): require_once('/var/www/html/web/wp/wp-admin/includes/menu.php')
    #13 /var/www/html/web/wp/wp-admin/admin.php(158): require('/var/www/html/web/wp/wp-admin/menu.php')
    #14 /var/www/html/web/wp/wp-admin/options-general.php(10): require_once('/var/www/html/web/wp/wp-admin/admin.php')
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    This is typically a restriction imposed by your hosting company or server admin and shouldn’t cause any problems as UpdraftPlus will use an alternative zip utility. Do you have debugging mode switched on?

    Thread Starter DreamOn11

    (@dreamon11)

    Thanks for your reply.

    These warnings are not problematic, but as I have configured my site to receive PHP warnings and errors by e-mail, it is quite annoying.

    Maybe you can use PHP error control operator (@) to disable these warnings?

    There are a lot:

    is_dir(): open_basedir restriction in effect. File(/usr/local/cpanel) is not within the allowed path(s): (/var/www/html:/tmp) in /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php on line 419
    is_executable(): open_basedir restriction in effect. File(/opt/bin/zip) is not within the allowed path(s): (/var/www/html:/tmp) in /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php on line 1811
    is_executable(): open_basedir restriction in effect. File(/usr/xdg4/bin/zip) is not within the allowed path(s): (/var/www/html:/tmp) in /var/www/html/web/app/plugins/updraftplus/class-updraftplus.php on line 1811

    And so on.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Warning: is_executable(): open_basedir restriction in effect’ is closed to new replies.