[pgpool-general: 3077] pgpoolAdmin_update_error

oniesner oniesner at micromata.de
Tue Jul 29 17:52:14 JST 2014


 Hi, all

 I cannot update my config via pgpoolAdmin (3.3.3)
 It says "update" failed.

 In apache logs the following error appeared:

 PHP Warning:  Illegal string offset 'regexp' in 
 /var/www/admin-tool/pgconfig.php on line 239, referer: 
 http://192.168.77.93/admin-tool/pgconfig.php
 it fails at this function:


 function checkString($str, $pattern)
 {
     // NULL is OK?
     if (empty($str) && isset($pattern['null_ok']) && 
 $pattern['null_ok'] == TRUE) {
         return TRUE;

     // regex test
     } elseif (preg_match("/{$pattern['regexp']}/", $str)) {
         return TRUE;

     } else {
         return FALSE;
     }
 }


 I am running:
 php -v
 PHP 5.4.4-14+deb7u12

 I already applied this patch:

 http://git.postgresql.org/gitweb/?p=pgpooladmin.git;a=commitdiff;h=df313a30ae0672f6aea39225964d39e4b66fbd03

 but the error is still there.

 If someone can solve this it would be helpful.

 Thanks Oliver



More information about the pgpool-general mailing list