Warning: is_dir(): open_basedir restriction in effect
-
Upload on server with domain separation realized by open_basedir.
Warning: is_dir(): open_basedir restriction in effect. File(/wp-content/uploads/2024/05/bg-terrain-position-1) is not within the allowed path(s):
I know You tell, this is hosting problem, but this is not hosting problem.
Script use wrong method to generate path.
Some hosting has domain separation, and Apache path points to the domain directory.
And then You have to use directory path without slash / at the begining.
Example:
If You use path:
/wp-content/uploads/2024/05/bg-terrain-position-1
– this generate errorYou should use:
wp-content/uploads/2024/05/bg-terrain-position-1
– that’s works fineIf You want use slash at the begining, You should get full server path.
Or You can use relative path to wordpress installation catalog – I think this is better solution.
- You must be logged in to reply to this topic.