Steps to replicate the issue (include links if applicable):
- Go to https://www.mediawiki.org/wiki/Project:Support_desk
- Submit the following title and text as a Flow thread: (To avoid confusion this task has nothing to do with the contents of the thread below!)
Log for extension (getContext not working) To be short, I'm not really a developer but our project is suffering from a lack of them so I'm trying to work on something myself. The RequestSSL extension must interact with the ManageWiki extension in order to update the server name in ManageWiki. This is done via RemoteWiki. The issue I am having is that ManageWiki has a log for all actions but when done by RemoteWiki it doesn't so a manual log needs to be added. I've tried to add this manual log like this, but it doesn't work (see error below). Please let me know what I'm doing wrong. Function that isn't working: https://pastebin.com/iJv6QHMH Error: https://pastebin.com/hDVxS8AK Relevant files are: https://github.com/Reception123/RequestSSL/blob/main/includes/RequestSSLManager.php (the logging method isn't included there since it doesn't work) https://github.com/Reception123/RequestSSL/blob/main/includes/RequestSSLViewer.php
What happens?:
[0a336a7f-0d05-4f5d-b2b6-b15319d05ecd] Caught exception of type Flow\Exception\DataModelException
(No further stacktrace since this is on a WMF wiki)
What should have happened instead?:
The thread should've been submitted
Software version (skip for WMF-hosted wikis like Wikipedia):
MediaWiki
Other information (browser name/version, screenshots, etc.):
[Exception Flow\Exception\DataModelException] (/srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/Model/AbstractRevision.php:600) Content not given in storage format html #0 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/Model/AbstractRevision.php(585): Flow\Model\AbstractRevision->setContentRaw(array) #1 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/Model/PostRevision.php(182): Flow\Model\AbstractRevision->setContent(string, string, MediaWiki\Title\Title) #2 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/Block/TopicListBlock.php(145): Flow\Model\PostRevision->reply(Flow\Model\Workflow, User, string, string) #3 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/Block/TopicListBlock.php(104): Flow\Block\TopicListBlock->create() #4 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/Block/AbstractBlock.php(145): Flow\Block\TopicListBlock->validate() #5 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/SubmissionHandler.php(121): Flow\Block\AbstractBlock->onSubmit(array) #6 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/WorkflowLoader.php(62): Flow\SubmissionHandler->handleSubmit(Flow\Model\Workflow, DerivativeContext, array, string, array) #7 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/Api/ApiFlowBasePost.php(20): Flow\WorkflowLoader->handleSubmit(DerivativeContext, string, array) #8 /srv/mediawiki/php-1.41.0-wmf.12/extensions/Flow/includes/Api/ApiFlow.php(101): Flow\Api\ApiFlowBasePost->execute() #9 /srv/mediawiki/php-1.41.0-wmf.12/includes/api/ApiMain.php(1913): Flow\Api\ApiFlow->execute() #10 /srv/mediawiki/php-1.41.0-wmf.12/includes/api/ApiMain.php(889): ApiMain->executeAction() #11 /srv/mediawiki/php-1.41.0-wmf.12/includes/api/ApiMain.php(860): ApiMain->executeActionWithErrorHandling() #12 /srv/mediawiki/php-1.41.0-wmf.12/api.php(95): ApiMain->execute() #13 /srv/mediawiki/php-1.41.0-wmf.12/api.php(48): wfApiMain()