• Resolved Shannon Little

    (@enchiridion)


    Hi,

    I was testing my site on PHP 8.1 and I’m getting this PHP deprecation notice when editing individual feeds in the plugin’s admin area, /wp-admin/admin.php?feed_id=3&page=sbi-feed-builder

    [22-Nov-2023 21:27:27 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /var/www/html/public/content/plugins/instagram-feed/inc/Builder/SBI_Feed_Saver_Manager.php on line 382
    [22-Nov-2023 21:27:27 UTC] PHP Stack trace:
    [22-Nov-2023 21:27:27 UTC] PHP   1. {main}() /var/www/html/public/wp/wp-admin/admin.php:0
    [22-Nov-2023 21:27:27 UTC] PHP   2. do_action($hook_name = 'load-instagram-feed_page_sbi-feed-builder') /var/www/html/public/wp/wp-admin/admin.php:237
    [22-Nov-2023 21:27:27 UTC] PHP   3. WP_Hook->do_action($args = [0 => '']) /var/www/html/public/wp/wp-includes/plugin.php:517
    [22-Nov-2023 21:27:27 UTC] PHP   4. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/public/wp/wp-includes/class-wp-hook.php:348
    [22-Nov-2023 21:27:27 UTC] PHP   5. InstagramFeed\Builder\SBI_Feed_Builder->builder_enqueue_admin_scripts('') /var/www/html/public/wp/wp-includes/class-wp-hook.php:324
    [22-Nov-2023 21:27:27 UTC] PHP   6. InstagramFeed\Builder\SBI_Feed_Saver_Manager::maybe_feed_customizer_data($include_comments = *uninitialized*) /var/www/html/public/content/plugins/instagram-feed/inc/Builder/SBI_Feed_Builder.php:484
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Smash Balloon Louis

    (@smashballoonlouis)

    Hi @enchiridion,

    Thank you for contacting us! Other than the notice, are you seeing any problems occurring with the functioning of the plugin? These deprecation notices usually indicate something that will need to be updated in the future, but likely aren’t causing any problem currently. This type of notice should only display in the HTML of your page when debugging and WP_DEBUG_DISPLAY is enabled on the site. This can be used on development or staging sites for troubleshooting, but shouldn’t be enabled on a live production site.

    I have also shared this with our development team so they can make any necessary updates based on this deprecation notice.

    I hope this helps, and please let me know if you need any other assistance!

    Best regards,
    Louis

    Thread Starter Shannon Little

    (@enchiridion)

    I haven’t seen any functional issues aside from the log messages. I just tested it in PHP 8.2 and 8.3 and didn’t see any new issues ????.

    Currently using version 6.2.7

    Plugin Support Smash Balloon Joel

    (@joelsmashballoon)

    Hey @enchiridion,

    Thanks for following up here. I just wanted to check with you whether you are still seeing the same log messages? You mention no new issues and I just wanted to check whether you have the old one still. Much appreciated!

    Best regards,
    Joel

    Thread Starter Shannon Little

    (@enchiridion)

    Yes, I’m still getting the same log message, although it has moved from line 382 to 386.

    [26-Jan-2024 17:37:15 UTC] PHP Deprecated:  Automatic conversion of false to array is deprecated in /var/www/html/public/content/plugins/instagram-feed/inc/Builder/SBI_Feed_Saver_Manager.php on line 386
    [26-Jan-2024 17:37:15 UTC] PHP Stack trace:
    [26-Jan-2024 17:37:15 UTC] PHP   1. {main}() /var/www/html/public/wp/wp-admin/admin.php:0
    [26-Jan-2024 17:37:15 UTC] PHP   2. do_action($hook_name = 'load-instagram-feed_page_sbi-feed-builder') /var/www/html/public/wp/wp-admin/admin.php:237
    [26-Jan-2024 17:37:15 UTC] PHP   3. WP_Hook->do_action($args = [0 => '']) /var/www/html/public/wp/wp-includes/plugin.php:517
    [26-Jan-2024 17:37:15 UTC] PHP   4. WP_Hook->apply_filters($value = '', $args = [0 => '']) /var/www/html/public/wp/wp-includes/class-wp-hook.php:348
    [26-Jan-2024 17:37:15 UTC] PHP   5. InstagramFeed\Builder\SBI_Feed_Builder->builder_enqueue_admin_scripts('') /var/www/html/public/wp/wp-includes/class-wp-hook.php:324
    [26-Jan-2024 17:37:15 UTC] PHP   6. InstagramFeed\Builder\SBI_Feed_Saver_Manager::maybe_feed_customizer_data($include_comments = *uninitialized*) /var/www/html/public/content/plugins/instagram-feed/inc/Builder/SBI_Feed_Builder.php:484
    
    Plugin Support Smash Balloon Louis

    (@smashballoonlouis)

    Hi?@enchiridion,

    Thank you for the update! Since there are still no functional problems occurring and only the deprecation warning, I would still suggest making sure WP_DEBUG_DISPLAY is not enabled in your wp-config.php file so these warnings don’t appear on the front end. I have also brought this up again with our development team so they can continue to check into this and make any changes needed for future compatibility.

    I hope this helps! If you have any other questions, please let us know.

    Best regards,
    Louis

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8.1 Deprecation notice’ is closed to new replies.