Home › Forums › WoodMart support forum › Problem with 2 PHP Errors (from theme files)
Problem with 2 PHP Errors (from theme files)
- This topic has 2 replies, 2 voices, and was last updated 4 years, 2 months ago by vitomac.
-
AuthorPosts
-
March 9, 2020 at 3:22 pm #178837
vitomacParticipantHI.
We are using:
– Woodmart Theme v 4.5.2
– WordPress v 5.3.2
– WooCommerce v 3.9.2We 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:73wp-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:16We disabled open_basedir but the problem still occurs.
I think that files does not exist. How can we fix it?
Best Regards,
Michał.March 9, 2020 at 3:34 pm #178838
Artem TemosKeymasterHello,
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 likefile_exists
. You need to contact your hosting provider for help in this situation.Regards
March 9, 2020 at 3:40 pm #178840
vitomacParticipantThanks.
I will send this information to my hosting provider.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register