PHP warnings – PHP Fatal errors
-
hi,
your plugin looks fine and seems to be working, but it throws a lots of PHP warnings/Fatal errors in a error_log!
can you take a look at this?
regards
[28-Jan-2023 15:54:15 UTC] PHP Warning: Trying to access array offset on value of type bool in /home/user/public_html/wp/wp-content/plugins/simple-social-buttons/simple-social-buttons.php on line 229
[28-Jan-2023 15:54:15 UTC] PHP Warning: Trying to access array offset on value of type bool in /home/user/public_html/wp/wp-content/plugins/simple-social-buttons/simple-social-buttons.php on line 241
[28-Jan-2023 15:54:15 UTC] PHP Warning: Trying to access array offset on value of type bool in /home/user/public_html/wp/wp-content/plugins/simple-social-buttons/simple-social-buttons.php on line 254[28-Jan-2023 18:12:01 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/user/public_html/wp/wp-content/plugins/simple-social-buttons/inc/utils.php:159
Stack trace:0 /home/user/public_html/wp/wp-content/plugins/simple-social-buttons/simple-social-buttons.php(901): ssb_fetch_fresh_counts(Array, 10115, Array)
1 /home/user/public_html/wp/wp-content/plugins/simple-social-buttons/simple-social-buttons.php(779): SimpleSocialButtonsPR->generate_buttons_code(Array, false, false, Array)
2 /home/user/public_html/wp/wp-includes/class-wp-hook.php(308): SimpleSocialButtonsPR->insert_buttons(‘<p class="post-…')</p>
3 /home/user/public_html/wp/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<p class="post-…', Array)</p>
4 /home/user/public_html/wp/wp-includes/formatting.php(3887): apply_filters(‘the_content’, ‘For sale\xC2\xA0<…’)
5 /home/user/public_html/wp/wp-includes/class-wp-hook.php(308): wp_trim_excerpt(‘For sale\xC2\xA0<…’, Object(WP_Post))
6 /home/user/public_html/wp/wp-includes/plugin.php(205): WP_Hook->apply_filters(”, Array) 7 /home/user/public_html/wp/wp-includes/post-template.php(431): apply_filters(‘get_the_excerpt’, ”, Object(WP_Post)) 8 /home/user/public_html/wp/wp-includes/feed.php(226): get_the_excerpt() 9 /home/user/public_html/wp/wp-includes/feed-rss2.php(101): the_excerpt_rss() 10 /home/user/public_html/wp/wp-includes/template.php(783): require_once(‘/home/user/…’) 11 /home/user/public_html/wp/wp-includes/functions.php(1659): load_template(‘/home/user/…’) 12 /home/user/public_html/wp/wp-includes/class-wp-hook.php(310): do_feed_rss2(false) 13 /home/user/public_html/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 14 /home/user/public_html/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 15 /home/user/public_html/wp/wp-includes/functions.php(1621): do_action(‘do_feed_rss2’, false, ‘rss2’) 16 /home/user/public_html/wp/wp-includes/template-loader.php(48): do_feed() 17 /home/user/public_html/wp/wp-blog-header.php(19): require_once(‘/home/user/…’) 18 /home/user/public_html/index.php(17): require(‘/home/user/…’) 19 {main} thrown in /home/user/public_html/wp/wp-content/plugins/simple-social-buttons/inc/utils.php on line 159
- The topic ‘PHP warnings – PHP Fatal errors’ is closed to new replies.