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 gkornbluth - May 29, 2019 - edited: May 29, 2019

Hi Greg,

There seems to be much more then a plugin issue going on here. (the same plugin version works on another install with CMSB 3.50 and PHP 7)

As of this morning I've got Bluehost working on intermittent 500 errors  as well as cron jobs not working on all the sites on this server after a server update (any thoughts appreciated)

I've already changed cgi.force_redirect to 0 in the master php.ini file and have decided to upgrade to php 7.0 and CMSB 3.51 and see what progress I make before calling on you gurus at Interactive Tools for more help.

Thanks for your generous offer though,

Jerry Kornbluth

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 31, 2019

Hey Jerry,

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

Greg Thomas







PHP Programmer - interactivetools.com