As far as I can see, the OAuth module does not use error masking (at least, not the version I have here), so I’d assume this is probably PHP configuration. If you go to your php.ini, what do you have in the “error_reporting” configuration directive?
On 11 Aug 2016, at 10:09 AM, Dick Visser <
dick....@geant.org> wrote:
> I did some more searching and came across this statement in www/_includes.php:
>
> if ($errno & SimpleSAML_Utilities::$logMask || !($errno & error_reporting())) {
> // masked error
> return false;
> }
>
> After removing this my error started appearing in the logs:
>
> Aug 11 09:37:00 simplesamlphp.bridge ERROR [bef181fb68] SimpleSAML_Error_Exception: Error 0 - Class 'sspmod_oauth_Consumer' not found
> Aug 11 09:37:00 simplesamlphp.bridge ERROR [bef181fb68] Backtrace:
> Aug 11 09:37:00 simplesamlphp.bridge ERROR [bef181fb68] 2 /opt/simplesamlphp/bridge-1.14.6/www/_include.php:83 (SimpleSAML_error_handler)
> Aug 11 09:37:00 simplesamlphp.bridge ERROR [bef181fb68] 1 /opt/simplesamlphp/bridge-1.14.6/www/_include.php:51 (SimpleSAML_exception_handler)
> Aug 11 09:37:00 simplesamlphp.bridge ERROR [bef181fb68] 0 [builtin] (N/A)
>
> As can be seen the 'errno' is 0 - which is why the error was masked by the statement (errno = 0 and SimpleSAML_Utilities::$logMask =0 as well).
>
> I checked a load of old log files and the usual values for 'errno' that we encountered were 2 or 8.
> If these are numbers that map to the ones on
http://php.net/manual/en/errorfunc.constants.php, then I wonder what errno 0 means because that is not listed.
> Maybe a bug in PHP?
>
> In any case I will strip out that statement in www/_include.php so I can see what's happening.
"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."