Regression #13712
closedPHP error: pkg-utils.inc
100%
Description
When switching repos in 23.01:
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-11-30 14:51:01
Tested in:
23.01-DEVELOPMENT (amd64) built on Wed Nov 30 06:05:59 UTC 2022 FreeBSD 14.0-CURRENT
Does not affect 2.7
Files
Updated by Ryan Coleman almost 2 years ago
Steve Wheeler wrote:
When switching repos in 23.01:
[...]
Tested in:
[...]Does not affect 2.7
Experienced this on 12.02 build as well. Cannot install packages, 5100 installed default to 22.05-RELEASE and not DEVEL branch.
Netgate 5100
Netgate Device ID: df16d6687347793dccee
Updated by Christian McDonald almost 2 years ago
- Status changed from New to Feedback
- Assignee set to Christian McDonald
Updated by Christian McDonald almost 2 years ago
- % Done changed from 0 to 100
Applied in changeset pfsense:dd8a019e7676fc326d0656d5ee7ab2cb12cba67a.
Updated by Jim Pingle almost 2 years ago
- Release Notes changed from Default to Force Exclusion
Updated by Danilo Zrenjanin almost 2 years ago
- Status changed from Feedback to Resolved
Tested against:
23.01-DEVELOPMENT (amd64) built on Thu Dec 08 06:08:06 UTC 2022 FreeBSD 14.0-CURRENT
It works as expected. I am marking this ticket resolved.
Updated by Lev Prokofev almost 2 years ago
Tested on
23.01-DEVELOPMENT (amd64)
built on Thu Dec 08 06:08:06 UTC 2022
FreeBSD 14.0-CURRENT
It works fine but, if you go to the Update=>Update settings tab choose any branch or just click "Save" you'll get
Fatal error: Uncaught ArgumentCountError: Too few arguments to function pkg_switch_repo(), 1 passed in /usr/local/www/system_update_settings.php on line 68 and exactly 2 expected in /etc/inc/pkg-utils.inc:1544 Stack trace: #0 /usr/local/www/system_update_settings.php(68): pkg_switch_repo('/usr/local/etc/...') #1 {main} thrown in /etc/inc/pkg-utils.inc on line 1544 PHP ERROR: Type: 1, File: /etc/inc/pkg-utils.inc, Line: 1544, Message: Uncaught ArgumentCountError: Too few arguments to function pkg_switch_repo(), 1 passed in /usr/local/www/system_update_settings.php on line 68 and exactly 2 expected in /etc/inc/pkg-utils.inc:1544 Stack trace: #0 /usr/local/www/system_update_settings.php(68): pkg_switch_repo('/usr/local/etc/...') #1 {main} thrown
Updated by Danilo Zrenjanin almost 2 years ago
- Status changed from Resolved to Feedback
Updated by Kris Phillips almost 2 years ago
Not seeing
Lev Prokofev wrote in #note-6:
Tested on
23.01-DEVELOPMENT (amd64)
built on Thu Dec 08 06:08:06 UTC 2022
FreeBSD 14.0-CURRENTIt works fine but, if you go to the Update=>Update settings tab choose any branch or just click "Save" you'll get
Fatal error: Uncaught ArgumentCountError: Too few arguments to function pkg_switch_repo(), 1 passed in /usr/local/www/system_update_settings.php on line 68 and exactly 2 expected in /etc/inc/pkg-utils.inc:1544 Stack trace: #0 /usr/local/www/system_update_settings.php(68): pkg_switch_repo('/usr/local/etc/...') #1 {main} thrown in /etc/inc/pkg-utils.inc on line 1544 PHP ERROR: Type: 1, File: /etc/inc/pkg-utils.inc, Line: 1544, Message: Uncaught ArgumentCountError: Too few arguments to function pkg_switch_repo(), 1 passed in /usr/local/www/system_update_settings.php on line 68 and exactly 2 expected in /etc/inc/pkg-utils.inc:1544 Stack trace: #0 /usr/local/www/system_update_settings.php(68): pkg_switch_repo('/usr/local/etc/...') #1 {main} thrown
Not seeing this issue on the Dec 10th builds. I suspect this is resolved, but would like a second person to confirm.
Updated by Steve Wheeler almost 2 years ago
- Status changed from Feedback to Resolved
I was able to replicate that previously. Looks good in the current snap on all archs.
Tested:
23.01-DEVELOPMENT (amd64) built on Sat Dec 10 03:22:16 UTC 2022 FreeBSD 14.0-CURRENT