Getting this in our error logs:
"PHP message: PHP Warning: is_writable(): open_basedir restriction in effect. File(/www/rootfolder/) is not within the allowed path(s): (/www/rootfolder/public:/www/rootfolder/mysqleditor:/www/rootfolder/web:/www/rootfolder/deploy:/www/rootfolder/deployment:/www/rootfolder/deployments:/usr/share:/tmp) in /www/rootfolder/public/wp-content/plugins/types/vendor/toolset/types/embedded/views/image.php on line 392", client: 73.16.142.58, server: domain.com, request: "GET /slab/page/2/ HTTP/1.1", host: "domain.com:12778", referrer: "hidden link"
Took out my specifics but getting this. Nothing should be writable or touchable that isn't in the /public subfolder. But the image.php seems to be testing higher. Any fix? I'm tempted to hack the offending line of code, having it check if dir is in not in /public have it auto fail before even testing if it's writable.
And my host has told me "we cannot add the base site directory /www/rootfolder/ to the directive and that your WP install lives inside of ~/public"
Hi there,
This seems to be an edge use case.
Uploading images on WordPress needs a temp directory that seems to be blocked by the ruling that you have on your server.
Maybe this confic.php directive can help to change the mp folder to somewhere safe on your server?
hidden link
If not, I'm afraid you need to do changes to the server configuration.
Thank you.
Will try but image uploads work fine. Just hate the constant errors since they come up even when not uploading I believe.
Any other ideas? added the temp folder, changed wp-config.php to point there and no luck. Image uploads do work though but just getting that error.
Hi there,
Would you please follow the steps below?
- IMPORTANT STEP! Create a backup of your website.
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Toolset and Toolset add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.
Also please check this:
- IMPORTANT STEP! Create a backup of your website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- See if the issue is fixed.
If the issue persists after that, we can give you the means to copy your website to our server so that we can double-check and see if we can find the reason.
Thank you.