Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAS updates in PR #1578 missing from cas.php in 2.12.1 #115

Open
wsams opened this issue Jan 25, 2024 · 2 comments
Open

CAS updates in PR #1578 missing from cas.php in 2.12.1 #115

wsams opened this issue Jan 25, 2024 · 2 comments

Comments

@wsams
Copy link

wsams commented Jan 25, 2024

I'm trying to use the image ocsinventory/ocsinventory-docker-image:2.12.1 which contains this cas.php file. However, this change or another may be missing from the 2.12.1 release.

It's throwing this error,

[php:error] [pid 188] [client 192.168.1.6:58426] PHP Fatal error:  Uncaught ArgumentCountError: Too few 
arguments to function phpCAS::client(), 4 passed in 
/usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/cas.php on line 46 and at least 5 
expected in /usr/share/ocsinventory-reports/ocsreports/vendor/jasig/phpcas/source/CAS.php:348\nStack 
trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/methode/cas.php(46): 
phpCAS::client()\n#1 /usr/share/ocsinventory-reports/ocsreports/backend/AUTH/auth.php(48): 
require_once('...')\n#2 /usr/share/ocsinventory-reports/ocsreports/require/header.php(321): 
require_once('...')\n#3 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('...')\n#4 
{main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/vendor/jasig/phpcas/source/CAS.php 
on line 348
@wsams
Copy link
Author

wsams commented Jan 25, 2024

It looks like https://github.com/OCSInventory-NG/OCSInventory-ocsreports/blob/fd7926c9af211dfb1d3822d4809dca0f15584bb6/composer.json#L17 pulled in at least phpCAS 1.6.0 with client which requires 5 args.

@percu
Copy link

percu commented Jul 18, 2024

After upgrading to 2.12.2 everything is working fine again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants