Topic on Extension talk:GoogleCustomWikiSearch

Jump to navigation Jump to search

require_once(__DIR__/GoogleCustomWikiSearch.Settings.php) [function.require-once]: failed to open stream

Gabuzo (talkcontribs)

In GoogleCustomWikiSearch.php, line 16, Please replace

$dir = __DIR__ . '/';


$dir = dirname(__FILE__) . '/';

otherwise I get:

Warning: require_once(__DIR__/GoogleCustomWikiSearch.Settings.php) [function.require-once]: failed to open stream: No such file or directory in /xxx/extensions/GoogleCustomWikiSearch/GoogleCustomWikiSearch.php on line 25

Fatal error: require_once() [function.require]: Failed opening required '__DIR__/GoogleCustomWikiSearch.Settings.php' (include_path='/xxx:/xxx/includes:/xxx/languages:.:/:/usr/local/php/pear5') in /xxx/extensions/GoogleCustomWikiSearch/GoogleCustomWikiSearch.php on line 25

Tosfos (talkcontribs)

Thanks for the feedback. That error is generated when using PHP < 5.3, which is required anyway to run the current version of MediaWiki (1.20). Those using an earlier version of MediaWiki and an older version of PHP should use your patch. I hope to add a branch for that in the near future. (talkcontribs)

I have this error.. too

PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/html/sites/nethesis-wiki/extensions/GoogleCustomWikiSearch/GoogleCustomWikiSearch.Settings.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/sites/nethesis-wiki/extensions/GoogleCustomWikiSearch/GoogleCustomWikiSearch.php on line 26" while reading response header from upstream, client:, server:, request: "GET /Nethesis HTTP/1.1", upstream: "fastcgi://unix:/tmp/php5-fpm.sock:", host: ""

Tosfos (talkcontribs)

The near future has arrived. A fix for older versions of PHP was entered for branch REL1_19. It can be downloaded from git or from this link.

Reply to "require_once(__DIR__/GoogleCustomWikiSearch.Settings.php) [function.require-once]: failed to open stream"