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

    Too few arguments to function pkg_switch_repo()

    Scheduled Pinned Locked Moved Plus 23.01 Development Snapshots (Retired)
    4 Posts 3 Posters 613 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.
    • w0wW
      w0w
      last edited by

      PHP ERROR: Type: 1, File: /etc/inc/pkg-utils.inc, Line: 1550, Message: Uncaught ArgumentCountError: Too few arguments to function pkg_switch_repo(), 1 passed in /usr/local/www/pkg_mgr_install.php on line 292 and exactly 2 expected in /etc/inc/pkg-utils.inc:1550
      Stack trace:
      #0 /usr/local/www/pkg_mgr_install.php(292): pkg_switch_repo('/usr/local/etc/...')
      #1 {main}
      thrown @ 2022-12-03 07:15:00
      

      This is happening every time when try to switch repository.

      G 1 Reply Last reply Reply Quote 0
      • G
        gabacho4 Rebel Alliance @w0w
        last edited by

        @w0w this is your issue

        Upgrades to 13.01 are broken for other reasons too unfortunately.

        w0wW 1 Reply Last reply Reply Quote 1
        • w0wW
          w0w @gabacho4
          last edited by

          @gabacho4
          Did not try to upgrade from 22.05, but upgrade from 23.01 Dec 1 to 23.01 Dec 2 is worked.

          Overall yes, in addition, there is some problem with update script on server or server itself, just because it randomly can't find repo (via option 13) or server, unable to check for updates, sometimes interrupting process in the middle with download failed, attempts to update to nothing — via option 13 it checks for updates founds nothing and asks for update Y/N and if you choose Y, you will get broken system... but we are all know it's not even beta version today... so it is expected. It is getting better every week since the start.

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

            That should be fixed in the next snapshot.

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