Last modified: 2013-01-21 15:43:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T46198, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44198 - include(__DIR__/Poem.i18n.php) [function.include]: failed to open stream
include(__DIR__/Poem.i18n.php) [function.include]: failed to open stream
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Poem (Other open bugs)
REL1_19-branch
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-21 09:22 UTC by bruno.devos
Modified: 2013-01-21 15:43 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description bruno.devos 2013-01-21 09:22:02 UTC
In Poem.php, line 29, the line: 

$dir = __DIR__ . '/';

should be 

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


Otherwise I get this error message:

Warning: include(__DIR__/Poem.i18n.php) [function.include]: failed to open stream: No such file or directory in /xxx/includes/LocalisationCache.php on line 455

Warning: require(/opus-info/__DIR__/Poem.class.php) [function.require]: failed to open stream: No such file or directory in /xxx/includes/AutoLoader.php on line 1007

Warning: require(/opus-info/__DIR__/Poem.class.php) [function.require]: failed to open stream: No such file or directory in /xxx/includes/AutoLoader.php on line 1007

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Poem::init' was given in /xxx/includes/Hooks.php on line 216
Comment 1 Alex Monk 2013-01-21 15:43:02 UTC
__DIR__ is a valid magic constant, you just don't have a modern PHP version. It was added in PHP 5.3.0, released 2009-06-30 (that's 3 and a half years ago!).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links