Upgrade to 1.18 failed on webhosted Installation
Fragment of a discussion from Project:Support desk
@ 77.1.105.81: The error "Use of undefined constant __DIR__" happens because you do not use PHP 5.3. Either update PHP to PHP 5.3.x or use an older MediaWiki version, which still is compatible with PHP 5.2. This error is the reason for the following errors.