• When upgrading from PHP 7.4 to PHP 8.0, I am unable to access the plugin’s options page within the dashboard. Instead, I get the following error message… “There has been a critical error on this website.”

    Below is what we received in the error log…

    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /nas/content/live/peabodytv/wp-content/plugins/ultimate-social-media-icons/views/sfsi_other_banners.php:75\nStack trace:\n#0 /nas/content/live/peabodytv/wp-content/plugins/ultimate-social-media-icons/ultimate_social_media_icons.php(767): include()\n#1 /nas/content/live/peabodytv/wp-includes/class-wp-hook.php(308): sfsi_admin_notice(”)\n#2 /nas/content/live/peabodytv/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(true, Array)\n#3 /nas/content/live/peabodytv/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#4 /nas/content/live/peabodytv/wp-admin/admin-header.php(303): do_action(‘admin_notices’)\n#5 /nas/content/live/peabodytv/wp-admin/admin.php(239): require_once(‘/nas/content/li…’)\n#6 {main}\n thrown in /nas/content/live/peabodytv/wp-content/plugins/ultimate-social-media-icons/views/sfsi_other_banners.php on line 75, referer: https://peabodytv.org/wp-admin/plugins.php

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support alexsev

    (@alexsev)

    Thanks for reporting this @bradthebluefish , we will include the fix in the next version of the plugin.

    Ynah

    (@ynahpantig)

    Hi @alexsev Just wondering if you have an estimate to when the next version of the plugin will be released? We’re getting this issue as well, but in the frontend, as we’re updating our sites to PHP 8.

    Thank you.

    Plugin Support alexsev

    (@alexsev)

    We’re in the final stages of testing the new version. It should be released in the next few days. I’ll let you know when it’s available @ynahpantig

    Ynah

    (@ynahpantig)

    Awesome, thanks so much for the update @alexsev!

    Plugin Support alexsev

    (@alexsev)

    @ynahpantig @bradthebluefish Could you please update the plugin and check if the issue is gone?

    Ynah

    (@ynahpantig)

    Hi @alexsev, unfortunately the issue still exists after updating the plugin. Here’s the error that I’m seeing:

    TypeError:
    Cannot access offset of type string on string
    
      at /Users/user/code/site/wp-content/plugins/ultimate-social-media-icons/libs/sfsi_install_uninstall.php:1682
      at sfsi_activate_plugin(false)
         (/Users/user/code/site/wp-includes/class-wp-hook.php:308)
      at WP_Hook->apply_filters(null, array(false))
         (/Users/user/code/site/wp-includes/class-wp-hook.php:332)
      at WP_Hook->do_action(array(false))
         (/Users/user/code/site/wp-includes/plugin.php:517)
      at do_action('activate_ultimate-social-media-icons/ultimate_social_media_icons.php', false)
         (/Users/user/code/site/wp-admin/includes/plugin.php:691)
      at activate_plugin('ultimate-social-media-icons/ultimate_social_media_icons.php', 'https://site.test/wp-admin/plugins.php?error=true&plugin=ultimate-social-media-icons%2Fultimate_social_media_icons.php', false)
         (/Users/user/code/site/wp-admin/plugins.php:58)
      at require('/Users/user/code/site/wp-admin/plugins.php')
         (/Users/user/.composer/vendor/laravel/valet/server.php:235)       

    Also wanted to add in case this is relevant, but I had it deactivated before so I can continue updating our site to PHP 8. This is the error that I got after re-activating the plugin.

    Thanks.

    Plugin Support alexsev

    (@alexsev)

    @ynahpantig Could you please install this plugin https://www.dropbox.com/s/d785az20ri4qimj/ultimate-social-media-icons.zip?dl=0 and notice if the errors still show?

    Ynah

    (@ynahpantig)

    Hi @alexsev, unfortunately I’m still getting the same error. It looks like it might have something to do with the $get_options2 variable. I tried dumping the contents of the variable (line 1680 in the sfsi_install_uninstall file) to check, and it returns an empty string. But on line 1682, it’s trying to set an array key into that same variable.

    Here’s a short recording of the test that I did: https://recordit.co/0cW8Z5B29N

    Hope that helps.

    Ynah

    (@ynahpantig)

    @alexsev just wanted to follow up to see if there are any updates? We noticed that it works on some of our sites our multisite environment, but not for the others. I also wanted to note that the two sites that we’re testing them on, they’re using the same theme. One site activates it ok, the other fails to activate it.

    For those that do have it activated, we’re getting this error in the backend:

    Plugin Support alexsev

    (@alexsev)

    Hi @ynahpantig! The developers are updating the code to be fully PHP8.0 compatible. We believe this is the cause of the issues. We will update you once it’s done.

    Ynah

    (@ynahpantig)

    @alexsev awesome, thank you so much. Looking forward to the update.

    Thread Starter bradthebluefish

    (@bradthebluefish)

    Hello, I see version 2.8.1 was released since I last reported my issue. However, upon updating, I am still getting the following error. When should we expect version 2.8.2?

    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /nas/content/live/peabodytv/wp-content/plugins/ultimate-social-media-icons/views/sfsi_other_banners.php:127#012Stack trace:#012#0 /nas/content/live/peabodytv/wp-content/plugins/ultimate-social-media-icons/ultimate_social_media_icons.php(771): include()#012#1 /nas/content/live/peabodytv/wp-includes/class-wp-hook.php(308): sfsi_admin_notice('')#012#2 /nas/content/live/peabodytv/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(true, Array)#012#3 /nas/content/live/peabodytv/wp-includes/plugin.php(517): WP_Hook->do_action(Array)#012#4 /nas/content/live/peabodytv/wp-admin/admin-header.php(303): do_action('admin_notices')#012#5 /nas/content/live/peabodytv/wp-admin/plugins.php(605): require_once('/nas/content/li...')#012#6 {main}#012 thrown in /nas/content/live/peabodytv/wp-content/plugins/ultimate-social-media-icons/views/sfsi_other_banners.php on line 127
    Plugin Support alexsev

    (@alexsev)

    @bradthebluefish, @ynahpantig, our developers have tried to reproduce the errors you’ve described but were unfortunately unable to do so. We will continue to monitor for similar issues.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on stri’ is closed to new replies.