Home › Forums › WoodMart support forum › file_exists(): open_basedir restriction in effect. File xts-header
file_exists(): open_basedir restriction in effect. File xts-header
- This topic has 5 replies, 2 voices, and was last updated 4 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
January 14, 2020 at 9:04 am #167820
perelviewParticipantError Sample #1 (350 occurrences last 24hrs):
file_exists(): open_basedir restriction in effect. File(/public_html/wp-content/uploads/2019/12/xts-header_923268-1577699505.css) is not within the allowed path(s): (/home/eshetach/:/tmp/:/var/tmp/:/usr/local/php72/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/php71/lib/:/usr/local/php72/lib/:/usr/local/lib/php/)Sample stack trace
…ach.co.il/public_html/wp-content/themes/woodmart/inc/classes/Stylesstorage.php (55)
…ach.co.il/public_html/wp-content/themes/woodmart/inc/classes/Stylesstorage.php (43)
…/e-shetach.co.il/public_html/wp-content/themes/woodmart/inc/builder/Header.php (40)
…ach.co.il/public_html/wp-content/themes/woodmart/inc/builder/HeaderFactory.php (21)
…-shetach.co.il/public_html/wp-content/themes/woodmart/inc/builder/Frontend.php (74)
…ome/eshetach/domains/e-shetach.co.il/public_html/wp-includes/class-wp-hook.php (288)
…ome/eshetach/domains/e-shetach.co.il/public_html/wp-includes/class-wp-hook.php (312)
…d at /home/eshetach/domains/e-shetach.co.il/public_html/wp-includes/plugin.php (478)
…hetach/domains/e-shetach.co.il/public_html/wp-includes/functions.wp-styles.php (52)
…ome/eshetach/domains/e-shetach.co.il/public_html/wp-includes/class-wp-hook.php (288)
…ome/eshetach/domains/e-shetach.co.il/public_html/wp-includes/class-wp-hook.php (312)
…d at /home/eshetach/domains/e-shetach.co.il/public_html/wp-includes/plugin.php (478)
…/eshetach/domains/e-shetach.co.il/public_html/wp-includes/general-template.php (2879)
…tach/domains/e-shetach.co.il/public_html/wp-content/themes/woodmart/header.php (13)
…at /home/eshetach/domains/e-shetach.co.il/public_html/wp-includes/template.php (722)
…at /home/eshetach/domains/e-shetach.co.il/public_html/wp-includes/template.php (671)
…/eshetach/domains/e-shetach.co.il/public_html/wp-includes/general-template.php (41)
…hetach/domains/e-shetach.co.il/public_html/wp-content/themes/woodmart/page.php (11)
…e/eshetach/domains/e-shetach.co.il/public_html/wp-includes/template-loader.php (98)
…alled at /home/eshetach/domains/e-shetach.co.il/public_html/wp-blog-header.php (19)Error Sample #2 (250 occurrences last 24hrs)
E_WARNING: file_exists(): open_basedir restriction in effect. File(/public_html/wp-content/uploads/2020/01/xts-theme_settings_default-1578558666.css) is not within the allowed path(s): (/home/sbxxxxxx/:/tmp/:/var/tmp/:/usr/local/php72/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/php71/lib/:/usr/local/php72/lib/:/usr/local/lib/php/)Sample stack trace
…ress.link/public_html/wp-content/themes/woodmart/inc/classes/Stylesstorage.php (55)
…ress.link/public_html/wp-content/themes/woodmart/inc/classes/Stylesstorage.php (43)
…s.link/public_html/wp-content/themes/woodmart/inc/classes/Themesettingscss.php (31)
….upress.link/public_html/wp-content/themes/woodmart/inc/classes/Registry.php (66)
…upress.link/public_html/wp-content/themes/woodmart/inc/classes/Registry.php (49)
…..upress.link/public_html/wp-content/themes/woodmart/inc/classes/Theme.php (312)
…..upress.link/public_html/wp-content/themes/woodmart/inc/classes/Theme.php (294)
5-redacted/public_html/wp-content/themes/woodmart/functions.php (61)
…sbxxxxxx/domains/redacted/public_html/wp-settings.php (497)
…e/sbxxxxxx/domains/redacted/public_html/wp-config.php (75)
…ome/sbxxxxxx/domains/redacted/public_html/wp-load.php (37)
…75837/domains/redacted/public_html/wp-blog-header.php (13)
…/home/sbxxxxxx/domains/redacted/public_html/index.php (17)There are many more such error samples, these errors occur on the following pages:
/index.php, /page, /single-product, /options-general.php, /admin-ajax.phpWhat could be the cause for that?
January 14, 2020 at 12:45 pm #167873
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your FTP access so we can check it? Be sure that you have the latest version of our theme installed. Also, provide us with access to your logs on the server.
Thank you in advance
January 16, 2020 at 10:09 am #168293
perelviewParticipantHi,
To your request – we have made a duplication of the current state of our production environment into a dedicated environment just for this case.All plugins has been deactivated and only the woodmart theme is activated.
We have also activated verbose logs so now you can reproduce this error happens on all the pages – including the wp-admin dashboard.FTP Credentials and WP-Admin has been provided in the private content.
Thank you!
for example:
basedir restriction in effect. File(/home/customer/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-content/uploads/2020/01/xts-theme_settings_default-1578906955.css) is not within the allowed path(s): (/home/sbxxxxxxx/:/tmp/:/var/tmp/:/usr/local/php72/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/php71/lib/:/usr/local/php72/lib/:/usr/local/lib/php/) in /home/sbxxxxxxx/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-content/themes/woodmart/inc/classes/Stylesstorage.php on line 55Warning: file_exists(): open_basedir restriction in effect. File(/home/customer/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-content/uploads/2020/01/xts-header_528910-1578382669.css) is not within the allowed path(s): (/home/sbxxxxxxx/:/tmp/:/var/tmp/:/usr/local/php72/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/php71/lib/:/usr/local/php72/lib/:/usr/local/lib/php/) in /home/sbxxxxxxx/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-content/themes/woodmart/inc/classes/Stylesstorage.php on line 55
Warning: file_exists(): open_basedir restriction in effect. File(/home/customer/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-content/uploads/2020/01/xts-header_528910-1578382669.css) is not within the allowed path(s): (/home/sbxxxxxxx/:/tmp/:/var/tmp/:/usr/local/php72/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/php71/lib/:/usr/local/php72/lib/:/usr/local/lib/php/) in /home/sbxxxxxxx/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-content/themes/woodmart/inc/classes/Stylesstorage.php on line 55
_basedir restriction in effect. File(/home/customer/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-content/uploads/2020/01/js_composer-1579103901.css) is not within the allowed path(s): (/home/sbxxxxxxx/:/tmp/:/var/tmp/:/usr/local/php72/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/php56/lib/:/usr/local/php70/lib/:/usr/local/php71/lib/:/usr/local/php72/lib/:/usr/local/lib/php/) in /home/sbxxxxxxx/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-includes/functions.php on line 5782Warning: fopen(/home/customer/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-content/uploads/2020/01/js_composer-1579103901.css): failed to open stream: Operation not permitted in /home/sbxxxxxxx/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-includes/functions.php on line 5782
Warning: fread() expects parameter 1 to be resource, boolean given in /home/sbxxxxxxx/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-includes/functions.php on line 5785
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/sbxxxxxxx/domains/pxxxxxxx-xxxxx.sxxx.upress.link/public_html/wp-includes/functions.php on line 5788
January 16, 2020 at 10:35 am #168304
Artem TemosKeymasterWarning
file_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.January 19, 2020 at 12:44 pm #168773
perelviewParticipantHi,
Issue has been resolved.The problem was wrong URL + Path of xts_header_xxx.css file after moving from dev to production URL.
Case can be closed.
January 20, 2020 at 7:03 am #168859
Artem TemosKeymasterGreat, we are glad that you sorted it out.
-
AuthorPosts
The topic ‘file_exists(): open_basedir restriction in effect. File xts-header’ is closed to new replies.
- You must be logged in to create new topics. Login / Register