Issue with MailChimp For WordPress
-
We are getting this error when loading content on “MailChimp For WordPress” form page.
: Uncaught TypeError: Argument 1 passed to Mediavine\Grow\Share_Counts::post_share_counts() must be of the type int, null given,Looking at the code it’s checking if the post object is coming back but not if there is any content in it. Which in this case there isn’t any
$post = dpsp_get_current_post(); if ( $post )I have modified the code to check if the post ID is set in the short term but would be great to see
dpsp_get_current_postreturn false if the are empty values in the post objectif ( $post && !empty($post->ID) )Note: Using version 1.20.2
The topic ‘Issue with MailChimp For WordPress’ is closed to new replies.