Error message
-
Hi,
After installing the Sermon.net plugin for WordPress, and displaying it on our website via shortcode, I’m getting an error message that reads:
Warning: Invalid argument supplied for foreach() in /home/spbapt5/public_html/wp-content/plugins/display-sermonnet/includes/shortcodes.php on line 55
Here is the section of code that’s yielding that message:
`$wt_sermonnet_show_episodes = array();
if ( $wt_playlist_id == ‘all’ ) {
$wt_sermonnet_show_episodes = $wt_50_sermonnets_fulldata;
} else {
$wt_sermonnet_playids = array();
foreach ( $wt_recent_sermonnet_all as $wt_sermonet_playlists ) {
$wt_sermonnet_playids[ $wt_sermonet_playlists->playlistId ][] = $wt_sermonet_playlists->id;
}$wt_show_ids = array();
foreach ( $wt_sermonnet_playids[ $wt_playlist_id ] as $wt_selected_id ) {
$wt_show_ids[ $wt_selected_id ] = $wt_selected_id;
}$wt_sermonnet_show_episodes = array_intersect_key( $wt_50_sermonnets_fulldata, $wt_show_ids );
}’I’m running the latest version of WordPress (4.7) and the Enfold Theme. Please advise.
Thanks,
Kelly
- The topic ‘Error message’ is closed to new replies.