Last modified: 2014-05-10 12:55:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66660, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64660 - Fatal Error creating Campaign pages: "Call to undefined function efSchemaValidate()" due to undocumented EventLogging dependency
Fatal Error creating Campaign pages: "Call to undefined function efSchemaVali...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-30 15:36 UTC by kilian.kluge
Modified: 2014-05-10 12:55 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description kilian.kluge 2014-04-30 15:36:06 UTC
When trying to create a Campaign page with the minimal content

{
    "enabled": false
}

we get the following error:

Fatal error: Call to undefined function efSchemaValidate() in /usr/local/www/apache22/data/plwiki/extensions/UploadWizard/includes/CampaignContent.php on line 61

The same error appears using the JSON code from [1], which is definitely working fine on Wikimedia Commons.

When we try to save the (presumably) incorrect

{
    "enabled": false,
}

we get:

Fatal error: Class 'JsonSchemaException' not found in /usr/local/www/apache22/data/plwiki/extensions/UploadWizard/includes/CampaignContent.php on line 42

When we try to use the preview, we get:

Fatal error: Call to undefined function efBeautifyJson() in /usr/local/www/apache22/data/plwiki/extensions/UploadWizard/includes/CampaignContent.php on line 86

We can create empty pages in the Campaign namespace, however. I assume there's something wrong with JSON parser. The UploadWizard itself is running fine.

[1] https://commons.wikimedia.org/wiki/Campaign:wlm-de-nrw-k
Comment 1 Gilles Dubuc 2014-05-08 16:06:54 UTC
Works for me locally with the latest version of UploadWizard:

https://www.dropbox.com/s/jloh5bis2hoht0l/Screenshot%202014-05-08%2018.05.42.png
https://www.dropbox.com/s/pwlggohwn5awqoh/Screenshot%202014-05-08%2018.05.55.png

And when I try to put in invalid JSON, I see a correct error message:

https://www.dropbox.com/s/sg441ncjuocaugr/Screenshot%202014-05-08%2018.06.34.png
Comment 2 Andre Klapper 2014-05-09 16:29:57 UTC
Hi Kilian. Thanks for taking the time to report this!

(In reply to kilian.kluge from comment #0)
> When trying to create a Campaign page with the minimal content
[...]
> The same error appears using the JSON code from 
> https://commons.wikimedia.org/wiki/Campaign:wlm-de-nrw-k which 
> is definitely working fine on Wikimedia Commons.

Just to make this clear, you are trying this on a private wiki where this does not work? Would be interesting to know which MediaWiki, PHP versions are in place, and which installed extensions might interfere.
Comment 3 Tisza Gergő 2014-05-09 18:11:34 UTC
efSchemaValidate comes from EventLogging. As the UploadWizard extension page says:

"You should also install the EventLogging extension. This is used only if you use the campaigns feature, and should be made a soft dependency at some point in the future."

...so the real bug is that Campaigns should die with a helpful error message if EventLogging is not installed. (Whether it is a good idea to share code between the extensions in this way is another question.)
Comment 4 kilian.kluge 2014-05-09 18:36:37 UTC
Hello everybody,

I'm sorry I didn't check if this bug was closed right away after I resolved the issue with a developer via IRC.

As Tisza correctly points out, one needs to install the EventLogging extension. At the time I opened this bug report, this was not documented anywhere. The wiki page has been updated by the responsible developer: https://www.mediawiki.org/w/index.php?title=Extension:UploadWizard&diff=989591&oldid=957080

I assumed that he would close this bug report as well, since the issue has been resolved by updating the documentation.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links