[x] Console error for Masonry view is displayed on the member's activity page.
Steps to reproduce:
Enable the Masonry view from rtMedia -> Display settings.
Navigate to the Activity/Members activity page and observe the console error. (Add a comment on any media to view the console error).
Below console error is displayed.
masonry not initialized. Cannot call methods, i.e. $().masonry("reload")
[x] DB error displayed while editing the album.
While editing the album, the database error is displayed in debug log while moving the media to another album.
[WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHEREid= '5'' at line 1 for query UPDATEwp_rt_rtm_mediaSET WHEREid= '5' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, RTMediaRouter->template_include, RTMediaTemplate->set_template, RTMediaTemplate->check_return_edit, RTMediaTemplate->save_edit, RTMediaTemplate->save_album_edit, RTMediaMedia->update, RTDBModel->update
Below PHP notice is displayed on debug log after activating the plugin.
PHP Notice: Trying to access array offset on value of type bool in \app\public\wp-content\plugins\rtMedia\app\admin\RTMediaAdmin.php on line 110
https://user-images.githubusercontent.com/44057535/163426556-005d1768-bafc-4752-a59a-0e07bdc4318b.mp4
On the Groups albums page, the count for the default album is visible but the album is not visible.
Steps to reproduce:
Expected: Count should not be visible if the album is not present.
https://user-images.githubusercontent.com/44057535/163515824-023e9cf5-92e8-4fec-b74f-69b1b372f35a.mp4
Steps to reproduce:
Below console error is displayed.
masonry not initialized. Cannot call methods, i.e. $().masonry("reload")
While editing the album, the database error is displayed in debug log while moving the media to another album.
[WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE
id= '5'' at line 1 for query UPDATE
wp_rt_rtm_mediaSET WHERE
id= '5' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, RTMediaRouter->template_include, RTMediaTemplate->set_template, RTMediaTemplate->check_return_edit, RTMediaTemplate->save_edit, RTMediaTemplate->save_album_edit, RTMediaMedia->update, RTDBModel->update
The above error is displayed in the log.
https://user-images.githubusercontent.com/44057535/163523633-89819749-971e-4480-8627-b8ef7aed56d6.mp4