I'm getting a 406 error rather frequently now that I've patched the database schema. It occurs when I go to edit a template from the Site Building>Mail templates by clicking 'Add en'. If I reload the page, it will load properly. I'm happy to help with a patch, if you can direct me in some way.
Anyone else having this issue?
Comments
Comment #1
chiddicks commentedI'm getting the following error as well - not sure if it's related.
warning: Invalid argument supplied for foreach() in /home/csps/public_html/sites/all/modules/mail_edit/mail_edit.module on line 104.
Comment #2
litwol commentedhmm i am not sure what the problem may be.
however try to find this line
and replace it with this
drupal_alter('token_'. $mailkey_obj->id, $tokens); //allow other modules to alter tokens for specific mailkey idComment #3
chiddicks commentedI'm not sure if this is related, but since enabling the mail_edit module, any user action (registration, account deletion, etc.) has resulted in an array (representing the form or user object or something) dumping to the drupal_set_message area after submission. I think it might have something to do with the !username variable.
After disabling the module, the problem stopped. I'll try experimenting with the above suggestion later tonight when no one is using the site.
Comment #4
litwol commented@chiddicks: Thanks for pointing out. i forgot to disable some of my debugging information. now it will be gone. to get rid of it right away. remove this line from the very end of the file
delete this > >
drupal_set_message('<pre>' . print_r($mail, 1) . '</pre>');located 3 lines before the end of fileComment #5
litwol commentedComment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.