We have been seeing a tun of errors as below for the Author withing our PHP error logs. Within our chartbeat account the authors are showing correctly but there error file is growing at a rapid pace for this. I see others have had issues with PHP errors in the past and am just wondering if these will be addressed.
[17-Dec-2021 14:26:06 UTC] PHP Notice: Undefined index: author in /home/customer/www/XXXXXXX.org/public_html/wp-content/plugins/chartbeat/chartbeat.php on line 348
Thanks
]]>PHP Fatal error: Cannot redeclare display_chartbeat_accountid_error() (previously declared in /wp-content/plugins/chartbeat/chartbeat.php:39) in /wp-content/plugins/chartbeat/chartbeat.php on line 38
error is thrown due to nested function.
display_chartbeat_accountid_error()
is nested inside of
check_chartbeat_accountid_error()
in chartbeat.php
I assume this is done in error. Is this plugin still being supported? Last update was a year ago.
]]>Getting error:
Notice: Undefined variable: analytics in /home/XXXX/site.com/wp-content/plugins/chartbeat/chartbeat.php on line 331
I am indeed logged in as admin. Looks like $analytics never really gets a value in this function.
Not a show-stopper, I don’t think.
]]>how to disable Active Visited section of all posts?
]]>The dashboard widget doesn’t show any content when the WP admin is using SSL.
Example error —
—-
Mixed Content: The page at ‘https://mydomain.com/wp-admin/index.php’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘https://api.chartbeat.com/live/summary/?host=mydomain.com&apikey=XXXXXXXXXXXXXXXXXXX&keys=r&limit=100’. This request has been blocked; the content must be served over HTTPS.
Can you update your API endpoint calls to use SSL when the widget is being loaded on an SSL page?
]]>I’ve installed the plugin, added my site ID and api key. I see the script tag that’s added to wp_head
but I’m not seeing the js that should be added added to wp_footer
via add_chartbeat_footer()
.
I have other plugins (and my own actions) that hook into wp_footer
that work fine. Am I missing something?
The iframe containing the new console is rendering as only 150px high. I’ve done some cursory digging but can’t see immediately why. In any case, it makes the console page unusable.
This is the case in FF and Chrome. My front-end theme is based on Genesis, but this is the standard WP admin backend.
]]>Upgrading to Chartbeat 1.4 causes this error at the top of my site:
Warning: Missing argument 2 for WP_Widget::__construct(), called in /path/to/wp-includes/widgets.php on line 324 and defined in /path/to/wp-includes/widgets.php on line 93
Deactivating the plugin fixes it, activating brings back the error; it’s definitely the Chartbeat plugin.
I suspect it has to do with the plugin code around line 232-256:
class Chartbeat_Widget extends WP_Widget {
function widget( $args ) {
extract( $args );
echo $before_widget;
if ( get_option( 'chartbeat_apikey' ) ) : ?>
<div id="cb_top_pages"></div>
<script src="https://static.chartbeat.com/js/topwidgetv2.js" type="text/javascript" language="javascript"></script>
<script type="text/javascript" language="javascript">
var options = { };
new CBTopPagesWidget( '<?php echo esc_js( get_option('chartbeat_apikey') ); ?>', <?php echo get_option('chartbeat_widgetconfig'); ?> );
</script>
<?php
endif;
echo $after_widget;
}
}
function chartbeat_widget_init() {
register_widget( 'Chartbeat_Widget' );
}
add_action('widgets_init', 'chartbeat_widget_init');
add_action('admin_menu', 'chartbeat_menu');
]]>