Piwigo / piwigo-videojs

Videojs port for piwigo. Play your videos on your web gallery!
http://piwigo.org/ext/extension_view.php?eid=610
GNU General Public License v3.0
67 stars 46 forks source link

Fatal error on Synchronize panel and Warning error on Configuration panel #216

Closed guiyou65 closed 3 weeks ago

guiyou65 commented 11 months ago

On the bottom of the Configuration panel I get :

RESOLUTION : Warning: Undefined array key "resolution" in /htdocs/album.guiyou.online/_data/templates_c/8cpdn4^d4550aa1e94f92c87ed1299d87d129cd843c8434_0.file.admin_config.tpl.php on line 268
/> Oui  Warning: Undefined array key "resolution" in /htdocs/album.guiyou.online/_data/templates_c/8cpdn4^d4550aa1e94f92c87ed1299d87d129cd843c8434_0.file.admin_config.tpl.php on line 270
checked="checked"/> Non
RESOLUTION_DESC

and when I click on the Synchronize tab I get :

Fatal error: Uncaught Error: Call to undefined function system() in /htdocs/album.guiyou.online/plugins/piwigo-videojs/include/function_dependencies.php:38 Stack trace: #0 /htdocs/album.guiyou.online/plugins/piwigo-videojs/include/function_dependencies.php(55): check('mediainfo', Array) #1 /htdocs/album.guiyou.online/plugins/piwigo-videojs/admin/admin_sync.php(88): include('/htdocs/album.g...') #2 /htdocs/album.guiyou.online/plugins/piwigo-videojs/admin/admin.php(68): include_once('/htdocs/album.g...') #3 /htdocs/album.guiyou.online/admin/plugin.php(53): include_once('/htdocs/album.g...') #4 /htdocs/album.guiyou.online/admin.php(345): include('/htdocs/album.g...') #5 {main} thrown in /htdocs/album.guiyou.online/plugins/piwigo-videojs/include/function_dependencies.php on line 38

I don't have FFMpeg and mediainfo installed, due to the site provider policy. But it wasn't an issue before. I generate my own posters in pwg_representative and I don't need metadata for my family videos. It worked nice before Piwigo v13.

My environment is : Piwigo 13.8.0 (https://album.guiyou.online) Installé le 14 Novembre 2019 Système d'exploitation: Linux PHP: 8.1.25 [2023-12-10 19:22:43] MySQL: 10.11.4-MariaDB-1~deb12u1 [2023-12-10 19:22:43] Bibliothèque graphique: ImageMagick 6.9.11-60 Taille du cache 0.00 Mo  

guiyou65 commented 11 months ago

By the way, I can help for french translation. Tell me how to proceed.

klaoun commented 11 months ago

Bonjour Essayer Il y a 2 lignes à ajouter dans admin_config.php ligne 96 et maintain.inc.php ligne 67

Le lien de correction est là

https://github.com/klaoun/piwigo-videojs/commit/0087ce527f910b0398f5b5cbe75c627075fadb3c

guiyou65 commented 11 months ago

Merci. J'ai fait les corrections. Premier essai sans évolution. Puis réinitialisation du plugin, ce qui fait disparaître le warning de la résolution, mais la Fatal Error de l'onglet Synchroniser est toujours là Fatal error: Uncaught Error: Call to undefined function system() in /htdocs/album.guiyou.online/plugins/piwigo-videojs/include/function_dependencies.php:38 Stack trace: #0 /htdocs/album.guiyou.online/plugins/piwigo-videojs/include/function_dependencies.php(55): check('mediainfo', Array) #1 /htdocs/album.guiyou.online/plugins/piwigo-videojs/admin/admin_sync.php(88): include('/htdocs/album.g...') #2 /htdocs/album.guiyou.online/plugins/piwigo-videojs/admin/admin.php(68): include_once('/htdocs/album.g...') #3 /htdocs/album.guiyou.online/admin/plugin.php(53): include_once('/htdocs/album.g...') #4 /htdocs/album.guiyou.online/admin.php(345): include('/htdocs/album.g...') #5 {main} thrown in /htdocs/album.guiyou.online/plugins/piwigo-videojs/include/function_dependencies.php on line 38

EddyLB commented 3 weeks ago

Version 15.b should fix these issues.