This patchset is outdated. Please follow the link to patchset #3.
Quick patch set #2 for NP_gallery Nucleus plugin v. 0.94
This patch set replaces the previous one and provides fixes for more problems.
Problems summary:
-
On «Admin Functions» tab in «Gallery Admin Page» clicking on Cleanup button causes "Fatal error: Class ‘BaseActions’ not found in …/nucleus/plugins/gallery/list_class.php on line 77"
This error is introduced with an upgrade to Nucleus 3.31.
Fix: functions.php - Choosing «Modify Album» button at album page causes "Fatal error: Class ‘BaseActions’ not found in …/nucleus/plugins/gallery/list_class.php on line 77"
This error is introduced with an upgrade to Nucleus 3.31.
Fix: admin.php - On album admin page adding a team member does nothing if a member is already included into team for some other album.
This error is not related to Nucleus 3.31.
Fix: admin.php - If no albums are defined gallery main page displays SQL message «Warning: mysql_data_seek(): Offset 0 is invalid for MySQL result index 49 in …/nucleus/plugins/gallery/admin.php on line 527».
This error is not related to Nucleus 3.31.
Fix: admin.php - If sort order for album is not defined album page displays SQL warning message.
This error is not related to Nucleus 3.31.
Fix: album_class.php, functions.php [Both files shall be replaced simultaniously] - The problem which is described at this Nucleus support forum thread. Solution proposed at the forum causes SQL warning message at «Modify Album» form. My fix does not have this problem.
This error is not related to Nucleus 3.31.
Fix: form.php -
Ordering album by ownername causes SQL messages: "mySQL error with query select * from nucleus_plug_gallery_picture where albumid=32 order by ownername ASC, pictureid DESC: Unknown column ‘ownername’ in ‘order clause’" and "Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in …/nucleus/plugins/gallery/album_class.php on line 111"
This error is not related to Nucleus 3.31.
Fix: album_class.php, functions.php [Both files shall be replaced simultaniously] -
Choosing ‘default order for albums’ in configuration tab by anything but the date breaks picture view logic and you get sql error messages big time.
This error is not related to Nucleus 3.31.
Fix: album_class.php, picture_class.php, functions.php [All three files shall be replaced simultaniously]
Installation:
Download ZIP file using the link below, unzip it and replace files at nucleus/gallery folder as needed to fix the problem(s).[download=http://www.samsonov.net/wp/assets/Pr-Nu/NP_gallery_0_94_psets/NP_gallery_0_94_pset_02.zip]