Upgrade to 1.18 failed on webhosted Installation

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

Is there any solution to this problem, cause i got the same (MySQL 5.0.51a PHP 5.2.17). Debugging shows

Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /var/www/.../mw-config/index.php on line 13 Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /var/www/.../mw-config/index.php on line 17 Warning: require(./includes/WebStart.php): failed to open stream: No such file or directory in /var/www/.../mw-config/index.php on line 17 Warning: require(./includes/WebStart.php): failed to open stream: No such file or directory in /var/www/.../mw-config/index.php on line 17 Fatal error: require(): Failed opening required './includes/WebStart.php' (include_path='.:/home/php5/lib/php:/usr/share/php') in /var/www/.../mw-config/index.php on line 17

77.1.105.8115:03, 12 September 2012

@ 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.

88.130.124.18318:23, 12 September 2012

Thanks, figured it out by now. I tried to upgrade to 1.20alpha because of Bug 34310. Backgrading to 1.18 worked.

77.1.105.8118:50, 12 September 2012