user_cas
user_cas copied to clipboard
Errors in Nextcloud logs saying the included CAS.php is deprecated
Describe the bug Nextcloud logs are flooded by errors (exact errors added to the Screenshots section) saying the included CAS.php is deprecated, but from what I see version 1.9.0 comes with the latest phpCAS 1.3.9 so what is the problem actually?
To Reproduce Steps to reproduce the behavior:
- Login with user_cas app
- See errors on Settings -> Logging
Expected behavior No errors
Screenshots

Software (please complete the following information):
- Server-OS: Ubuntu 18.04
- HTTP-Server Version: Apache 2.4.29
- PHP-Version: PHP 7.4
- phpCAS-Library-Version: phpCAS 1.3.9 (comes bundled from my understanding)
- ownCloud/Nextcloud Version: Nextcloud 20.0.7
- user_cas-Version: user_cas 1.9.0
Additional context Let me know if you need other info
Hello @Emi94, thanks for your report, I think the message is displayed, because phpCAS encourages people to use the composer autoloader for including phpCAS from version 1.3.9 on. In user_cas, this is currently not possible, because phpCAS can only be included and loaded if it’s physically available, so we have several constraints in the logic, which define if phpCAS should be included or not. Until now it is also possible for you (as the enduser) to replace the phpCAS library and define a custom path to it in the user_cas settings panel, so there is currently no way to safely and generally include phpCAS via composer autoload.
I’ll investigate this and keep you updated if I have new findings.
Regards, Felix
I'm still getting the same errors after installing phpCAS through composer and setting the plugin to use that version.
Hello @Emi94, thanks for your report, I think the message is displayed, because phpCAS encourages people to use the composer autoloader for including phpCAS from version 1.3.9 on. In user_cas, this is currently not possible, because phpCAS can only be included and loaded if it’s physically available, so we have several constraints in the logic, which define if phpCAS should be included or not. Until now it is also possible for you (as the enduser) to replace the phpCAS library and define a custom path to it in the user_cas settings panel, so there is currently no way to safely and generally include phpCAS via composer autoload.
I’ll investigate this and keep you updated if I have new findings.
Regards, Felix
hi i have the same question. Which version of manual of phpCAS update?