Page 1 of 1

webvideo plugin no longer working?

Posted: Mon Jun 25, 2018 3:31 am
by twwitt
Is anyone out there still using the webvideo plugin?

I have it on an older site that is still using CMSMS ver. 1.12.2 (yes, I know it's out of date), and suddenly the plugin has stopped working.
(I know the plugin is marked as stale, but can't find others who have found it NOT working)

e.g. of my use of the plugin: {webvideo movie='nxeKwEf5mC4' width='500'}

produces source code on the page of:

http://www.youtube.com/v/nxeKwEf5mC4&hl=en_US&fs=1

instead of linking properly to the video url.

There are a ton of these, so I was hoping not to have to re-link them all. Any suggestions?

Re: webvideo plugin no longer working?

Posted: Mon Jun 25, 2018 9:02 am
by velden
If it suddenly stopped working it might be caused by changes to the environment. Would it be possible the hosting provider upgraded the version of PHP for example?

It wouldn't be too hard to write your own plugin (or UDT) to replace this one. That would prevent you from changing all the existing calls.

First you should debug the plugin. Check what it really outputs and if it shows some errors (check server log too).

Re: webvideo plugin no longer working?

Posted: Mon Jun 25, 2018 2:39 pm
by DIGI3
If/when you do upgrade to 2.x, the webvideo plugin still works with a one-line change. Line 21:

Code: Select all

$config =& $gCms->GetConfig();
to

Code: Select all

$config = \cms_config::get_instance();
This won't fix your current issue, Velden is correct, it sounds more like an environment change. Things don't just stop working when nothing has changed.

Re: webvideo plugin no longer working?

Posted: Mon Jun 25, 2018 4:27 pm
by twwitt
Thanks for the responses. I'm checking to see if there was a PHP change. If that's the case, do you think it's unlikely that this plugin will work with a higher PHP version?

Re: webvideo plugin no longer working?

Posted: Mon Jun 25, 2018 4:30 pm
by DIGI3
With the above fix, I'm using it on cmsms 2.x with php 7.1