Regression #13712
closed
Added by Steve Wheeler almost 2 years ago.
Updated almost 2 years ago.
Release Notes:
Force Exclusion
Affected Plus Version:
23.01
Affected Architecture:
All
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
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
- Status changed from New to Feedback
- Assignee set to Christian McDonald
- % Done changed from 0 to 100
- Release Notes changed from Default to Force Exclusion
- 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.
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
- Status changed from Resolved to Feedback
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-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
Not seeing this issue on the Dec 10th builds. I suspect this is resolved, but would like a second person to confirm.
- 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
Also available in: Atom
PDF