Newsletter Made Simple - jobs starting but not sending

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
kmesd62
Forum Members
Forum Members
Posts: 30
Joined: Sat Aug 06, 2011 3:17 pm

Newsletter Made Simple - jobs starting but not sending

Post by kmesd62 »

I'm using CMSMS 2.2.4 and NMS 2.13.1, but can't get NMS jobs to send. Test mails sent from the new test tab arrive OK.

This CMSMS install has been steadily upgraded over 5-6 years from 1.10 onwards; The NMS was last known to be working at about CMSMS 1.12, before I upgraded to CMSMS 2.2.3.1 a couple of months ago. NMS was also upgraded as part of this, but don't recall which versions or when.

NB: this issue is similar to the one reported on the following link
viewtopic.php?f=7&t=77556 and which i have commented on, but the fixes discussed there haven't worked for me, so i'm thinking there's a different cause...

When I create a new job in NMS:
  • It shows in the jobs list with a status of 'Starting',
  • It shows in the Background Job Manager with a name "Initialize Sending of job nnn" and Start is shown, in green, as nn minutes ago
  • It shows in the Admin Log with an Action "Job <description>..... created." with a timestamp
The Admin Log also has a number of Actions at 3-minute intervals "Received 0 response when trying to trigger async processing", before and after the NMS 'Job... created' message mentioned previously.

My host will only let me fire a cron job every 20 mins, and this is set currently to open index.php.

After the cron job has fired, no NMS emails appear and there is no significant change or additional entries in either:
  • the Jobs list in NMS (status still saying 'Starting' with an updated 'nn minutes ago' time stamp) or
  • the Background Jobs Manager where the Start entry is now listed in in red, as nn minutes ago.
The Admin log now has a number of additional entries "Received 0 response when trying to trigger async processing"

Can anyone offer any pointers as to what I'm doing wrong / what else i need to do to get NMS emails to send?

Code: Select all

----------------------------------------------
Cms Version: 2.2.4
Installed Modules:
AdminSearch: 1.0.4
AdvancedContent: 0.9.4.3
CGCalendar: 2.5
CGContentUtils: 2.2.2
CGExtensions: 1.57.1
CGGoogleMaps2: 1.1.1
CGJobMgr: 1.3.6
CGSimpleSmarty: 2.1.7
CGTiny: 1.2.8
CMSContentManager: 1.1.6
CMSMailer: 6.2.14
Captcha: 0.5.5
CmsJobManager: 0.1.1
CustomContent: 1.9
DesignManager: 1.1.4
DownloadManager: 1.5.3
FileManager: 1.6.5
FilePicker: 1.0.2
FormBrowser: 0.5
FormBuilder: 0.8.1.6
Forum: 0.9.4
FrontEndUsers: 2.7.1
Gallery: 2.3.2
JQueryTools: 1.4.0.3
MenuManager: 1.50.3
MicroTiny: 2.2.2
ModuleManager: 2.1.3
NMS: 2.13.1
Navigator: 1.0.8
News: 2.51.3
Notifications: 1.1
Printing: 1.1.2
Search: 1.51.2
SelfRegistration: 1.12
ThemeManager: 1.1.8
TinyMCE: 2.9.12
TreeManager: 0.6.0
XMLMadeSimple: 0.0.6

Config Information:
php_memory_limit:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Europe/London
permissive_smarty: false

Php Information:
phpversion: 5.5.38
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 128M
max_execution_time: 30
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: On (True)
Server Information:
Server Software: Apache/2.4.29 (Unix)
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-696.3.2.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.1.24
Server Db Grants: Could not find a suitable "GRANT ALL" permission, this does not necessarily lead to problems... But if you have problems installing/removing modules or adding and deleting items/pages this could be the cause!

----------------------------------------------
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Newsletter Made Simple - jobs starting but not sending

Post by calguy1000 »

I think you now have an error somehow in your configuration.

The system cannot talk to CmsJobManager properly asynchronously.

I would:
a: Look at your http error log (after maing sure that it is setup to log errors and warnings, and that you have access to it).
b: enable debug_to_log in the config.php and then make several requests to the site over say 5 minutes. watch tmp/cache/debug.log file for lines beginning with 'exception'.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
kmesd62
Forum Members
Forum Members
Posts: 30
Joined: Sat Aug 06, 2011 3:17 pm

Re: Newsletter Made Simple - jobs starting but not sending

Post by kmesd62 »

Thanks Calguy for the prompt response...

in terms of a) i can see error and access logs in the host control panel, but the error log doesn't have any entries relating to the test period (c. 1700 hrs). Sample at end of post, in case it's of use.

In terms of b) I amended the config file as you describe and requested front and back end pages - including creating newsletters and jobs -
over a 10 minute interval but the log file has no exception entries. Here is a sample:

Code: Select all

Debug display of 'Is missing in the languagefile: DownloadManager':(0.055489) - (net usage: 17434168) - (peak: 17494896)
Languagestring: "event_info_DownloadManagerTemplateEdited"
Debug display of 'Is missing in the languagefile: FrontEndUsers':(0.056655) - (net usage: 17450600) - (peak: 17511472)
Languagestring: "event_info_ OnRefreshUser"
Debug display of 'Is missing in the languagefile: NMS':(0.05789) - (net usage: 17467040) - (peak: 17527952)
Languagestring: "info_event_OnEditList"
I also uninstalled, removed and re-installed NMS for the above tests.

Are there any requests in particular that might generate the exceptions?

Thanks in advance

Keith

HTTP error log referenced above:

Code: Select all

[Sun Dec 10 13:17:44 2017] [error] [client ] AH01215: PHP Warning:  Parameter 2 to CMSSmartyBase::assign_by_ref() expected to be a reference, value given in public_html/lib/smarty/sysplugins/smarty_internal_template.php on line 620: public_html/index.php
[Sun Dec 10 13:25:07 2017] [error] [client ] AH01215: PHP Notice:  Undefined index: SCRIPT_NAME in public_html/test-db7/lib/include.php on line 178: public_html/ftpgIB7pR.cgi
[Sun Dec 10 13:25:07 2017] [error] [client ] AH01215: PHP Notice:  Undefined index: REQUEST_METHOD in public_html/test-db7/index.php on line 89: public_html/ftpgIB7pR.cgi
[Sun Dec 10 15:38:42 2017] [error] [client ] AH01215: PHP Warning:  Parameter first_day_of_week is not known by module CGCalendar dropped in public_html/lib/classes/class.CMSModule.php on line 658: public_html/index.php
kmesd62
Forum Members
Forum Members
Posts: 30
Joined: Sat Aug 06, 2011 3:17 pm

Re: Newsletter Made Simple - jobs starting but not sending

Post by kmesd62 »

Quick update on this:

I have tried NMS with a clean install of CMSMS 2.2.4, and still not able to get NMS mails to send even after the cron job has run which leads me to think i'm either not setting CMSMS up correctly or there is something I need to set up/enable/configure correctly on the server, as Calguy has indicated.

The symptoms on the clean install are identical to my upgraded install:
NMS: job is listed as 'Starting'
Background job manager: 'Initialixing sending of job n'
Admin log: Records creating of the job and has various 'Received 0 response when trying to trigger async processing' messages.
Nothing in the http access or error logs
The debug log has a statement "Debug display of 'Is missing in the languagefile: NMS | Languagestring: "info_event_OnEditList"'"

Any ideas?
User avatar
master3395
Forum Members
Forum Members
Posts: 94
Joined: Mon Mar 30, 2015 7:13 am
Location: Norway

Re: Newsletter Made Simple - jobs starting but not sending

Post by master3395 »

I get the same issue CMS 2.2.4

CmsJobManager Received 503 response when trying to trigger async processing
13 Dec. 2017 22:00:20
Admin
5
NMS Job entitled: Quick job: Welcome created
13 Dec. 2017 21:56:26
Attachments
74cc4df5af5aba1b0f2a9fc3fff0334c.png
Locked

Return to “Modules/Add-Ons”