• Resolved Saxman

    (@konjfuchie)


    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

    • This topic was modified 1 year, 10 months ago by Saxman.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Abdul Wahab

    (@abdulwahab610)

    Hey, @konjfuchie

    Sorry for the inconvenience. I’ve notified these issues and forwarded to the dev team. I’ll get back to you ASAP with the solution.

    Looking forward.

    Hi @konjfuchie ,

    Please note, the reported PHP 8.1 Warnings issue is fixed in our recent release v4.1.0. Our plugin is now compatible with PHP 8.2 and working fine. You are advised to update our plugin to see if it’s sorted in your environment.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP warnings – PHP Fatal errors’ is closed to new replies.