<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 15:04, Bill Traynor <span dir="ltr"><<a href="mailto:btraynor@gmail.com">btraynor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br><br><div class="gmail_quote"><div class="im">On Wed, Sep 7, 2011 at 14:57, Khalid Baheyeldin <span dir="ltr"><<a href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>> Unexpected character in input:  ''' (ASCII=39) state=1<br><br></div>That is a single quote, delimiter for a string or something.<br><br>Are you sure it is only for the path member/register that this manifests itself?<br>



<br>Change the function to be like this:<br><br><div><br></div><div><div><div><div>function ctools_php_ctools_access_check($__conf, $contexts) {<br></div>  if (arg(0) == 'member' && arg(1) == 'register') {<br>



    print_r($__conf);<br>  }<br><br></div><div><div>  $access = eval($__conf['php']);</div><div>  return $access;</div>

<div>}</div></div></div></div><br>This should display and array and 'php' will be one element of it.<br></blockquote><div><br></div></div><div>Thanks Khalid, this is what the code produced:</div><div><br></div><div>

<span style="color:rgb(110, 110, 110);font-family:Verdana, Ariel, sans-serif;font-size:13px;line-height:16px">Array ( [description] => [php] => if ( arg(0) == 'user' && is_numeric(arg(1)) && arg(2) == 'openid') { return TRUE; }; ) Array ( [description] => [php] => if ((arg(0) == 'node' && arg(1) == 'agreement' && is_numeric(arg(2))) || arg(0)=='project' || (arg(0) == 'node' && is_numeric(arg(1)) && arg(2) == 'release') || arg(0) == 'comment' ) { return true; } ) Array ( [description] => [php] => if ( arg(0) == 'messages' || ( arg(0) == 'filter' && arg(1) == 'tips) ) { return TRUE; }; ) Array ( [description] => [php] => if (arg(0) == 'search' && arg(1) == 'user'){ return TRUE; } ) Array ( [description] => [php] => if((arg(0)== 'search' && arg(1) == 'apachesolr_search')){ return TRUE; } ) Array ( [description] => notification pages [php] => if ((arg(0) == 'user' && is_numeric(arg(1)) && arg(2) == 'notifications') || (arg(0) == 'notifications')){ return TRUE; } ) Array ( [description] => [php] => if ((arg(0) == 'invite') || (arg(0) == 'user' && arg(2) == 'invites')){ return true; } )</span> </div>


<div><br></div><div>Attempting to decipher now.</div><div><br></div></div></blockquote><div><br></div><div>This looks suspect:</div><div><br></div><div>&& arg(1) == 'tips)</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="gmail_quote"><div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><font color="#888888">-- <br>Khalid M. Baheyeldin<br>
<a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br><a href="http://2bits.com" target="_blank">http://2bits.com</a><br>
Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>
</font><br></div><div class="im">_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
<br></div></blockquote></div><br>
</blockquote></div><br>