Page MenuHomePhabricator

Cannot install: Class 'Flow\Model\Header' not found
Closed, ResolvedPublic

Description

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.


Version: REL1_23-branch
Severity: critical

Details

Reference
bz71960

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:48 AM
bzimport set Reference to bz71960.
bzimport added a subscriber: Unknown Object (MLST).

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