[pgpool-general: 3078] Re: pgpoolAdmin_update_error
Nozomi Anzai
anzai at sraoss.co.jp
Tue Jul 29 18:31:04 JST 2014
Hi,
It seems to occur only when editting a certain string parameter.
Which parameter did you edit?
Could you show us your pgpool.conf, if possible?
> 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
>
> _______________________________________________
> pgpool-general mailing list
> pgpool-general at pgpool.net
> http://www.pgpool.net/mailman/listinfo/pgpool-general
--
Nozomi Anzai
SRA OSS, Inc. Japan
More information about the pgpool-general
mailing list