Unexpected mail errors when using Alert Record Saved plugin

6 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: May 31, 2019   (RSS)

By gkornbluth - May 28, 2019

Hi all,

I’ve recently started getting unexpected mail errors when using Djulia’s Alert Record Saved plugin (attached below) (I’m running CMSB 3.15 and PHP 5.6)

Even though I’m not running PHP7.0 I tried adding the following at the head of the plugin (suggested by Daniel Loewe and documented in post 2243255) but that didn’t work.

if (empty($_SERVER['HTTP_HOST']) && isset( $_SERVER['argv'][1])) {
$_SERVER['SERVER_NAME'] = $_SERVER['argv'][1]; // set server name for SwiftMailer Message-ID in cron tasks
// (https://forge.typo3.org/issues/24686)
}

Hope someone has an idea why this might be happening.

Thanks,

Jerry Kornbluth

Here’s some of the error log information:

backtrace:
#0 _errorlog_logErrorRecord() called at [/home3/ellescho/public_html/thecmsbcookbook/cmsAdmin/lib/errorlog_functions.php:64]
#1 _errorlog_catchRuntimeErrors() called at [/home3/ellescho/public_html/thecmsbcookbook/cmsAdmin/plugins/alertRecordSaved.php:41]
#2 _plugin_alertRecordSaved() called
#3 call_user_func_array() called at [/home3/ellescho/public_html/thecmsbcookbook/cmsAdmin/lib/plugin_functions.php:312]
#4 doAction() called at [/home3/ellescho/public_html/thecmsbcookbook/cmsAdmin/lib/menus/default/save.php:88]
#5 include() called at [/home3/ellescho/public_html/thecmsbcookbook/cmsAdmin/lib/menus/default/actionHandler.php:64]
#6 include() called at [/home3/ellescho/public_html/thecmsbcookbook/cmsAdmin/admin.php:36]

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Attachments:

alertrecordsaved.zip 3K

By gregThomas - May 28, 2019

Hey Jerry,

Thanks for posting the backtrace information, I can see that the error is coming from the alertRecordSaved.php plugin. Please, could you post the error message that is being logged with it?

I don't think it's the same issue as post #2243255 (https://www.interactivetools.com/forum/forum-posts.php?postNum=2243255#post2243255) as that issue was caused by using the sendMessage function from a script that's run using the cron, I'll be able to confirm that once I've seen an example of the error message.

Cheers,

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By gkornbluth - May 28, 2019 - edited: May 28, 2019

Here you go, and thanks for following up on this.

If you need access o the back end to see the rest of the error message, let me know.

Jerry Kornbluth

#8128 - E_NOTICE: Undefined variable: errors
/home3/ellescho/public_html/thecmsbcookbook/cmsAdmin/plugins/alertRecordSaved.php (line 41)
http://thecmsbcookbook.com/cmsAdmin/admin.php

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By gregThomas - May 29, 2019

Hey Jerry,

Is the version of the plugin you attached to the previous post (alertrecordsaved.zip) the same version that's used on your site? That version doesn't include a variable called $error in it, which is what the error message states hasn't been set. 

Please can you complete a second level support request so that I can take a closer look at the issue: 

https://www.interactivetools.com/support/request/

I'll need the sites FTP and CMS login credentials so that I can find the source of the issue. 

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By gregThomas - May 31, 2019

Hey Jerry,

OK sounds good, let us know if we can help with anything else!

Greg Thomas







PHP Programmer - interactivetools.com