Hello/Hi/Greetings
Warning: array_merge(): Argument #1 is not an array in /var/www/html/piwigo/plugins/piwigo-videojs/admin/admin_sync.php on line 53
Notice: Undefined index: output in /var/www/html/piwigo/plugins/piwigo-videojs/admin/admin_sync.php on line 66
Warning: array_merge(): Argument #1 is not an array in /var/www/html/piwigo/plugins/piwigo-videojs/admin/admin_sync.php on line 78
All the boxs are green for FFmpeg etc etc
Tried looking for a solution , but after a while i started bashing head on the table.
Any help would be awesome as ever folks
FFmpeg version ffmpeg version 3.4.2-2 Copyright (c) 2000-2018 the FFmpeg developers
ffprobe version 3.4.2-2 Copyright (c) 2007-2018 the FFmpeg developers
exiftool: /usr/bin/exiftool
MediaInfoLib - v17.12
Do i need to put the path in the boxs or having the green tick mean its installed and working ?
Piwigo 2.9.4
Operating system: Linux
PHP: 7.2.7-0ubuntu0.18.04.2 (Show info) [2018-08-23 14:30:18]
MySQL: 5.7.23-0ubuntu0.18.04.1 [2018-08-23 14:30:18]
Graphics Library: ImageMagick 6.9.7-4
Offline
I have the same issue. Just upgraded PHP to 7.2, and the Video-JS plugin stopped working. When trying to Synchronize, the 'Program Dependencies' boxes are empty, yet have a green checkmark. And the remaining boxes with default values are either unchecked or empty (such as Thumbnail size).
Piwigo 2.9.4
Operating system: Linux
PHP: 7.2.7-0ubuntu0.18.04.2 (Show info) [2018-08-25 12:32:50]
MySQL: 5.7.23-0ubuntu0.18.04.1 [2018-08-25 12:32:50]
Graphics Library: GD 2.2.5
On a side note, I also switched from ImageMagick to GD - and drastically improved the Thumbnail generation for all photos. (Upload via sftp and synchronize)
Thanks.
Offline
See issue [Github] piwigo-videojs issue #130. Seems like this is being looked at.
That being said, I'm not having the issue and I'm on the same PHP version as you:
Piwigo 2.9.4
Operating system: Linux
PHP: 7.2.7-0ubuntu0.18.04.2 (Show info) [2018-08-25 11:34:30]
MySQL: 5.7.23-0ubuntu0.18.04.1 [2018-08-25 11:34:30]
Graphics Library: External ImageMagick 6.9.7-4
Did you try removing and reinstalling the extension?
Offline
Solved the problem of the error by installing the master file from Git. works perfect except for one issue
when i sysnc everything works fine and i get the desires result
file: ./galleries/Movies/test.mp4
metadata: 15
format, formatprofile, codecid, filesize, duration, playtime_seconds, bitrate, width, height, display_aspect_ratio,
frame_rate, channel, sampling_rate, date_creation, type
poster: ./galleries/Movies/pwg_representative/test.jpg
However the poster doesnt actually appear in the pwg_representive/test.jpg folder. Everything green and no errors or warnings are produced.
Okay been tinkering with the settings in the plugin. When i uncheck the simulation box the program produces the thumbnail., which is great but it get this message appear
Warning: [mysql error 1292] Incorrect datetime value: '-0001-11-30 00:00:00' for column 'date_creation' at row 1
UPDATE piwigo_images SET filesize='752468', width='720', height='576', date_creation='-0001-11-30 00:00:00', date_metadata_update=CURDATE() WHERE id=3; in /var/www/html/piwigo/include/dblayer/functions_mysqli.inc.php on line 845.
while get is asking me to update something here , im sadelt no programmer and would love some help as to what i need to change of update.
Sorry to be a pain.
Offline
Obviously '-0001-11-30' is not a valid date. My guess is one of your videos has bad metadata. Try running the VideoJS sync without the 'synchronize metadata' option checked and see if it works.
Offline
Same problem here. As soon as I hit the Synchronize tab I get this:
Warning: array_merge(): Argument #1 is not an array in /usr/local/photos/plugins/piwigo-videojs/admin/admin_sync.php on line 53
I deleted the plugin and re-installed it, but that didn't help. It also requires me to put in values for "Create a poster at position in second:" (should be 4) and for "Size of thumbnail:" (should be 120x68). So, it looks like its not picking up the default values correctly.
Then when I hit Submit, there are more messages:
Warning: array_merge(): Argument #1 is not an array in /usr/local/photos/plugins/piwigo-videojs/admin/admin_sync.php on line 53
Notice: Undefined index: output in /usr/local/photos/plugins/piwigo-videojs/admin/admin_sync.php on line 66
Warning: array_merge(): Argument #1 is not an array in /usr/local/photos/plugins/piwigo-videojs/admin/admin_sync.php on line 78
Offline
Same issue here.
"Warning: array_merge(): Argument #1 is not an array in /var/wwwtornado/htdocs/piwigo/plugins/piwigo-videojs/admin/admin_sync.php on line 53"
Re-installing Video-JS has no effect. After re-installing I can click on the 'Synchronize' Tab *once* without any error. But when I select 'Submit' the first time, all subsequent attempts to visit the 'Synchronize tab produce the error above.
And the Synchronize fails with numerous errors too:
"Notice: Undefined index: vjs_sync in /var/wwwtornado/htdocs/piwigo/plugins/piwigo-videojs/admin/admin_sync.php on line 78"
"Warning: array_merge(): Argument #1 is not an array in /var/wwwtornado/htdocs/piwigo/plugins/piwigo-videojs/admin/admin_sync.php on line 78"
"Warning: Cannot modify header information - headers already sent by (output started at /var/wwwtornado/htdocs/piwigo/plugins/piwigo-videojs/admin/admin_sync.php:78) in /var/wwwtornado/htdocs/piwigo/include/page_header.php on line 101"
Edit: Found this post: [Github] piwigo-videojs issue #130
Updating the piwigo db configuration actually seems to solve the issue, if done *after* the first failed synchronization:
it was solved by the following DB updated:
`UPDATE`piwigo`.`piwigo_config`SET`value`= 'a:0:{}' WHERE`piwigo_config`.`param`= 'vjs_sync';`
Last edited by miblo69 (2019-02-14 11:18:38)
Offline
I use the same plungin.
In order to display video, you must do the following:
create an album for mp4 and create a sub folder called "pwg_representative".
In this sub folder, you must place a png image file with the same name of the mp4 file name. This image file will become the video image in video album. Click this image will play the video. Hope this will help.
Offline
Is this related?
Got error 'PHP message: PHP Warning: [mysql error 1146] Table 'db.piwigo_image_videojs' doesn't exist.
It creates a code 500.
Offline
Zentalquabula wrote:
Got error 'PHP message: PHP Warning: [mysql error 1146] Table 'db.piwigo_image_videojs' doesn't exist.
Check your database. You should have a table named 'piwigo_image_videojs.' If it's not there, try removing and re-installing the plugin.
Offline
Hi. For me, I resolved the issue by editing the offending file (admin_sync.php)
My changes are below in bold
approx line 77 & 78 - replace the existing lines with this:
// Merge default values with user submitted configuration (from webpage form)
$sync_options = array_merge($sync_options, $sync_options_form);
Offline
Had the same error saying that Argument #1 on lines 53 and 78 weren't arrays.
Tried several 'solutions' that I found on the internet, including the one from extorn just above this post, but nothing helped...
So finally I found a possible solution on a non-Piwigo related website... there it was suggested to put (array) in front of the argument that was not an array.
Although it looked a bit to simple to me, I thought to give it a try and it worked!! :-)
So now my line 53 looks like this:
$sync_options = array_merge((array)unserialize($conf['vjs_sync']), $sync_options);
and line 78 like this:
$sync_options = array_merge((array)unserialize($conf['vjs_sync']), $sync_options_form);
Offline
In case anybody stumbles here, I posted a bunch of comments/fixes at viewtopic.php?pid=175041. When you do everything right, plugin works great.
Offline
After weeks of trying to get the binaries of ffmpeg, mediainfo, ffprobe and exiftools to be recognised by the plugin.... it seems that downloading the plugin direct from github fixed my issues!
After hundreds of google searches.... leading me into many rabbit holes. After rebuilding my servers etc etc etc.... everything now seems fine by removing the videojs plugin from installed from the Piwigo internal list and simply installing the plugin via github.
https://github.com/xbgmsharp/piwigo-videojs
I hope that helps someone else avoid losing their hair! Try it. It worked for me. :-)
Good luck out there!
Offline
Peter__with a problem wrote:
After weeks of trying to get the binaries of ffmpeg, mediainfo, ffprobe and exiftools to be recognised by the plugin.... it seems that downloading the plugin direct from github fixed my issues!
After hundreds of google searches.... leading me into many rabbit holes. After rebuilding my servers etc etc etc.... everything now seems fine by removing the videojs plugin from installed from the Piwigo internal list and simply installing the plugin via github.
https://github.com/xbgmsharp/piwigo-videojs
I hope that helps someone else avoid losing their hair! Try it. It worked for me. :-)
Good luck out there!
The above helped me recently.
I had loads of similar errors as mentioned here at first time usage of the plugin when trying to sync.
1) Deactivated/Deleted videojs plugin (installed via GUI)
2) Download/Extract master zip (as per instructions on website plugin)
3) Activated videojs plugin
Piwigo 2.10.2
Operating system: Linux
PHP: 7.4.3
MySQL: 8.0.22-0ubuntu0.20.04.2
Graphics Library: External ImageMagick 6.9.10-23
Offline