Jump to content

Topic on Project:Support desk/Flow

Warning: require_once(): open_basedir restriction in effect

6
185.5.60.134 (talkcontribs)

Hello,

I have a wiki in Italian, one in ingloese and one in Spanish. The first uses MediaWiki 1.22.6, the second and third mediawiki 1.25.1... The wiki in Italian works perfectly while in the last two suddenly came out this error:

Warning: require_once(): open_basedir restriction in effect. File(/customers/9/f/6/mysite.com/httpd.www/en/extensions/GeoData/GeoData.php) is not within the allowed path(s): (//customers/9/f/6/mysite.com//httpd.www://customers/9/f/6/mysite.com//httpd.private://customers/9/f/6/mysite.com//tmp:/customers/mysite.com/mysite.com:/var/www/diagnostics:/usr/share/php) in /customers/9/f/6/mysite.com/httpd.www/en/LocalSettings.php on line 144 Warning: require_once(/customers/9/f/6/mysite.com/httpd.www/en/extensions/GeoData/GeoData.php): failed to open stream: Operation not permitted in /customers/9/f/6/mysite.com/httpd.www/en/LocalSettings.php on line 144 Fatal error: require_once(): Failed opening required '/customers/9/f/6/mysite.com/httpd.www/en/extensions/GeoData/GeoData.php' (include_path='.:/usr/share/php') in /customers/9/f/6/mysite.com/httpd.www/en/LocalSettings.php on line 144

Can anyone tell me how to fix this error? They have always worked very well and I have not changed anything. I already tried to remove extensions, but nothing changes

185.5.60.134 (talkcontribs)

ingloese = English... typing error

87.123.5.18 (talkcontribs)

This error means that something has changed in your PHP configuration.

The different entries in open_basedir are wrong; they have the wrong number of slashes inside them, for example:

Wrong:

//customers/9/f/6/mysite.com/httpd.www

Right:

/customers/9/f/6/mysite.com/httpd.www
185.5.60.134 (talkcontribs)

Thanks for the answer| So it's a change that has made my host? I can fix this somehow?

87.123.36.37 (talkcontribs)

Someone with access to the PHP configuration can fix this. If this is (only) your host, then he will be the one. The paths, which you have there are obviously wrong. They should just be fixed.

185.5.60.134 (talkcontribs)

Problem solved with the support of my host, thanks for having shown the way to go... I was beginning to despair!