Warning: gzinflate() [function.gzinflate]: data error in

1,757 views
Skip to first unread message

André Guilhon

unread,
Oct 25, 2010, 8:54:17 AM10/25/10
to simple...@googlegroups.com
Hey all.
I'm trying to use simplesamlphp to be my Identity Provider for Google Apps. I followed the tutorial in the page and got it working just fine for some time.
Today, when I was trying to log into my account (using the Single Sign On with Simplesamlphp) I got the following error:

Warning: gzinflate() [function.gzinflate]: data error in /var/www/html/saml/simplesamlphp-1.6.2/lib/SAML2/HTTPRedirect.php on line 113

Warning: DOMDocument::loadXML() [domdocument.loadxml]: Empty string supplied as input in /var/www/html/saml/simplesamlphp-1.6.2/lib/SAML2/HTTPRedirect.php on line 120

Catchable fatal error: Argument 1 passed to SAML2_Message::fromXML() must be an instance of DOMElement, null given, called in /var/www/html/saml/simplesamlphp-1.6.2/lib/SAML2/HTTPRedirect.php on line 123 and defined in /var/www/html/saml/simplesamlphp-1.6.2/lib/SAML2/Message.php on line 455

This error is new, and I am pretty lost on where to start debugging this error, since it did not happend before.
The error seems to be pretty commom in WordPress and Joomla, but I could not find an ansewer on how to properly fix it in phpsimple saml.
Attached is php_info() output.
Any help would be aprreciated.
Running Apache on Mandriva Linux here!
-- 
Grato,
André Guilhon
(48) 3246-1304
(48) 8416-0050

Tecnologia da Informação
an...@meninojesus.com.br

Congregação das Irmãs Franciscanas de São José
R. Pedro Bunn, 738 - Barreiros
São José - SC

http://www.cifsj.org.br<http://www.cifsj.org.br/>
newfile.php.htm

Olav Morken

unread,
Oct 25, 2010, 9:14:30 AM10/25/10
to simple...@googlegroups.com

What is the URL of the webbrowser when you receive that page? It should
be something like:

https://youridp/simplesaml/saml2/idp/SSOService.php?SAMLRequest=nVJdT[...]

From the error it looks like the SAMLRequest parameter is somehow
missing.


Regards,
Olav Morken
UNINETT / Feide

André Guilhon

unread,
Oct 25, 2010, 9:19:20 AM10/25/10
to simple...@googlegroups.com

Olav Morken

unread,
Oct 25, 2010, 9:29:34 AM10/25/10
to simple...@googlegroups.com

The request parses correctly here, so that at least is correct. You
could try to add a bit of debugging to lib/SAML2/HTTPRedirect.php.

For example, dump the $msg variable right before it is base64-decoded
(before the «$msg = base64_decode($msg);»-line).

E.g.: insert: error_log($msg); and check your apache error log.

André Guilhon

unread,
Oct 25, 2010, 1:39:09 PM10/25/10
to simple...@googlegroups.com
Well, it really has something to do with the server. Put the same code into another server and it worked just fine again!
Thanks for the help.
Grato,
André Guilhon
(48) 3246-1304
(48) 8416-0050

Tecnologia da Informação
an...@meninojesus.com.br

Congregação das Irmãs Franciscanas de São José
R. Pedro Bunn, 738 - Barreiros
São José - SC

http://www.cifsj.org.br<http://www.cifsj.org.br/>

Reply all
Reply to author
Forward
0 new messages