Warning: Illegal string offset 'media_type' in /.../RTMediaProSort.php on line 29

I have a goDaddy hosted wordpress site. Occassionally, when GoDaddy updates the wordpress core files, we have a fatal error with one plugin or another. Usually, when I go in and update the necessary plugins, everything is fine. This time, I’m still getting this “Warning: Illegal string offset ‘media_type’ in /…/RTMediaProSort.php on line 29” error at the top of the BBpress forum topic pages. I know a little PHP, but I’m no full-time developer. I’ve had to deactivate the plugin for the rtMedia Pro plugin to get rid of the error. Any help would be greatly appreciated. Thank you!

Hi @Robby_Olivam

As you are using rtMedia Pro, it will be great if you can create a premium support ticket from here: https://rtcamp.com/premium-support/

We will need to check this issue on your site as we are not able to reproduce the same on our end.

Just a suggestion, if it’s your production site, you should not show php errors on page. You should set display_errors off in php.ini file. Check this php doc for more information: http://php.net/manual/en/errorfunc.configuration.php#ini.display-errors or if you are using WP_DEBUG than you should set WP_DEBUG_DISPLAY to false in wp-config.php file. Check this WordPress codex doc for more information: https://codex.wordpress.org/Debugging_in_WordPress

Thanks.