Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: Undefined index: email_template_id #5

Closed
johnbleck3 opened this issue Apr 18, 2018 · 3 comments
Closed

Notice: Undefined index: email_template_id #5

johnbleck3 opened this issue Apr 18, 2018 · 3 comments

Comments

@johnbleck3
Copy link

I had 2 orphans when I did a system check:
TABLE: bn_email_template_when_sent_views

  • num orphans: 2
  • error description:
  1. invalid email template ID
  2. invalid email template ID

When I went to "clean up" I got a blank screen - so I enabled debugging and I got:

Notice: Undefined index: email_template_id in /var/www/forms.buffalonews.com/modules/system_check/code/Orphans.class.php on line 766

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number: parameter was not defined' in /var/www/forms.buffalonews.com/global/code/Database.class.php:117 Stack trace: #0 /var/www/forms.buffalonews.com/global/code/Database.class.php(117): PDOStatement->bindValue('view_id', 73, 1) #1 /var/www/forms.buffalonews.com/global/code/Database.class.php(122): FormTools\Database->bind('view_id', 73) #2 /var/www/forms.buffalonews.com/modules/system_check/code/Orphans.class.php(778): FormTools\Database->bindAll(Array) #3 /var/www/forms.buffalonews.com/modules/system_check/code/Orphans.class.php(65): FormTools\Modules\SystemCheck\Orphans::testEmailTemplateWhenSentViews(true) #4 /var/www/forms.buffalonews.com/modules/system_check/code/Orphans.class.php(151): FormTools\Modules\SystemCheck\Orphans::findTableOrphans('bn_email_templa...', true) #5 /var/www/forms.buffalonews.com/modules/system_check/orphans.php(15): FormTools\Modules\SystemCheck\Orphans::cleanOrphans() #6 {main} thrown in /var/www/forms.buffalonews.com/global/code/Database.class.php on line 117

@benkeen
Copy link
Member

benkeen commented Apr 18, 2018

Ah, thanks @johnbleck3 - yeah I've encountered this too. Are you running 3.0.0 final (non-beta), btw? I made a patch in one of the later beta releases to fix at least one scenario where these orphans were created.

@johnbleck3
Copy link
Author

I just updated to 3.0.0 final yesterday so yessir I am!

@benkeen
Copy link
Member

benkeen commented Dec 23, 2018

Pretty sure this is fixed with later versions of the Core, so closing now. It can be reopened if it comes up again.

@benkeen benkeen closed this as completed Dec 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants