Announcement

#1 2018-08-23 15:41:42

zork
Member
uk
2003-02-20
24

Video JS Warnings and Notice

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

 

#2 2018-08-25 12:34:47

miblo69
Member
Stockholm, Sweden
2012-06-05
27

Re: Video JS Warnings and Notice

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

 

#3 2018-08-25 17:35:04

windracer
Member
St. Pete, FL
2014-12-28
444

Re: Video JS Warnings and Notice

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

 

#4 2018-08-26 18:09:11

zork
Member
uk
2003-02-20
24

Re: Video JS Warnings and Notice

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

 

#5 2018-08-28 14:19:13

windracer
Member
St. Pete, FL
2014-12-28
444

Re: Video JS Warnings and Notice

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

 

#6 2018-09-02 23:27:01

frobozz
Member
2017-11-15
4

Re: Video JS Warnings and Notice

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

 

#7 2019-02-14 10:58:49

miblo69
Member
Stockholm, Sweden
2012-06-05
27

Re: Video JS Warnings and Notice

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

 

#8 2019-02-17 03:07:28

georgeren
Member
2019-01-05
5

Re: Video JS Warnings and Notice

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

 

#9 2019-02-22 03:55:25

Zentalquabula
Member
2014-05-10
217

Re: Video JS Warnings and Notice

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

 

#10 2019-02-22 15:04:56

windracer
Member
St. Pete, FL
2014-12-28
444

Re: Video JS Warnings and Notice

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

 

#11 2019-05-17 12:18:01

extorn
Member
2017-04-23
11

Re: Video JS Warnings and Notice

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

 

#12 2019-06-12 21:45:40

kos
Member
2019-06-12
10

Re: Video JS Warnings and Notice

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

 

#13 2019-11-13 19:07:09

pbrownll
Member
2015-08-02
5

Re: Video JS Warnings and Notice

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

 

#14 2020-09-09 17:34:16

Peter__with a problem
Member
2020-09-03
5

Re: Video JS Warnings and Notice

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

 

#15 2020-12-09 04:29:23

join
Member
2020-12-09
1

Re: Video JS Warnings and Notice

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact