When I am viewing the single page of a sermon, it is giving an error that reads:
"Warning: Creating default object from empty value in .../wp-content/plugins/sermon-manager-for-wordpress/includes/entry-views.php on line 62"
You should do a check to see if that variable has a value before putting a value into it.
Example:
/* Set the post ID for later use because we wouldn't want a custom query to change this. */
if (isset($wpfc_entry_views)) {
$wpfc_entry_views->post_id = $post->ID;
}
When I am viewing the single page of a sermon, it is giving an error that reads:
"Warning: Creating default object from empty value in .../wp-content/plugins/sermon-manager-for-wordpress/includes/entry-views.php on line 62"
You should do a check to see if that variable has a value before putting a value into it.
Example:
/* Set the post ID for later use because we wouldn't want a custom query to change this. */ if (isset($wpfc_entry_views)) { $wpfc_entry_views->post_id = $post->ID; }
Fix for page: http://pastebin.com/RecDHpyP