User talk:DAlangi (WMF)/Sandbox/T338264

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 DAlangi (WMF) (talk) 09:54, 7 June 2023 (UTC)