Jump to content

Topic on Project:Support desk

Instance of User getting string instead

2
Timmysworld (talkcontribs)

Hi, I am creating a video permissions extension for my wiki. I keep getting this error and not sure how to go about fixing it. [81e16b69894234cb8a025ff0] /wiki/Special:Upload TypeError: Argument 2 passed to VideoPermissionsHooks::onUploadVerifyUpload() must be an instance of User, string given, called in /var/www/html/w/includes/HookContainer/HookContainer.php on line 338

TheDJ (talkcontribs)

What does the method signature of your onUploadVerifyUpload look like ?

Reply to "Instance of User getting string instead"