Here is the warning:
Warning: is_file(): open_basedir restriction in effect. File(/home/webapps/nexthttps:/www.google.com/recaptcha/api.js?onload=JoomlaInitReCaptcha2&render=explicit&hl=fr-FR) is not within the allowed path(s): (/home/webapps/next:/var/lib/php/session:/tmp) in /home/next/libraries/src/Filesystem/File.php on line 640
Don't know if this is core related or not...but testing a URL with is_file()
seems a nonsense.
Labels |
Added:
?
|
Category | ⇒ | Libraries |
Status | New | ⇒ | Information Required |
Title |
|
The host has a basedir set and it seams that we test a url if it exists with is_file, that seams wrong to me. I did't checked the codepath but I think checking external files for existence makr no sense.
Labels |
Added:
J3 Issue
|
I didn't test with J4 if this behavior remains the same. It happens on J3.9.5.
Title |
|
One of main reason behind open_basedir error comes from the restrictions that applies by Apache on files path and file opening. In early versions of PHP & Apache, you were able to set it on PHP.ini file alone; however, in latest version of Apache, you just need to set in Apache. In your Apache config file there is a section that have few options like allowing open_basedir, its base directory, etc.
There are two more reasons:
1- If you using shared hosting, the site admin may have put restrictions on open_basedir
2- Sometimes this error is caused by .htaccess file on your server. Make sure there is no restriction applies there. It is usually located on the main root directory of your site.
Good luck,
Matt
https://coding-bootcamps.com/
https://myhsts.org/
https://dcwebmakers.com/
@weg2g please see #24402 (comment)
@acs-ferreira are you still seeing this issue?
Can't say, not using it anymore, so closing for now.
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-11 19:07:41 |
Closed_By | ⇒ | acs-ferreira |
i guess its about J3 so calling @HLeithner to comment.