🌍
English
Hi,
When I try to syncronize videos with videojs, I get the following error:
Warning: Undefined array key "vjs_sync" in /config/www/plugins/piwigo-videojs/admin/admin_sync.php on line 78 Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, bool given in /config/www/plugins/piwigo-videojs/admin/admin_sync.php:78 Stack trace: #0 /config/www/plugins/piwigo-videojs/admin/admin_sync.php(78): array_merge() #1 /config/www/plugins/piwigo-videojs/admin/admin.php(68): include_once('...') #2 /app/www/public/admin/plugin.php(53): include_once('...') #3 /app/www/public/admin.php(341): include('...') #4 {main} thrown in /config/www/plugins/piwigo-videojs/admin/admin_sync.php on line 78 (Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])
Also, I noticed that in videojs settings page there is this warning, although I'm able to change and save other videojs settings:
Warning: Undefined array key "resolution" in /config/www/_data/templates_c/8cpdn4^8a06367f9fa423b9dc2c475f9b6592b413a100c7_0.file.admin_config.tpl.php on line 268 /> Sim Warning: Undefined array key "resolution" in /config/www/_data/templates_c/8cpdn4^8a06367f9fa423b9dc2c475f9b6592b413a100c7_0.file.admin_config.tpl.php on line 270 checked="checked"/> Não RESOLUTION_DESC
Am I missing something? What should I do to fix that sync error?
Follow environment details:
Piwigo 13.4.0 Checar por atualização Instalado em 2 fevereiro 2022, 10 meses 3 semanas 6 dias atrás Sistema operacional: Linux PHP: 8.0.26 (Mostrar info) [2023-01-02 08:16:32] MySQL: 8.0.31 [2023-01-02 11:16:32] Biblioteca gráfica: ImageMagick 7.1.0-50 Tamaho do cache 176.83 Mo calculado 1 mês atrás Substituir
Offline
Fixed it!
As per [Github] piwigo-videojs issue #162 I executed the following database change:
mysql> INSERT INTO piwigo_config(param,value) VALUES('vjs_sync','a:0:{}'); Query OK, 1 row affected (0.01 sec)
Offline