[Social Counter] Fatal Errors – PHP

Posted in: Newspaper
Post count: 322

Searched the forums but found nothing about this.

I’ve been using it without problems forever now, but today when I went to add our new Instagram account to it (username only, public account, plugin v3.0) the plugin started throwing fatal errors. I have errors suppressed but here are the error log entries for a single page load…

[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP Catchable fatal error:  Object of class stdClass could not be converted to string in /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 131, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP Stack trace:, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   1. {main}() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/index.php:0, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   2. require() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/index.php:17, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   3. require_once() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-blog-header.php:16, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   4. include() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-includes/template-loader.php:75, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   5. get_sidebar() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-content/themes/Newspaper/single_template_8.php:60, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   6. locate_template() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-includes/general-template.php:125, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   7. load_template() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-includes/template.php:514, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   8. require_once() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-includes/template.php:555, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP   9. require_once() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-content/themes/Newspaper/sidebar.php:7, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP  10. td_util::show_sidebar() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-content/themes/Newspaper/includes/wp_booster/sidebar.php:91, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP  11. dynamic_sidebar() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_util.php:223, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP  12. call_user_func_array:{/home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-includes/widgets.php:1319}() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-includes/widgets.php:1319, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP  13. WP_Widget->display_callback() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-includes/widgets.php:1319, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP  14. td_block_widget->widget() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-includes/widgets.php:344, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP  15. td_block_social_counter->render() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block_widget.php:43, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP  16. td_block->render() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php:13, referer: http://insidethestar.com/
[Thu Nov 05 23:54:49 2015] [error] [client 108.162.212.241] PHP  17. implode() /home/34641-26570.cloudwaysapps.com/nbyvkfsjnw/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php:131, referer: http://insidethestar.com/

I’ve been using Twitter, Facebook, SoundCloud, and Google+ in the counter widget. I don’t use it in VC. Adding the IG account is what threw the error. Haven’t been able to get the counter (at all) or anything down the document to load for any page where it’s supposed to show up since.

I tried deleting the plugin and installing fresh from the 6.5.1 release of Newspaper, no joy. Not sure what else to do here but report the bug. Made changes to the accounts used (flirted with not showing the SoundCloud profile) about a month ago with everything up to date (WP, VC, Counter, Newspaper, etc.). The only thing that has changed in that time is that I now run on PHP v5.6 instead of v5.5. First issue I’ve had with it since Feb 2014.

No clue what to try next and not making much of the error log to tell me what to fix.

Thanks.

Post count: 780

Hi,

comment or delete this: http://screencast.com/t/cVAA0jb4 We are investigating the issue. That code ads a persistent class on each block for custom styling. The class is not normally used.

Post count: 322

That did the trick. Counter plugin working perfect again on all networks. Thank you, Radu!

Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.