Hi,
I installed a new 1.11.0 wiki and I see the following error after installation: PHP Fatal error: Only variables can be passed by reference in C:\Inetpub\testwiki\includes\LinkBatch.php on line 163
First time I see that and my 1.10.X wikis are working fine.
I got this before installing:
* PHP 5.0.5 installed * Found database drivers for: MySQL * PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title) * Have XML / Latin1-UTF-8 conversion support. * Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under. * PHP is configured with no memory_limit. * Couldn't find Turck MMCache, eAccelerator, APC or XCache; cannot use these for object caching. * GNU diff3 not found. * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. * Installation directory: C:\Inetpub\testwiki * Script URI path: /testwiki * Installing MediaWiki with php file extensions * Environment checked. You can install MediaWiki.
Any idea?
Thanks! Simon
Any idea?
What extensions do you have installed, if any? If you have any installed, make sure any code they told you to add to LocalSettings.php is added near the end. My guess would be that something is causing that file to be called before the appropriate configuration is run (but that's just a guess).
It is a clean install using everything as default.
Same settings as my old wikis basically.
One of my colleague managed to fix the problem by changing a few lines in the linkbatch.php file.
That's what he modified:
$temp1 = array_keys($dbkeys); $temp2 = current($temp1); $temp3 = $db->addQuotes($temp2); $sql .= "({$prefix}_namespace=$ns AND {$prefix}_title=". $temp3. ")"; unset($temp1); unset($temp2); unset($temp3);
I'm wondering if it's something wrong with my PHP config.
Simon
On Nov 21, 2007 11:58 AM, Thomas Dalton thomas.dalton@gmail.com wrote:
Any idea?
What extensions do you have installed, if any? If you have any installed, make sure any code they told you to add to LocalSettings.php is added near the end. My guess would be that something is causing that file to be called before the appropriate configuration is run (but that's just a guess).
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I'm wondering if it's something wrong with my PHP config.
Looks like a bug in MediaWiki that has since been fixed. See:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/LinkBatch.ph...
If you make the same changes to your version, it should fix it.
mediawiki-l@lists.wikimedia.org