rtMedia 4.0 update ... all functions not working


#1

Hi there,

After updating to rtMedia 4.0 everything stopped working.

My setup XAMPP - WP - BuddyPress - KLEO Theme - rtMedia

Nothing changed since yesterday except the update …

I think this the reason

WordPress database error Unknown column ‘wp_rt_rtm_media.sort_parameters’

Any Comments?

I’ll gladly appriciate …

Thx … [Tue Jun 21 19:52:01.014390 2016] [:error] [pid 2304:tid 1648] [client ::1:50310] WordPress database error Unknown column ‘wp_rt_rtm_media.sort_parameters’ in ‘where clause’ for query SELECT wp_rt_rtm_media.* FROM wp_rt_rtm_media where 2=2 AND wp_rt_rtm_media.album_id = ‘3’ AND wp_rt_rtm_media.sort_parameters = ‘new,view,like,rate,comment’ AND wp_rt_rtm_media.media_type = ‘photo’ AND (wp_rt_rtm_media.privacy is NULL OR wp_rt_rtm_media.privacy=0) AND (wp_rt_rtm_media.privacy = “0” OR wp_rt_rtm_media.privacy is NULL ) ORDER BY wp_rt_rtm_media.media_id desc LIMIT 0,21 made by require(‘C:\xampp\htdocs\wordpress\wp-blog-header.php’), require_once(‘C:\xampp\htdocs\wordpress\wp-includes\template-loader.php’), include(‘C:\xampp\htdocs\wordpress\wp-content\themes\kleo\page-templates\full-width.php’), get_header, locate_template, load_template, require_once(‘C:\xampp\htdocs\wordpress\wp-content\themes\kleo\header.php’), do_action(‘kleo_before_main’), call_user_func_array, kleo_header_content, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, RTMediaGalleryShortcode::render, RTMediaQuery->__construct, RTMediaQuery->query, RTMediaQuery->get_data, RTMediaQuery->populate_data, RTMediaQuery->populate_media, RTMediaModel->get_media, RTMediaModel->get, referer: http://localhost/wordpress/ [Tue Jun 21 20:11:32.276382 2016] [:error] [pid 2304:tid 1648] [client ::1:50576] PHP Fatal error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\wordpress\wp-content\plugins\buddypress-media\app\main\controllers\media\RTMediaMedia.php on line 512, referer: http://localhost/wordpress/members/admin/media/12/


#2

Nothing worked by the way …

Activate/Deactivate rtMedia Shutdown / Restart Apache - MySQL Delete all albums / Create new albums / Upload

I haven’t tried to Deactive / Activate BuddyPress …

But it seems clearly a DB issue … on MySQL side …

Thanks again for your future support …


#3

Hi @Zitrone79

Sorry for the trouble you have faced but we are not facing or able to reproduce these issues at our end. We tried our local development sites, testing sites and even demo site but not able to reproduce them.

Do you have any working online site on which we can test this mysql error?

Fatal error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\wordpress\wp-content\plugins\buddypress-media\app\main\controllers\media\RTMediaMedia.php on line 512

Please have a look at this line of code: https://github.com/rtCamp/rtMedia/blob/master/app/main/controllers/media/RTMediaMedia.php#L512. We have check for is_wp_error in very next line, so I don’t think that this should be the case. Do you happen to have any custom changes in rtMedia or something? Can you check with the fresh WordPress setup once? Also check once with other plugins disabled and with WordPress default theme because it might be some plugin conflict or theme issue.

Regards.


#4

Hi Ritesh,

I deactivated all plugins accept Buddypress and rtMedia … Tried on TwentyFourteen. Still getting the same error …

[Wed Jun 22 09:57:53.823842 2016] [:error] [pid 6628:tid 1636] [client ::1:50288] PHP Fatal error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\wordpress\wp-content\plugins\buddypress-media\app\main\controllers\media\RTMediaMedia.php on line 512, referer: http://localhost/wordpress/members/admin/media/3/ [Wed Jun 22 10:05:15.505745 2016] [:error] [pid 6628:tid 1680] [client ::1:50558] PHP Fatal error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\wordpress\wp-content\plugins\buddypress-media\app\main\controllers\media\RTMediaMedia.php on line 512, referer: http://localhost/wordpress/members/admin/media/8/


#5