Hello Everybody,<div><br></div><div>I noticed that the recovery button doesn't work in pgpooladmin 3.1.1 (using pgpool 3.1.3).</div><div><br></div><div>The bug seems be in the "common.php" file, in the "isReplicationMode()" function.</div>

<div><br></div><div><div>/**</div><div> * Whether pgpool is operating in the replication mode or not?</div><div> *      </div><div> * @return bool</div><div> */</div><div>function isReplicationMode()</div><div>{</div><div>

    $params = readConfigParams(array('replication_mode'));</div><div>    if ($params['replication_mode'] == 'true') {</div><div>        return TRUE;</div><div>    } else {</div><div>        return FALSE;</div>

<div>    }                                                                                       </div><div>}</div><div><br></div><div>In my configuration file (pgpool.conf), the parameter replication_mode is NOT true or false but on or off.</div>

<div>So, to fix that, I just changed "true" in "on", like this:</div><div><br></div><div><div>/**</div><div> * Whether pgpool is operating in the replication mode or not?</div><div> *      </div><div>
 * @return bool</div>
<div> */</div><div>function isReplicationMode()</div><div>{</div><div>    $params = readConfigParams(array('replication_mode'));</div><div>   <b> if ($params['replication_mode'] == 'on') {</b></div>

<div>        return TRUE;</div><div>    } else {</div><div>        return FALSE;</div><div>    }                                                                                       </div><div>}</div></div><div><br></div>

<div>Now, it works...</div><div><br></div><div>I hope it will be usefull to somebody... ;)</div><div><br></div><div>Best Regards,</div><div><br></div>-- <br>







<p><b>Gilles Fauvie - Open Source Consultant<br></b>Email: <span><a href="mailto:gfauvie@integer.be" target="_blank">gfauvie@integer.be</a><br></span>LinkedIn: <a href="http://be.linkedin.com/in/fauviegilles" target="_blank"><span>http://be.linkedin.com/in/fauviegilles</span></a></p>


<p><b>INTEGER SPRL/BVBA<br></b>P. +32 (0)67 88 36 13 | F. +32 (0)67 47 52 04<br><span><a href="http://www.integer.be/" target="_blank">http://www.integer.be</a></span><span> | Email: </span><span><span><a href="mailto:customercare@integer.be" target="_blank">customercare@integer.be</a></span></span></p>

<p>To contact our technical support, we highly recommend that you use the email address <a href="mailto:customercare@integer.be" target="_blank"><span>customercare@integer.be</span></a>. This will help us save time and we can respond more quickly to your questions.</p>


<p>Pour contacter notre support technique, nous recommandons grandement que vous utilisiez l'adresse email <a href="mailto:customercare@integer.be" target="_blank"><span>customercare@integer.be</span></a>. Cela nous aidera à gagner du temps et nous pourrons répondre plus vite à vos questions.</p>

<br>
</div>