Last modified: 2011-03-13 18:06:01 UTC
Following instructions in http://www.nat32.com/xampp/wiki.htm executing step 4 obtain "Please set up the wiki first" page (correct), but when click "set up the wiki" link get the error Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in C:\xampp\htdocs\mediawiki\includes\Namespace.php on line 46 First 46 lines here: /** * Provide things related to namespaces * @package MediaWiki */ /** * Definitions of the NS_ constants are in Defines.php * @private */ $wgCanonicalNamespaceNames = array( NS_MEDIA => 'Media', NS_SPECIAL => 'Special', NS_TALK => 'Talk', NS_USER => 'User', NS_USER_TALK => 'User_talk', NS_PROJECT => 'Project', NS_PROJECT_TALK => 'Project_talk', NS_IMAGE => 'Image', NS_IMAGE_TALK => 'Image_talk', NS_MEDIAWIKI => 'MediaWiki', NS_MEDIAWIKI_TALK => 'MediaWiki_talk', NS_TEMPLATE => 'Template', NS_TEMPLATE_TALK => 'Template_talk', NS_HELP => 'Help', NS_HELP_TALK => 'Help_talk', NS_CATEGORY => 'Category', NS_CATEGORY_TALK => 'Category_talk' ); if( is_array( $wgExtraNamespaces ) ) { $wgCanonicalNamespaceNames = $wgCanonicalNamespaceNames + $wgExtraNamespaces; } /** * This is a utility class with only static functions * for dealing with namespaces that encodes all the * "magic" behaviors of them based on index. The textual * names of the namespaces are handled by Language.php. * * These are synonyms for the names given in the language file * Users and translators should not change them * * @package MediaWiki */ class Namespace { So error occurs at "class Namespace" Version info from XAMPP: ###### Apache Friends XAMPP (Basis Package) version 1.7.2 ###### + Apache 2.2.12 (IPV6 enabled) + MySQL 5.1.37 (Community Server) with PBXT engine 1.0.08-rc + PHP 5.3.0 + PEAR (PEAR, Mail_Mime, MDB2, Zend) + Perl 5.10.0 (Bundle::Apache2, Bundle::Apache::ASP, Bundle::Email, Bundle::DBD::mysql, DBD::SQlite) + XAMPP Control Version 2.5.8 (ApacheFriends Edition) + XAMPP CLI Bundle 1.6 + XAMPP Port Check 1.4 + XAMPP Security 1.1 + SQLite 2.8.17 + SQLite 3.6.16 + OpenSSL 0.9.8k + phpMyAdmin 3.2.0.1 + ADOdb v5.09a + FPDF v1.6 + Zend Framework 1.9 Minimal Package (via PEAR) + Mercury Mail Transport System v4.62 + msmtp 1.4.17 (a sendmail compatible SMTP client) + FileZilla FTP Server 0.9.32 + Webalizer 2.21-02 (with GeoIP lite) + Xdebug 2.0.5 for PHP + eAccelerator 0.9.6-rc1 for PHP + Ming 0.4.2 for PHP + PDF with pdflib lite v7.0.4p4 for PHP
You do realise 1.15.1 is out, right?
http://www.mediawiki.org/wiki/Version_lifecycle And it's obsolete by MW
You want http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.1.tar.gz
Thanks for the fast/clear response - I noticed that as I reported the bug, and wondered if I was behind or seeing new threads, but had assumed that since I downloaded from http://sourceforge.net/projects/wikipedia/ I had the most recent (Windows XP exe) GA version. Ooops - lesson learned. Sorry, and thanks again!
:) Seems XAMPP is partially out of date (and also, the files still being available on that old project), so I've noted to them on IRC to see about getting that updated too :)