Topic on Extension talk:DynamicPageList (Wikimedia)

Jump to navigation Jump to search

Use of undefined constant __DIR__ - assumed -- ERROR

3
193.158.105.118 (talkcontribs)

Hi,

what did I wrong ? I downloaded the extension and have it in to the intersection folder. After adding the load entry to the config file following Error occured:


Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /var/apache2/2.2/htdocs/mediawiki-1.18.1/extensions/intersection/DynamicPageList.php on line 51

Warning: include(__DIR__/DynamicPageList.i18n.php) [function.include]: failed to open stream: No such file or directory in /var/apache2/2.2/htdocs/mediawiki-1.18.1/includes/LocalisationCache.php on line 408

Warning: include() [function.include]: Failed opening '__DIR__/DynamicPageList.i18n.php' for inclusion (include_path='.:/var/php/5.2/pear') in /var/apache2/2.2/htdocs/mediawiki-1.18.1/includes/LocalisationCache.php on line 408

What should I do ?

Bawolff (talkcontribs)

Your version of PHP is too old. Update PHP (or use an older version of DynamicPageList, although you may have to go quite far back).

124.29.220.32 (talkcontribs)

if ( !defined('__DIR__') ) define('__DIR__', dirname(__FILE__)); use this

Reply to "Use of undefined constant __DIR__ - assumed -- ERROR"