Last modified: 2013-01-21 15:43: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
__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!).