Hi,

I have no idea - this sounds like an issue for the SMW+ people.

-Yaron

On Thu, Jun 30, 2011 at 12:36 PM, Ellis, Peter C <Peter.Ellis@pnnl.gov> wrote:
We've run into an interesting issue on Semantic Forms and HaloACL, and I'm not entirely sure which piece of software is responsible, so I'm posting here rather than filing a bug report. First, the requisite system parameters:

MediaWiki 1.16.0
PHP 5.3.4 (apache2handler)
MySQL 5.0.91-log
Semantic Forms 2.1.2
HaloACL 1.3.0_0 [B216]

When we go to a form page (Special:FormEdit, in our case), we end up with the following error:

Warning: Missing argument 2 for HACLEvaluator::onSfUserCanEditPage() in /Volumes/DataHD/WebServer/hudson_dev/dsp/wiki/extensions/HaloACL/includes/HACL_Evaluator.php on line 687 Catchable fatal error: Argument 1 passed to HACLEvaluator::checkPropertyAccess() must be an instance of Title, boolean given, called in /Volumes/DataHD/WebServer/hudson_dev/dsp/wiki/extensions/HaloACL/includes/HACL_Evaluator.php on line 120 and defined in /Volumes/DataHD/WebServer/hudson_dev/dsp/wiki/extensions/HaloACL/includes/HACL_Evaluator.php on line 1213

Digging into it, it looks like HaloACL's onSfUserCanEditPage hook expects two parameters sent:

public static function onSfUserCanEditPage($title, &$userCanEdit) (line 687, includes/HACL_Evaluator.php)

However, Semantic Forms is only sending one parameter - a Boolean - when the hook fires:

wfRunHooks( 'sfUserCanEditPage', array( &$userCanEditPage ) ); (includes\SF_FormPrinter.php line 324)

Yaron, Ontoprise folks, any insights? I'd fix it myself, but I'm not clear what title parameter it expects - it looks like, from the Semantic Forms code, that passing $this->mPageTitle out of sfUserCanEditPage would fix the problem, but I'd prefer not to do that if it clobbers other things...
__________________________________________________
Peter Ellis
Scientist
Knowledge Discovery and Informatics
Pacific Northwest National Laboratory



------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel



--
WikiWorks MediaWiki Consulting http://wikiworks.com