Last modified: 2014-05-10 12:55:20 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
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
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.
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.)
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.