Last modified: 2014-11-09 14:15:46 UTC
Get errors when installing: Fatal error: Class 'Flow\Model\Header' not found in /var/www/wiki/extensions/Flow/FlowActions.php on line 37 It just cannot work at all... I have tried to install it again in a new empty MediaWiki, but failed again.
Which MediaWiki version and which Flow version is this about?
(In reply to Andre Klapper from comment #1) > Which MediaWiki version and which Flow version is this about? MediaWiki 1.23.5 Flow 5453f5d Mantle 97fda47
That's strange. Flow.php:91:$wgAutoloadClasses['Flow\Model\Header'] = $dir . 'includes/Model/Header.php'; includes/Model/Header.php:3:namespace Flow\Model; Those two lines should be enough for PHP to figure it out. Which version of PHP are you running? Namespaces were introduced in 5.3.0. Flow development has required changes to core MediaWiki. Even the version of Flow that you're using from April required MediaWiki 1.24. Note the caution in https://www.mediawiki.org/wiki/Extension:Flow , it's a fast-moving project.
(In reply to spage from comment #3) > That's strange. > > Flow.php:91:$wgAutoloadClasses['Flow\Model\Header'] = $dir . > 'includes/Model/Header.php'; > > includes/Model/Header.php:3:namespace Flow\Model; > > Those two lines should be enough for PHP to figure it out. Which version of > PHP are you running? Namespaces were introduced in 5.3.0. > > Flow development has required changes to core MediaWiki. Even the version > of Flow that you're using from April required MediaWiki 1.24. Note the > caution in https://www.mediawiki.org/wiki/Extension:Flow , it's a > fast-moving project. I am using PHP 5.3.10.
I confirm this problem is solved by updating MediaWiki to 1.23.6. This problem is caused by bug #67440, which is fixed in 1.23.6. https://bugzilla.wikimedia.org/show_bug.cgi?id=67440 When I update MediaWiki to 1.23.6, I successfully installed Flow plugin. (Unluckly, it doesn't work well now. But that is another problem.)