J3 Issue ?
avatar acs-ferreira
acs-ferreira
29 Mar 2019

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.

avatar acs-ferreira acs-ferreira - open - 29 Mar 2019
avatar joomla-cms-bot joomla-cms-bot - change - 29 Mar 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Mar 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Mar 2019
Category Libraries
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Mar 2019

i guess its about J3 so calling @HLeithner to comment.

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2019
Status New Information Required
avatar acs-ferreira acs-ferreira - change - 30 Mar 2019
Title
PHP Warning (open_basedir) when using reCaptcha v2
[3.9] PHP Warning (open_basedir) when using reCaptcha v2
avatar acs-ferreira acs-ferreira - edited - 30 Mar 2019
avatar HLeithner
HLeithner - comment - 31 Mar 2019

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.

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 4 Apr 2019
avatar acs-ferreira
acs-ferreira - comment - 15 Apr 2019

I didn't test with J4 if this behavior remains the same. It happens on J3.9.5.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
[3.9] PHP Warning (open_basedir) when using reCaptcha v2
PHP Warning (open_basedir) when using reCaptcha v2
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar weg2g
weg2g - comment - 5 Oct 2019

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/


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24402.

avatar acs-ferreira
acs-ferreira - comment - 17 Oct 2019
avatar acs-ferreira acs-ferreira - change - 17 Oct 2019
The description was changed
avatar acs-ferreira acs-ferreira - edited - 17 Oct 2019
avatar jwaisner
jwaisner - comment - 11 Mar 2020

@acs-ferreira are you still seeing this issue?

avatar acs-ferreira
acs-ferreira - comment - 11 Mar 2020

Can't say, not using it anymore, so closing for now.

avatar acs-ferreira acs-ferreira - close - 11 Mar 2020
avatar acs-ferreira acs-ferreira - change - 11 Mar 2020
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2020-03-11 19:07:41
Closed_By acs-ferreira

Add a Comment

Login with GitHub to post a comment