I'm trying to debug a PHP error caused by a typo in a module somewhere. The exact errors are:<div><br></div><div>Unexpected character in input: ''' (ASCII=39) state=1 in /var/www/<a href="http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc%2855%29" target="_blank">dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc(55)</a> : eval()'d code on line 1, referer: <a href="http://dev.meld.org/admin/build/modules/list" target="_blank">http://dev.meld.org/admin/build/modules/list</a><br>
Unexpected character in input: ''' (ASCII=39) state=1 in /var/www/<a href="http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc%2855%29" target="_blank">dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc(55)</a> : eval()'d code on line 1, referer: <a href="http://dev.meld.org/" target="_blank">http://dev.meld.org/</a><br>
Unexpected character in input: ''' (ASCII=39) state=1 in /var/www/<a href="http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc%2855%29" target="_blank">dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc(55)</a> : eval()'d code on line 1, referer: <a href="http://dev.meld.org/member/register" target="_blank">http://dev.meld.org/member/register</a><br>
Unexpected character in input: ''' (ASCII=39) state=1 in /var/www/<a href="http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc%2855%29" target="_blank">dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc(55)</a> : eval()'d code on line 1, referer: <a href="http://dev.meld.org/member/register" target="_blank">http://dev.meld.org/member/register</a></div>
<div><br></div><div>To debug this, it's been suggested to me to go to line 55 in sites/all/modules/ctools/plugins/access/php.inc and add throw new Exception to find the offending module. You'll want to condition the throw new Exception to only when arg(0) == 'member' && arg(1) == 'register'.</div>
<div><br></div><div>Line 55 is this function:</div><div><br></div><div><div><div>function ctools_php_ctools_access_check($__conf, $contexts) {</div><div> $access = eval($__conf['php']);</div><div> return $access;</div>
<div>}</div></div></div><div><br></div><div>As an admitted PHP neophyte, I have no idea how to add the Exception. As fixing this bug as fast as possible is my priority right now, can anyone tell me how to add the Exception to that function?</div>
<div><br></div><div>Thanks</div><div>Bill</div><div><br></div>