Same changes as in version 1.8.1 to work on Elgg 1.9:
View iionly's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
@juniorhallak Are the other lines apart from PHP green? If not, you would need to install the corresponding packages on the server.
I guess FFMPEG is installed as it shows the version information. Though this version of FFMPEG is very, very old. If possible I would suggest to install a more recent version. Example of version output on my test server for FFMPEG:
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developersbuilt on Oct 6 2014 10:05:27 with gcc 4.8 (SUSE Linux)configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutlslibavutil 52. 92.100 / 52. 92.100libavcodec 55. 69.100 / 55. 69.100libavformat 55. 48.100 / 55. 48.100libavdevice 55. 13.102 / 55. 13.102libavfilter 4. 11.100 / 4. 11.100libavresample 1. 3. 0 / 1. 3. 0libswscale 2. 6.100 / 2. 6.100libswresample 0. 19.100 / 0. 19.100libpostproc 52. 3.100 / 52. 3.100
Not everything showing up here is necessary. Important would be having libx264 installed for being able to use the optimized command given as example on the settings tab
Now to the PHP problem. We can assume that PHP is installed on your server (otherwise Elgg wouldn't work at all...). Therefore the reason for the fail is most likely a wrong path to the PHP interpreter given on the settings tab. "/usr/bin/php" is just a default path that is not necessarily correct on all servers. You could try for example "/usr/local/bin/php" instead. Or you might want to ask your webhoster support where PHP is installed. Re-try, when no errors are shown anymore.
You should also increase post_max_size (currently 15M) in Elgg's .htaccess. It's smaller than upload_max_filesize (currently 25M). The variable upload_max_filesize is the maximum filesize PHP will allow for uploads and post_max_size must be at least the same size (better set it a bit larger, e.g. 10M more). Depending on the which filesize you want to allow at maximum, you might also have to increase max_input_time and max_execution_time. Best would be to do some testing to figure out what might be necessary.
@juniorhallak It's quite impossible to give parameters for ffmpeg conversion that work for everyone. It's a matter of video quality and resolution vs. file size of the converted video. Additionally, the ffmpeg parameters depend on the version of ffmpeg installed on your server.
The simple command should work in any case but won't give high quality results. The optimized command displayed below the Video converting command input field on the settings tab sets the bitrate (-b) and video resolution (-s) of the converted video to some mid-range quality settings. Though the video resolution and bitrate might be too low for watching a video in fullscreen. The preset (-preset medium) is also a parameter you could play with.
I would suggest to play with the settings to find the best compromise for your site. Documentation of ffmpeg is at https://www.ffmpeg.org/documentation.html.
I can't use this plugin.
I always get this error:
Fatal error: Call to undefined function elgg_namespace_plugin_private_setting() in /home/milocker/public_html/nine/engine/classes/ElggPlugin.php on line 357
PHP version:
5.4.27
I use elgg 1.9.2 Version - 2014050600
Strange.
Found the issue. Turns out that Izap Videos doesn't seem to like PHP version 5.4.27. After I changed to PHP 5.3 worked as expected.
Under PHP 5.4.27 everything was broken. Even the language file was not detected and the Izap settings page showed me a "invalid admin section"
Can anyone else confirm whether or not this plugin is compatible with PHP 5.4.27?
Great plugin, is it possible to have the same statistics/links as the tidypics plugin (the right column)?
Shouldn't there be a link/title to the video when someone comment on?

@RJ (Arvixe) and who else might come across the error
when enabling the plugin:
This is not a php issue but due to a bug in Elgg core (in 1.9). The error occurs only on Elgg 1.9 if there has been a previous version of the official izap_videos plugin installed. I've already reported the bug (https://github.com/Elgg/Elgg/issues/7335) and hopefully it will be fixed in Elgg 1.9.5. For now I suggest to fix the problem on your own. It's easy as you only have to rename the function name "elgg_namespace_plugin_private_setting" to "_elgg_namespace_plugin_private_setting" in engine/classes/ElggPlugin.php in lines 357 and 358. Afterwards you should disable/re-enable izap_videos again to get the fix take effect. Then you might have to adjust the plugin settings again.
summary of river entries when commented on a video is indeed wrong. I'll have it fixed in the next release. Thanks for reporting.
@Jocke Static pages like in Tidypics (most viewed, most commented, etc.) is indeed my plan. I might not have it added in the next version but I will work on it for sure.
@iionly great to hear. Thank you
It was on a clean elgg 1.9.2 install. Just core plugins and Izap_Videos.
I just don't feel comfortable changing core files. However why if using php 5.3 the plugin has no errors?
@RJ (Arvixe) The error is in the Elgg core function elgg_unset_all_plugin_settings() where it has been forgotten to change the name of a function used when the name of this function was changed everywhere else in Elgg 1.9.
The function elgg_unset_all_plugin_settings() is used by izap_videos only in activate.php which is only executed when enabling the plugin. Additionally, this part of code in activate.php should only get executed when a older version of izap_videos had been installed before, so I don't know why the error should occur for you when this has not been the case.
Php version is not relevant. I'm using php 5.4 myself. As I said the error only occurs when enabling the plugin but later on it works fine.
Hi iionly, does this plugin allow me to link / embed videos from youtube without havin to need ffmpeg installed etc..? i only want to be able to link videos from other sites and have them play through mine.
@Vextah Yes. That's possible. You can add "off-server" videos from Youtube, Dailymotion and Vimeo without ffmpeg installed.
Hmm i activated this and site went white, address bar reads 'mysite.co.uk/action/admin/plugins/activate?plugin_guids[0]=5068&__elgg_ts=1414988928&__elgg_token=21f81a8c3b4f6775ef45decc868707a0'
Click 'back and says activated. Goto activity, click video and it says
izap_videos:notfound
Running 1.9.3 with Magazine theme.
@Vextah The white screen on enabling the plugin is due to a bug in Elgg core as I already explained above. In Elgg 1.9.5 the bug will be fixed. I hope it will get released soon.
I'm not sure what you exactly mean with the activity page issue but I assume it doesn't load correctly on your site anymore after enabling iZAP Videos. Right? If that's the case, have you already tested if any other 3rd party plugin used on your site causes the problem with iZAP Videos enabled? Does the problem also occur with no other 3rd party plugins in use temporarily?
On the activity page, or anywhere where u can 'upload' a video, if you click to add a video, the following screen says the above. Tried with all other plugins disabled. The issue all stems from the core bug u mentioned, when activating this plugin, it only half starts it, hence white screen and error.
izap_videos:notfound
@Vextah The core bug should only be relevant on activating the plugin because the core function containing the bug is only used in activate.php of iZAP Videos. You could flush the cache to see if this might solve the issue with the uploading page not being displayed correctly. On plugin activation/deactivation the cache would normally get flushed automatically but maybe this doesn't happen due to the bug.
In case you had any previous version of iZAP Videos installed you also must delete the old version from the mod directory before installing the new version. Otherwise it could happen that any files from the old version that are no longer included in the new version result in problems.
Let's hope that Elgg 1.9.5 gets released soon. I've a new version of iZAP Videos waiting to be released since last week anyway but I don't want to make the situation even more confusing by releasing it before Elgg 1.9.5 is out.