Last modified: 2013-02-18 19:16:32 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 T47123, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45123 - Extension:Video has errors in hooks.php (line 216) and VideoClass.php (line 471, 478)
Extension:Video has errors in hooks.php (line 216) and VideoClass.php (line 4...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Other (Other open bugs)
unspecified
PC Windows Server 2003
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-18 16:31 UTC by Kevan Paul
Modified: 2013-02-18 19:16 UTC (History)
0 users

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


Attachments

Description Kevan Paul 2013-02-18 16:31:19 UTC
Installed software:
MediaWiki 1.20.2
PHP 5.4.11
MySQL 5.6.10

Extension:
https://www.mediawiki.org/wiki/Extension:Video

Error on Main Page:
"Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method VideoHooks::videoFromTitle() should not be called statically in c:\etc\www\htdocs\w\includes\Hooks.php on line 216. 

Errors on Special:AddVideo

Notice: Undefined offset 2 in c:\etc\www\htdocs\w\extensions\Video\VideoClass.php on line 471.

Notice: Undefined offset 6 in c:\etc\www\htdocs\w\extensions\Video\VideoClass.php on line 478.
Comment 1 Sam Reed (reedy) 2013-02-18 16:35:30 UTC
Strict: https://gerrit.wikimedia.org/r/49679
Comment 2 Sam Reed (reedy) 2013-02-18 16:37:55 UTC
https://gerrit.wikimedia.org/r/49680
Comment 3 Kevan Paul 2013-02-18 17:14:03 UTC
(In reply to comment #1)
> Strict: https://gerrit.wikimedia.org/r/49679

The VideoClass.php errors are fixed/verified.
Comment 4 Kevan Paul 2013-02-18 17:20:03 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > Strict: https://gerrit.wikimedia.org/r/49679
> 
> The VideoClass.php errors are fixed/verified
(In reply to comment #1)
> Strict: https://gerrit.wikimedia.org/r/49679

But, still getting the "Strict Standards" error on 216 for w\included\Hooks.php. The VideoHooks.php file was updated.
Comment 5 Kevan Paul 2013-02-18 19:16:32 UTC
Adding the "static public" to the "function videoFromTitle" on line 81 of the VideoHooks.php did not resolve the callback error. 

The method VideoHooks:videoFromTitle () does not appear in the VideoHooks.php file. Is this a possible reason for the error message?

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


Navigation
Links