Skip Navigation

[Closed] Error in error logs for using is_writable

This support ticket is created 2 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by Christopher Amirian 2 years, 1 month ago.

Assisted by: Christopher Amirian.

Author
Posts
#2480775

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"

#2482081

Christopher Amirian
Supporter

Languages: English (English )

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.

#2482111

Will try but image uploads work fine. Just hate the constant errors since they come up even when not uploading I believe.

#2482157

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.

#2482387

Christopher Amirian
Supporter

Languages: English (English )

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.

The topic ‘[Closed] Error in error logs for using is_writable’ is closed to new replies.