Home Forums WoodMart support forum Problem with 2 PHP Errors (from theme files)

Problem with 2 PHP Errors (from theme files)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #178837

    vitomac
    Participant

    HI.

    We are using:
    – Woodmart Theme v 4.5.2
    – WordPress v 5.3.2
    – WooCommerce v 3.9.2

    We have problem with 2 PHP Errors (from theme files).

    Errors:
    file_exists(): open_basedir restriction in effect. File(/home/loveamb/domains/lovesite.pl/public_html/wp-content/uploads/2020/02/xts-header_986621-1581066803.css) is not within the allowed path(s): (/home/lovesite/wp-config.php:/home/lovesite/.sockets:/home/lovesite/public_html:/home/lovesite/logs:/home/lovesite/.tmp:/tmp:/usr/local/php73/lib/php/extensions)

    file_exists(): open_basedir restriction in effect. File(/home/loveamb/domains/lovesite.pl/public_html/wp-content/uploads/2020/02/xts-theme_settings_default-1581690303.css) is not within the allowed path(s): (/home/lovesite/wp-config.php:/home/lovesite/.sockets:/home/lovesite/public_html:/home/lovesite/logs:/home/lovesite/.tmp:/tmp:/usr/local/php73/lib/php/extensions)

    Locations:

    wp-content/themes/woodmart/inc/classes/Stylesstorage.php:55
    file_exists()
    wp-content/themes/woodmart/inc/classes/Stylesstorage.php:55
    WOODMART_Stylesstorage->check_css_status()
    wp-content/themes/woodmart/inc/classes/Stylesstorage.php:43
    WOODMART_Stylesstorage->__construct()
    wp-content/themes/woodmart/inc/classes/Themesettingscss.php:31
    WOODMART_Themesettingscss->__construct()
    wp-content/themes/woodmart/inc/classes/Registry.php:66
    WOODMART_Registry->_save_object()
    wp-content/themes/woodmart/inc/classes/Registry.php:49
    WOODMART_Registry->__get()
    wp-content/themes/woodmart/inc/classes/Theme.php:312
    WOODMART_Theme->_register_classes()
    wp-content/themes/woodmart/inc/classes/Theme.php:294
    WOODMART_Theme->__construct()
    wp-content/themes/woodmart/functions.php:73

    wp-content/themes/woodmart/inc/classes/Stylesstorage.php:55
    file_exists()
    wp-content/themes/woodmart/inc/classes/Stylesstorage.php:55
    WOODMART_Stylesstorage->check_css_status()
    wp-content/themes/woodmart/inc/classes/Stylesstorage.php:43
    WOODMART_Stylesstorage->__construct()
    wp-content/themes/woodmart/inc/builder/Header.php:40
    WOODMART_HB_Header->__construct()
    wp-content/themes/woodmart/inc/builder/HeaderFactory.php:21
    WOODMART_HB_HeaderFactory->get_header()
    wp-content/themes/woodmart/inc/builder/Frontend.php:60
    WOODMART_HB_Frontend->print_header_styles()
    wp-includes/class-wp-hook.php:288
    do_action_ref_array(‘wp’)
    wp-includes/class-wp.php:742
    WP->main()
    wp-includes/functions.php:1255
    wp()
    wp-blog-header.php:16

    We disabled open_basedir but the problem still occurs.

    I think that files does not exist. How can we fix it?

    Best Regards,
    Michał.

    #178838

    Artem Temos
    Keymaster

    Hello,

    Warning ile_exists(): open_basedir restriction in effect prevent PHP scripts from opening files that are not in your working directory. That is why our theme and other plugins can’t use functions like file_exists. You need to contact your hosting provider for help in this situation.

    Regards

    #178840

    vitomac
    Participant

    Thanks.

    I will send this information to my hosting provider.

Viewing 3 posts - 1 through 3 (of 3 total)