PHP open_basedir path errors
-
Hey UM Team,
Thanks for a great plugin, I love working with it.
Running into an issue with the latest version 2.5.1 of UM Core and I’ll try and give you as much info as I can. Site is a MULTISITE. Issue occurs on all subsites and not the main site. WordPress is at version 6.1.
Here are the errors:
Warning: file_exists(): open_basedir restriction in effect. File(/home/storm/ultimatemember/) is not within the allowed path(s): (/home/storm/sites/dev-cso-group/:/home/storm/tmp/dev-cso-group:/tmp) in /home/storm/sites/dev-cso-group/public/wp-content/plugins/ultimate-member/includes/core/class-files.php on line 700 Warning: file_exists(): open_basedir restriction in effect. File(/home/storm/ultimatemember/temp/) is not within the allowed path(s): (/home/storm/sites/dev-cso-group/:/home/storm/tmp/dev-cso-group:/tmp) in /home/storm/sites/dev-cso-group/public/wp-content/plugins/ultimate-member/includes/core/class-files.php on line 706 Warning: file_exists(): open_basedir restriction in effect. File(/home/storm/ultimatemember/languages/plugins/) is not within the allowed path(s): (/home/storm/sites/dev-cso-group/:/home/storm/tmp/dev-cso-group:/tmp) in /home/storm/sites/dev-cso-group/public/wp-content/plugins/ultimate-member/includes/admin/core/class-admin-notices.php on line 252I have used the
um_upload_basedir_filterfilter to print_r the $basedir variable that it gets passed and it is being generated correctly:/home/storm/sites/dev-cso-group/public/wp-content/uploads/sites/3/ultimatemember/'But then it seems to be getting changed to:
/home/storm/ultimatememberSome things I’ve tried to resolve it:
Launched a ticket with our hosting company
Tried running PHP 7.4 and 8.0
Tried Network activate and also subsite activate.The issue is breaking the media library on subsites.
IMPORTANT: The issue doesn’t occur on another multisite running UM 2.4.1 which is on an identical server config and sitting on WP version 5.9.3
Hopefully you can help identify the issue.
Thanks,
Hayhow
The topic ‘PHP open_basedir path errors’ is closed to new replies.