[support] mail issue: new user registration email not being sent
Bill Traynor
btraynor at mvista.com
Wed Sep 7 19:26:23 UTC 2011
At the advice of someone smarter than me, the code added is now:
function ctools_php_ctools_access_check($__conf, $contexts) {
if (arg(0) == 'member' && arg(1) == 'register') {
print_r($__conf);
}
$access = eval($__conf['php']);
return $access;
}
This results in the following output at the top of the returned page:
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; } )
This looks a little suspect: arg(1) == 'tips)
In: Array ( [description] => [php] => if ( arg(0) == 'messages' || ( arg(0)
== 'filter' && arg(1) == 'tips)
Getting warmer, I hope.
On Wed, Sep 7, 2011 at 1:32 PM, Bill Traynor <btraynor at mvista.com> wrote:
>
>
> On Wed, Sep 7, 2011 at 8:47 AM, Earnie Boyd <earnie at 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)<http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc%2855%29>
>> :
>> > 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)<http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc%2855%29>
>> :
>> > 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)<http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc%2855%29>
>> :
>> > 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)<http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc%2855%29>
>> :
>> > 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<http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/plugins/access/php.inc:63%5Cn>
> Stack trace:\n
> #0 /var/www/
> dev.meld.org/drupal-6.x/sites/all/modules/ctools/includes/context.inc(1435)<http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/includes/context.inc%281435%29>:
> 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)<http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/includes/context-task-handler.inc%28176%29>:
> 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)<http://dev.meld.org/drupal-6.x/sites/all/modules/panels/plugins/task_handlers/panel_context.inc%28250%29>:
> 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)<http://dev.meld.org/drupal-6.x/sites/all/modules/ctools/includes/context-task-handler.inc%2846%29>:
> 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)<http://dev.meld.org/drupal-6.x/sites/all/modules/panels_everywhere/panels_everywhere.module%28177%29>:
> 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
>
>
--
Bill Traynor
Technical Writer & Community Manager of Meld.org
MontaVista Software, LLC
2929 Patrick Henry Drive
Santa Clara, CA 95054
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110907/11ed0332/attachment.html
More information about the support
mailing list