On Wed, Sep 7, 2011 at 8:47 AM, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Bill Traynor wrote:
> I think I'm getting warmer.  The error_log shows the following when a new
> user registers:
>
> Unexpected character in input:  ''' (ASCII=39) state=1 in /var/www/
> dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc(55):
> eval()'d code on line 1, referer:
> http://dev.meld.org/admin/build/modules/list
> Unexpected character in input:  ''' (ASCII=39) state=1 in /var/www/
> dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc(55):
> eval()'d code on line 1, referer:
> http://dev.meld.org/
> Unexpected character in input:  ''' (ASCII=39) state=1 in /var/www/
> dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc(55):
> eval()'d code on line 1, referer:
> http://dev.meld.org/member/register
> Unexpected character in input:  ''' (ASCII=39) state=1 in /var/www/
> dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc(55):
> eval()'d code on line 1, referer:
> http://dev.meld.org/member/register
>
> But how would I go about tracking down the offending ' character?  As you
> can see, the error also occurred when logged in as admin and listing the
> modules.

I would 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'.

I edited the function as follows:

function ctools_php_ctools_access_check($__conf, $contexts) {
      if (arg(0) == 'member' && arg(1) == 'register') {
        throw new Exception('Offending Module is:');
      }
      else return $access;
}

and received:

[Wed Sep 07 12:02:25 2011] [error] [client 24.246.24.2] PHP Fatal error:  Uncaught exception 'Exception' with message 'Offending Module is:' in /var/www/dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc:63\n
Stack trace:\n
#0 /var/www/dev.meld.org/drupal-6.x/sites/all/modules/ctools/includes/context.inc(1435): ctools_php_ctools_access_check(Array, Array, Array)\n
#1 /var/www/dev.meld.org/drupal-6.x/sites/all/modules/ctools/includes/context-task-handler.inc(176): ctools_access(Array, Array)\n
#2 /var/www/dev.meld.org/drupal-6.x/sites/all/modules/panels/plugins/task_handlers/panel_context.inc(250): ctools_context_handler_select(Object(stdClass), Array)\n
#3 /var/www/dev.meld.org/drupal-6.x/sites/all/modules/ctools/includes/context-task-handler.inc(46): panels_panel_context_render(Object(stdClass), Array, Array)\n
#4 /var/www/dev.meld.org/drupal-6.x/sites/all/modules/panels_everywhere/panels_everywhere.module(177): ctools_context_handler_render(Array, '', Array, Array, false)\n
#5 [internal function]: panels_everywhere_page_preprocess(Array, 'page')\n
#6 /var/www/dev.meld.org/dr in /var/www/dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc on line 63

Does this mean that the offending single quote character is somewhere in one of these?
 

--
Earnie
-- http://progw.com
-- http://www.for-my-kids.com
--
[ Drupal support list | http://lists.drupal.org/ ]



--
Bill Traynor
Technical Writer & Community Manager of Meld.org
MontaVista Software, LLC
2929 Patrick Henry Drive
Santa Clara, CA 95054