Hi there,
I am trying to add some social widgets to our Newspaper 7 site, but once I do the site crashes with the following errors:
[Fri Jul 01 12:47:05 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: PHP Warning: Illegal string offset ‘td_social_api’ in /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_remote_cache.php on line 102
[Fri Jul 01 12:47:05 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_remote_cache.php:102
[Fri Jul 01 12:47:05 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: Stack trace:
[Fri Jul 01 12:47:05 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #0 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/plugins/td-social-counter/td_social_api.php(62): td_remote_cache::set(‘td_social_api’, ‘facebook_hobbyh…’, 7235, 10800)
[Fri Jul 01 12:47:05 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #1 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(87): td_social_api->get_social_counter(‘facebook’, ‘hobbyhandig’, ‘148719414158312…’)
[Fri Jul 01 12:47:05 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #2 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(59): td_block_social_counter->get_social_network_meta(‘facebook’, ‘hobbyhandig’, Object(td_social_api), ‘148719414158312…’)
[Fri Jul 01 12:47:05 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #3 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_block_widget.php(217): td_block_social_counter->render(Array)
[Fri Jul 01 12:47:05 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #4 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-includes/class- in /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_remote_cache.php on line 102
[Fri Jul 01 12:52:14 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: PHP Warning: Illegal string offset ‘td_social_api’ in /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_remote_cache.php on line 102
[Fri Jul 01 12:52:14 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_remote_cache.php:102
[Fri Jul 01 12:52:14 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: Stack trace:
[Fri Jul 01 12:52:14 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #0 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/plugins/td-social-counter/td_social_api.php(62): td_remote_cache::set(‘td_social_api’, ‘facebook_hobbyh…’, 7235, 10800)
[Fri Jul 01 12:52:14 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #1 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(87): td_social_api->get_social_counter(‘facebook’, ‘hobbyhandig’, ‘148719414158312…’)
[Fri Jul 01 12:52:14 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #2 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/plugins/td-social-counter/shortcode/td_block_social_counter.php(59): td_block_social_counter->get_social_network_meta(‘facebook’, ‘hobbyhandig’, Object(td_social_api), ‘148719414158312…’)
[Fri Jul 01 12:52:14 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #3 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_block_widget.php(217): td_block_social_counter->render(Array)
[Fri Jul 01 12:52:14 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: #4 /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-includes/class- in /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_remote_cache.php on line 102
[Fri Jul 01 12:56:24 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: PHP Warning: Illegal string offset ‘td_instagram’ in /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_remote_cache.php on line 102, referer: https://www.hobbyhandig.nl/wp-admin/admin.php?page=td_theme_plugins
[Fri Jul 01 12:56:24 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /var/www/vhosts/hobbyhandig.nl/httpdocs/wp-content/themes/Newspaper/includes/wp_booster/td_remote_cache.php:102, referer: https://www.hobbyhandig.nl/wp-admin/admin.php?page=td_theme_plugins
[Fri Jul 01 12:56:24 2016] [warn] [client 37.74.200.65] mod_fcgid: stderr: Stack trace:, referer: https://www.hobbyhandig.nl/wp-admin/admin.php?page=td_theme_plugins
On our development environment it was all working fine. Can you help me?
Hi
Have you made any changes in theme’s core files? If so try to revert them or upload a clean version without any changes in its files then check if the error is still there. If the error appear only when you add some custom code please check it an make sure that is compatible with our theme.
Let us know how it goes and if the error persist and it’s caused by the theme please address us via email at contact@tagdiv.com with a link to this conversion and also give us wp-admin and ftp access so we can have a closer look. We will inspect this and get back to you in shortest time.
Thanks!