Extension talk:Video


PHP Fatal Error on MW 1.18 when viewing category: pages

I hope this gives you plenty of information.

Pages that work:

/wiki/Special:Categories /wiki/Special:AllPages /index.php?title=Category:Videos&action=edit&redlink=1

Don't work:

/wiki/Category:Videos (After submitting the changes to the 'Videos' category. /index.php?title=Category:Videos

The error:

When looking at Videos category:

Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /usr/local/www/wiki/includes/db/DatabaseMysql.php on line 331

Notice: Undefined property: CategoryWithVideoViewer::$context in /usr/local/www/wiki/extensions/Video/VideoPage.php on line 381

Catchable fatal error: Argument 2 passed to Video::__construct() must implement interface IContextSource, null given, called in /usr/local/www/wiki/extensions/Video/VideoPage.php on line 381 and defined in /usr/local/www/wiki/extensions/Video/VideoClass.php on line 119

When looking at any other category:

Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /usr/local/www/wiki/includes/db/DatabaseMysql.php on line 331

Fatal error: Cannot use object of type RequestContext as array in /usr/local/www/wiki/includes/CategoryPage.php on line 712


Information on my instance:

MediaWiki 1.18.0 PHP 5.3.5 (cgi-fcgi) MySQL 5.5.9

Extensions:

Nuke (Version 1.1.3) (r107592)
Password Reset (Version 1.7) (r107592)
Renameuser (r107592)
Gadgets (r107592)
Video (Version 1.4)

Edit: I just confirmed that the error also occurs with only the Video extension installed. 66.63.164.214 20:38, 29 December 2011 (UTC)

Kullanıcı için küçümsenemeyecek kategori hatası var acık olabilir 149.140.80.74 20:32, 3 January 2012 (UTC)
I am getting the same thing enabling this extension makes all category pages stop working. with this error:
PHP Warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /path/wiki/w/includes/db/DatabaseMysql.php on line 331
PHP Fatal error: Cannot use object of type RequestContext as array in /path/wiki/w/includes/CategoryPage.php on line 712
dose anyone have any ideas?? 15.203.233.79 18:34, 15 March 2012 (UTC)
The same problem! Iwikia (talk) 03:13, 22 March 2012 (UTC)
Try upgrading PHP and making sure that your version of the extension is in line with or earlier than your MediaWiki version. Jasper Deng (talk) 04:06, 22 March 2012 (UTC)
I update the php to 5.3.2,but the problem is still here:
Notice: Undefined property: CategoryWithVideoViewer::$context in /usr/local/www/wiki/extensions/Video/VideoPage.php on line 381
Catchable fatal error: Argument 2 passed to Video::__construct() must implement interface IContextSource, null given, called in /usr/local/www/wiki/extensions/Video/VideoPage.php on line 381 and defined in /usr/local/www/wiki/extensions/Video/VideoClass.php on line 119 Iwikia (talk) 06:43, 22 March 2012 (UTC)
Did you make sure your extension version is compatible with your MediaWiki version? Jasper Deng (talk) 17:18, 22 March 2012 (UTC)
I use 1,18.0and 1.18.1 are the same problem, can you help me test the extension?thank you! Iwikia (talk) 21:29, 22 March 2012 (UTC)
It works fine for me in 1.18 and 1.20 alpha.
Nevermind, wrong page. I have no use for this extension, nor the interest; try using an earlier version of the extension. Jasper Deng (talk) 21:45, 22 March 2012 (UTC)
Ran into the same issue with MediaWiki 1.19.0.
It seems the addVideo function isn't working, I was able to work around the issue with the change:
--- a/Video/VideoPage.php
+++ b/Video/VideoPage.php
@@ -430,7 +430,7
-                               $this->addVideo( $title, $x->cl_sortkey, $x->page_len );
+                               $this->addSubcategory( $title, $x->cl_sortkey, $x->page_len );
Azzurro (talk) 07:51, 14 May 2012 (UTC)
Also I used this workaround for videos not being deleted in MediaWiki 1.19.0:
--- VideoHooks.php      (revision 115365)
+++ VideoHooks.php      (working copy)
@@ -197,8 +197,7 @@
-                       $videoObj = new Video( $articleObj->getTitle(), $articleObj->getContext() );
-                       $videoName = $videoObj->getName();
+                       $videoName = $articleObj->getTitle();
Azzurro (talk) 07:56, 14 May 2012 (UTC)
Another issue - to fix broken categories pagination, I needed to comment out the related hook:
--- a/Video/Video.php
+++ b/Video/Video.php
@@ -106,7 +106,8 @@
-$wgHooks['CategoryPageView'][] = 'VideoHooks::categoryPageWithVideo';
+#$wgHooks['CategoryPageView'][] = 'VideoHooks::categoryPageWithVideo';
Azzurro (talk) 23:58, 19 January 2013 (UTC)

Parse error

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in .../wiki/extensions/Video/VideoClass.php on line 503
using in MW 1.18.0, PHP 5.2.17 (cgi), MySQL 5.0.92-1~ui40+1 hollosch 18:58, 20 January 2012 (UTC)

Maybe the PHP Version too low Iwikia (talk) 03:14, 22 March 2012 (UTC)
Yeah, try upgrading PHP. Jasper Deng (talk) 04:06, 22 March 2012 (UTC)

Video thumnails not displaying in Special:Video

As the title says, everything works great except the video thumbnails not displaying when viewing the special page: New Videos. The html code created doesn't have a link to any thumbnail image or small version of the video.

div class="thumb" style="padding: 23px 0; width: 230px;">

U2</a>

I'm just testing with the trunk 1.22 wmf12 mediawiki, because I also need the visual editor to work. Not sure if it works in earlier releases. MarkJurgens (talk) 20:14, 12 August 2013 (UTC)

Still no comment? Is anyone maintaining this extension anymore? MarkJurgens (talk) 02:53, 6 December 2013 (UTC)
Same issue here.
The video also does not display when the article containing the video is transcluded to another article. For example, on page foo, I have [[Video:foo|300px]] and that page displays properly. On page bar, I have {{:foo}} and the only thing that displays is a hyperlink with the link text '300px'. The hyperlink goes to Video:foo which also displays properly.
Product	Version
MediaWiki	1.20.5 (0394bf4)
PHP	5.5.0RC1 (apache2handler)
MySQL	5.5.31
GregRundlett (talk) 16:04, 8 January 2014 (UTC)

Two questions:

  1. Is this extension still being worked on? It seems like the perfect solution for my site.
  2. And i was wondering if, with the extensions current state, it would be possible to set up automatic syncing with, for example, a youtube channel. So that when the channel adds a new video, it is also automatically shared to the mediawiki site with this extension? Oleolsenkjhølkølk (talk) 07:44, 11 June 2019 (UTC)