-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synchronization Error #184
Comments
Same problem here:myfqdn.loc/admin.php?page=plugin§ion=piwigo-videojs%2Fadmin%2Fadmin.php&tab=sync
myfqdn.loc/admin.php?page=batch_manager
myfqdn.loc/admin.php?page=plugin§ion=piwigo-videojs/admin/admin_photo.php&image_id=1391
I'm actually using:
Good luck! |
I am getting the same problem, but slightly different error.......... Warning: array_merge(): Expected parameter 1 to be an array, null given in /home/rajivm/public_html/photos/plugins/piwigo-videojs/admin/admin_sync.php on line 53 Notice: Undefined index: output in /home/rajivm/public_html/photos/plugins/piwigo-videojs/admin/admin_sync.php on line 66 Warning: array_merge(): Expected parameter 1 to be an array, null given in /home/rajivm/public_html/photos/plugins/piwigo-videojs/admin/admin_sync.php on line 78 |
I have mediainfo installed in this path Do I have to edit line 32 in this file to this? /home/rajivm/public_html/photos/plugins/piwigo-videojs/admin/admin_sync.php 'mediainfo' => '/home/rajivm/mediainfo', |
By the way, as per the instructions here: I have already modified this file PS: I see an option to put the path of mediainfo on the tab VideoJS plugin [Synchronize] I have even removed the path from the two files, hoping that the config page will start working, I mean I was hoping that it will take the path....but no-go there also :-( PLEASE HELP ! :-) |
I had the same error, and did some digging to find a solution. There are 2 separate problems that cause this. Firstly, the code in admin_sync.php is wrong, I fear. The aim of the code section between line 30 and 82 is to determine the sync options. They are derived in 3 layers: first the defaults (line 32-47), then the values from the persistent database (using the vjs_sync conf), and finally the user specified overrides from the URL request (line 59-74). On line 53 the first merge occurs (defaults + DB values) which then gets stored in the $sync_options variable. Note that this merge is conditional on the existence of any DB values. Therefore, on line 78, one should do the next merge. It is, but instead of using the previous merge result, the code refers to the DB values via the $conf of vjs_sync. That implies that, when no DB values exist, the merge will fail (not on line 53, but on line 78). This leads to a bad variable $sync_options, which is then written to the database. Any subsequent run will read that faulty DB config entry and fail again, this time on line 53 and on line 78. So a first correction is this: Change line 78 of admin_sync.php to read like this. But that alone is not enough: The merge on line 53 will still fail as the DB value is not OK. Hence, use phpMyAdmin to go to table piwigo_config, and look for the record with vjs_sync. Most likely, it will not be correctly formatted. A nicely formatted value starts with "a:3:{s:9:"some text"..." (the numbers can be different. See the php serialize function for details). If your entry looks like this, all should be fine. if it is not (mine contained an uppercase N and a few other symbols), simply delete the vjs_sync record. With the above code change, you will get the defaults to start with. I hope this helps! Xavier |
Fixed with #229 |
Hi!
In admin.php?page=plugin§ion=piwigo-videojs%2Fadmin%2Fadmin.php&tab=sync I have an error:
(): Expected parameter 1 to be an array, null given in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php on line 53 Notice: Undefined index: output in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php on line 66 Warning: array_merge(): Expected parameter 1 to be an array, null given in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php on line 78 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_dependencies.php on line 38 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_dependencies.php on line 38 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_dependencies.php on line 38 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_dependencies.php on line 38 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php on line 90 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php on line 94 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php on line 108 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php on line 114 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_dependencies.php on line 38 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_dependencies.php on line 38 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_dependencies.php on line 38 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_dependencies.php on line 38 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_sync2.php on line 52 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_sync2.php on line 52 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/include/function_sync2.php on line 52 Notice: Trying to access array offset on value of type null in /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php on line 190 Warning: Cannot modify header information - headers already sent by (output started at /mnt/SYSTEM/WEB/Images/plugins/piwigo-videojs/admin/admin_sync.php:53) in /mnt/SYSTEM/WEB/Images/include/page_header.php on line 94
Piwigo 12.2.0
FreeBSD
PHP: 7.4.26 [2022-02-01 16:03:06]
MySQL: 5.5.5-10.5.13-MariaDB [2022-02-01 16:03:06]
GD bundled (2.1.0 compatible)
Thanks
The text was updated successfully, but these errors were encountered: