Sorry, it took me a bit to get back to you.
I’m assuming this error stems from PHP 5.4 or higher. I’m about to upgrade my own testing server to a newer PHP version. So, I won’t be able to replicate the error and fix it.
You’ll have to open up your wp-config.php file to apply a temporary fix. You want to scroll down to where it says define(‘WP_DEBUG’, false); <– and make sure that says false, not true. Assuming it’s false, you’ll want to past the following below it.
ini_set('display_errors', 0);
Hope that helps and I’ll try to get this updated soon.
— Subscribe to this thread and I’ll post an update when I have the issue resolved.
[edit]
Can you post the shortcode usage? And does the shortcode work fine but the warning is just showing up?
I believe this will fix the warning
in wp-content/plugins/wp-theater/inc/class-shortcodes.php, line 608
from this:
$feed = json_decode($response);
to this:
$feed = new stdClass();
$feed = json_decode($response);
if ($feed === NULL) return false;
Forced my hand. I upgraded and now see the same error. the first temp fix will hide the error. Ignore the 2nd part as it does not fix the warning.
Newest version has the issue resolved for PHP 5.4
Let me know if you have any further issues.
Thread Starter
James
(@jamesallensda)
Hi Kent,
Thank you so much for acting on this so quickly! I’ll be more than happy to let you know if I run into anything else. Thanks again for developing an awesome plugin and troubleshooting it.
-James