Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Error after upgrade to RC 23.05 (13May)

    Scheduled Pinned Locked Moved Plus 23.05 Development Snapshots (Retired)
    8 Posts 4 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pst
      last edited by

      Dashboard not working: no widgets displayed apart from RSS which shows this message:

      Fatal error: Uncaught TypeError: array_slice(): Argument #3 ($length) must be of type ?int, string given in /usr/local/pfSense/include/vendor/simplepie/simplepie/src/SimplePie.php:3165 Stack trace: #0 /usr/local/pfSense/include/vendor/simplepie/simplepie/src/SimplePie.php(3165): array_slice(Array, 0, '3') #1 /usr/local/pfSense/include/vendor/simplepie/simplepie/src/SimplePie.php(2997): SimplePie\SimplePie::merge_items(Array, 0, '3', 0) #2 /usr/local/www/widgets/widgets/rss.widget.php(109): SimplePie\SimplePie->get_items(0, '3') #3 /usr/local/www/index.php(430): include('/usr/local/www/...') #4 {main} thrown in /usr/local/pfSense/include/vendor/simplepie/simplepie/src/SimplePie.php on line 3165 PHP ERROR: Type: 1, File: /usr/local/pfSense/include/vendor/simplepie/simplepie/src/SimplePie.php, Line: 3165, Message: Uncaught TypeError: array_slice(): Argument #3 ($length) must be of type ?int, string given in /usr/local/pfSense/include/vendor/simplepie/simplepie/src/SimplePie.php:3165 Stack trace: #0 /usr/local/pfSense/include/vendor/simplepie/simplepie/src/SimplePie.php(3165): array_slice(Array, 0, '3') #1 /usr/local/pfSense/include/vendor/simplepie/simplepie/src/SimplePie.php(2997): SimplePie\SimplePie::merge_items(Array, 0, '3', 0) #2 /usr/local/www/widgets/widgets/rss.widget.php(109): SimplePie\SimplePie->get_items(0, '3') #3 /usr/local/www/index.php(430): include('/usr/local/www/...') #4 {main} thrown

      P 2 Replies Last reply Reply Quote 0
      • P
        pst @pst
        last edited by

        @pst fixed by changing file /usr/local/www/widgets/widgets/rss.widget.php on line 49, adding the int cast:

        $max_items = (int)$user_settings['widgets'][$widgetkey]['rssmaxitems'];

        1 Reply Last reply Reply Quote 0
        • P
          pst @pst
          last edited by

          @pst on version 23.05.r.20230513.0132

          P 1 Reply Last reply Reply Quote 0
          • P
            pst @pst
            last edited by

            @pst this still occurs with 23.05.r.20230513.1527. Can easily be reproduced by configuring the number of stories shown in the RSS widget (3 in my case)

            A 1 Reply Last reply Reply Quote 0
            • A
              anthonys @pst
              last edited by anthonys

              @pst
              I wonder if you have hit this, Regression #14365? PHP error in RSS widget after saving settings

              P 1 Reply Last reply Reply Quote 0
              • P
                pst @anthonys
                last edited by

                @anthonys it looks like the same issue with string vs int. With my change the error at save does not occur so can be used as a possible solution @jimp.

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by stephenw10

                  It is that issue. It's already fixed. There are three places that needs to be applied. See the change-set on the bug report.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    That change was only in the master branch for 23.09, but I've picked it back for 23.05 now since we have to do another round of builds.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 3
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.