From 3fd9a4c0debcfe973746c20ae590e29146abadc6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 25 Mar 2016 13:25:12 +0100 Subject: [PATCH] doc/faq: formatting, more hints --- doc/80-FAQ.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/80-FAQ.md b/doc/80-FAQ.md index 900285ef..12f4d0e0 100644 --- a/doc/80-FAQ.md +++ b/doc/80-FAQ.md @@ -4,13 +4,26 @@ Frequently Asked Questions I got an exception... --------------------- - Refusing to render the configuration, your DB layer corrupts binary data. You might be affected by Zend Framework bug #655 +This section tries to summarize well known pitfalls and their solution. + +### Binary data corruption with ZF 1.12.6 and 1.12.17 + +When deploying your first configuration, you might get this error: + + Refusing to render the configuration, your DB layer corrupts + binary data. You might be affected by Zend Framework bug #655 Sad but true. Zend Framework 1.12.16 and 1.12.17 silently corrupt binary data. You can either wait for 1.12.18 or downgrade to an earlier version. Debian Stable currently ships 1.12.9, but as they backported the involved erraneous security bug their version is affected too. You could also manually fix this issue in `/usr/share/php/Zend/Db/Adapter/Pdo/Abstract.php`. Search for the `_quote` function and delete the line saying `$value = addcslashes($value, "\000\032");`. Please note that doing so would fix all problems, but re-introduce a potential security issue affecting the MSSQL and Sqlite adapters. - SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. + +### Connection error when setting up the database + +When setting up and validating a database connection for Director in Icinga Web 2, the following error might occur: + + SQLSTATE[HY000]: General error: 2014 Cannot execute queries while + other unbuffered queries are active. This happens with some PHP versions, we have not been able to figure out which ones and why. However, we found a workaround and and fixed this in Icinga Web 2. Please pull from the current Icinga Web 2 master or at least apply this fix to your installation: