The logging handler 'file' is invalid

21 views
Skip to first unread message

Sorin Gheorghiu

unread,
Dec 6, 2017, 2:18:49 PM12/6/17
to simple...@googlegroups.com

Hello SSP team,

It seems that since 1.15.0 the logging.handler' => 'file' isn't supported, here the error:

Exception encountered, of type "Exception"
[227fb1b9513f1648efd3013e] /kim/index.php/Spezial:PluggableAuthLogin Exception from line 378 of /var/simplesamlphp/lib/SimpleSAML/Logger.php: The logging handler 'file' is invalid.
Backtrace:
#0 /var/simplesamlphp/lib/SimpleSAML/Logger.php(413): SimpleSAML\Logger::createLoggingHandler()
#1 /var/simplesamlphp/lib/SimpleSAML/Logger.php(181): SimpleSAML\Logger::log(integer, string)
#2 /var/simplesamlphp/lib/_autoload_modules.php(68): SimpleSAML\Logger::warning(string)
#3 [internal function]: temporaryLoader(string)
#4 /var/www/html/extensions/SimpleSAMLphp/SimpleSAMLphp.php(126): spl_autoload_call(string)
#5 /var/www/html/extensions/SimpleSAMLphp/SimpleSAMLphp.php(38): SimpleSAMLphp->getSAMLClient()
#6 /var/www/html/extensions/PluggableAuth/PluggableAuthLogin.php(45): SimpleSAMLphp->authenticate(NULL, NULL, NULL, NULL)
#7 /var/www/html/includes/specialpage/SpecialPage.php(479): PluggableAuthLogin->execute(NULL)
#8 /var/www/html/includes/specialpage/SpecialPageFactory.php(577): SpecialPage->run(NULL)
#9 /var/www/html/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#10 /var/www/html/includes/MediaWiki.php(735): MediaWiki->performRequest()
#11 /var/www/html/includes/MediaWiki.php(509): MediaWiki->main()
#12 /var/www/html/index.php(43): MediaWiki->run()
#13 {main}

Best regards

Patrick Radtke

unread,
Dec 8, 2017, 1:55:18 PM12/8/17
to SimpleSAMLphp
'file' is still supported. However the release also supports specifying a class name to use for logging, which SSP looks at first.
You must have non-namespaced class call 'file' which SSP is finding when it calls class_exists.

You should be able to work around this by explicitly setting the handler to 'SimpleSAML\Logger\FileLoggingHandler'


-Patrick

Patrick Radtke

unread,
Dec 11, 2017, 4:31:20 PM12/11/17
to Sorin Gheorghiu, SimpleSAMLphp
On Sun, Dec 10, 2017 at 6:04 AM, Sorin Gheorghiu
<sorin.g...@uni-konstanz.de> wrote:
> Hi Patrick,
>
> the 'file' handler worked in 1.14.7, but after the upgrade has failed.
> Meanwhile I got a working fix, see
> https://github.com/simplesamlphp/simplesamlphp/issues/741
>
> But, apart from this issue, the log file prints out 2 warnings. please help
> to figure out the root cause:
>
> Dec 10 12:50:54 simplesamlphp WARNING [69c65371c2] Deprecated use of new
> SimpleSAML\Locale\Translate::t(...) at
> /var/simplesamlphp/lib/SimpleSAML/XHTML/Template.php:716. The $tag-parameter
> can only be a string in 2.0.
> Dec 10 13:42:46 simplesamlphp WARNING [45c200c9e0] The class or interface
> 'SimpleSAML_Auth_Simple' is now using namespaces, please use
> 'SimpleSAML\Auth\Simple'.

SSP has moved to using name spaces for numerous classes instead of the
underscore_ naming convention.
If you have code or use modules that make use of the old naming
convention you'll get the warning. It doesn't indicate anything is
wrong.
I suspect in some future release ( > 1.15) the old names will no
longer be supported.

-Patrick
Reply all
Reply to author
Forward
0 new messages