Forums

could not instantiate mail function

marklandry 06 Nov, 2011
Hi,
I've read multiple posts regarding this and I think I've tried everything.
This worked before we migrated the site from one hosting company to another (bluehost - have never had any probs with them and CF😟 )

I'm using PHP mail in joomla config
security in mail settings is off, but I tried with it on and get the same error

here's my debug when I submit the form:
Errors

Could not instantiate mail function.
Information


Backtrace

Call stack
#	Function	Location
1	JSite->dispatch()	/home8/enlighx1/public_html/index.php:43
2	JComponentHelper::renderComponent()	/home8/enlighx1/public_html/includes/application.php:191
3	require_once()	/home8/enlighx1/public_html/libraries/joomla/application/component/helper.php:156
4	process()	/home8/enlighx1/public_html/components/com_chronoforms/chronoforms.php:49
5	CFChronoForm->process()	/home8/enlighx1/public_html/components/com_chronoforms/chronoforms.php:60
6	CFChronoForm->_processEvents()	/home8/enlighx1/public_html/components/com_chronoforms/libraries/chronoform.php:96
7	CFChronoForm->_processAction()	/home8/enlighx1/public_html/components/com_chronoforms/libraries/chronoform.php:119
8	CFChronoForm->runAction()	/home8/enlighx1/public_html/components/com_chronoforms/libraries/chronoform.php:142
9	CfactionEmail->run()	/home8/enlighx1/public_html/components/com_chronoforms/libraries/chronoform.php:161
10	JUtility::sendMail()	/home8/enlighx1/public_html/administrator/components/com_chronoforms/form_actions/email/email.php:166
11	JMail->sendMail()	/home8/enlighx1/public_html/libraries/joomla/utilities/utility.php:50
12	JMail->Send()	/home8/enlighx1/public_html/libraries/joomla/mail/mail.php:409
13	JError::raiseNotice()	/home8/enlighx1/public_html/libraries/joomla/mail/mail.php:77
14	JError::raise()	/home8/enlighx1/public_html/libraries/joomla/error/error.php:297
Profile Information

Application 0.000 seconds (+0.000); 0.82 MB (+0.824) - afterLoad
Application 0.058 seconds (+0.057); 6.08 MB (+5.254) - afterInitialise
Application 0.069 seconds (+0.012); 7.11 MB (+1.031) - afterRoute
Application 0.441 seconds (+0.371); 11.01 MB (+3.897) - afterDispatch
Application 0.468 seconds (+0.027); 12.51 MB (+1.504) - beforeRenderModule mod_custom (Social Media Icons)
Application 0.480 seconds (+0.012); 13.00 MB (+0.491) - afterRenderModule mod_custom (Social Media Icons)
Application 0.482 seconds (+0.002); 13.00 MB (-0.001) - beforeRenderModule mod_custom (Logo)
Application 0.483 seconds (+0.001); 13.01 MB (+0.006) - afterRenderModule mod_custom (Logo)
Application 0.485 seconds (+0.002); 13.01 MB (+0.001) - beforeRenderModule mod_menu (Main Menu)
Application 0.510 seconds (+0.026); 14.03 MB (+1.024) - afterRenderModule mod_menu (Main Menu)
Application 0.529 seconds (+0.019); 14.73 MB (+0.695) - beforeRenderModule mod_acymailing (Newsletter Signup)
Application 0.551 seconds (+0.022); 15.99 MB (+1.265) - afterRenderModule mod_acymailing (Newsletter Signup)
Application 0.560 seconds (+0.010); 15.92 MB (-0.075) - afterRender
Memory Usage

15.93 MB (16,703,392 Bytes)
20 Queries Logged

SELECT `data` 
  FROM `qyit5_session` 
  WHERE `session_id` = 'hn44lcse9e379plkq4mbjktti3'
DELETE 
  FROM `qyit5_session` 
  WHERE `time` < 1320606035
SELECT folder AS type, element AS name, params 
  FROM qyit5_extensions 
  WHERE enabled >= 1 
  AND type ='plugin' 
  AND state >= 0 
  AND access IN (1,1) 
  ORDER BY ordering
SELECT extension_id AS "id", element AS "option", params, enabled 
  FROM qyit5_extensions 
  WHERE `type` = 'component' 
  AND `element` = 'com_languages'
SELECT extension_id AS "id", element AS "option", params, enabled 
  FROM qyit5_extensions 
  WHERE `type` = 'component' 
  AND `element` = 'com_widgetkit'
SELECT m.id, m.menutype, m.title, m.alias, m.path AS route, m.link, m.type, m.level, m.language,m.browserNav, m.access, m.params, m.home, m.img, m.template_style_id, m.component_id, m.parent_id,e.element as component 
  FROM qyit5_menu AS m 
  LEFT JOIN qyit5_extensions AS e 
  ON m.component_id = e.extension_id 
  WHERE m.published = 1 
  AND m.parent_id > 0 
  AND m.client_id = 0 
  AND m.access IN (1,1) 
  ORDER BY m.lft
SELECT extension_id AS "id", element AS "option", params, enabled 
  FROM qyit5_extensions 
  WHERE `type` = 'component' 
  AND `element` = 'com_chronoforms'
SELECT * 
  FROM qyit5_languages 
  WHERE published=1 
  ORDER BY ordering ASC
SELECT id, home, template, s.params 
  FROM qyit5_template_styles as s 
  LEFT JOIN qyit5_extensions as e 
  ON e.element=s.template 
  AND e.type='template' 
  AND e.client_id=s.client_id 
  WHERE s.client_id = 0 
  AND e.enabled = 1
SELECT * 
  FROM `qyit5_chronoforms` 
  WHERE `name` = 'booking_form' 
  AND `published` = '1'
SELECT * 
  FROM `qyit5_chronoform_actions` 
  WHERE `chronoform_id` = '1' 
  ORDER BY `
  order`
SELECT * 
  FROM `qyit5_extensions` 
  WHERE `element` = 'com_chronoforms' 
  AND `type` = 'component'
SELECT params 
  FROM qyit5_extensions AS e 
  WHERE e.element='com_widgetkit'
SELECT extension_id AS "id", element AS "option", params, enabled 
  FROM qyit5_extensions 
  WHERE `type` = 'component' 
  AND `element` = 'com_media'
SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid 
  FROM qyit5_modules AS m 
  LEFT JOIN qyit5_modules_menu AS mm 
  ON mm.moduleid = m.id 
  LEFT JOIN qyit5_extensions AS e 
  ON e.element = m.module 
  AND e.client_id = m.client_id 
  WHERE m.published = 1 
  AND e.enabled = 1 
  AND (m.publish_up = '0000-00-00 00:00:00' OR m.publish_up <= '2011-11-06 19:15:35') 
  AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down >= '2011-11-06 19:15:35') 
  AND m.access IN (1,1) 
  AND m.client_id = 0 
  AND (mm.menuid = 105 OR mm.menuid <= 0) 
  ORDER BY m.position, m.ordering
SELECT extension_id AS "id", element AS "option", params, enabled 
  FROM qyit5_extensions 
  WHERE `type` = 'component' 
  AND `element` = 'com_content'
SELECT extension_id AS "id", element AS "option", params, enabled 
  FROM qyit5_extensions 
  WHERE `type` = 'component' 
  AND `element` = 'com_jevents'
SELECT * 
  FROM qyit5_acymailing_config
SELECT * 
  FROM qyit5_acymailing_list 
  WHERE type = 'list' 
  ORDER BY ordering ASC
UPDATE `qyit5_session` 
  SET `data` = '__default|a:8:{s:15:\"session.counter\";i:39;s:19:\"session.timer.start\";i:1320604569;s:18:\"session.timer.last\";i:1320606913;s:17:\"session.timer.now\";i:1320606935;s:22:\"session.client.browser\";s:106:\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2\";s:8:\"registry\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:4:\"user\";O:5:\"JUser\":23:{s:9:\"\0*\0isRoot\";b:0;s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:6:\"groups\";a:0:{}s:5:\"guest\";i:1;s:10:\"\0*\0_params\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:14:\"\0*\0_authGroups\";a:1:{i:0;i:1;}s:14:\"\0*\0_authLevels\";a:2:{i:0;i:1;i:1;i:1;}s:15:\"\0*\0_authActions\";N;s:12:\"\0*\0_errorMsg\";N;s:10:\"\0*\0_errors\";a:0:{}s:3:\"aid\";i:0;}s:13:\"session.token\";s:32:\"3b0e506de6ea58a235d91ea881033891\";}__eb81adcc4edfeccb1ba0f16dfe1a737f|a:1:{s:19:\"chrono_verification\";s:32:\"1bdc39bc1cd51516fff02b37b5ca09ca\";}',	 `time` = 1320606935 
  WHERE `session_id` = 'hn44lcse9e379plkq4mbjktti3'
15 Query Types Logged, Sorted by Occurrences.

SELECT Tables:

6 × SELECT extension_id AS "id", element AS "option", params, enabled FROM qyit5_extensions
1 × SELECT params FROM qyit5_extensions AS e
1 × SELECT * FROM `qyit5_extensions`
1 × SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid FROM qyit5_modules AS m LEFT JOIN qyit5_modules_menu AS mm ON mm.moduleid = m.id LEFT JOIN qyit5_extensions AS e ON e.element = m.module AND e.client_id = m.client_id
1 × SELECT * FROM qyit5_acymailing_confi
1 × SELECT * FROM qyit5_acymailing_list
1 × SELECT * FROM `qyit5_chronoform_actions`
1 × SELECT * FROM `qyit5_chronoforms`
1 × SELECT folder AS type, element AS name, params FROM qyit5_extensions
1 × SELECT m.id, m.menutype, m.title, m.alias, m.path AS route, m.link, m.type, m.level, m.language,m.browserNav, m.access, m.params, m.home, m.img, m.template_style_id, m.component_id, m.parent_id,e.element as component FROM qyit5_menu AS m LEFT JOIN qyit5_extensions AS e ON m.component_id = e.extension_id
1 × SELECT * FROM qyit5_languages
1 × SELECT id, home, template, s.params FROM qyit5_template_styles as s LEFT JOIN qyit5_extensions as e ON e.element=s.template AND e.type='template' AND e.client_id=s.client_id
1 × SELECT `data` FROM `qyit5_session`
OTHER Tables:

1 × UPDATE `qyit5_session` SET `data` = '__default|a:8:{s:15:\"session.counter\";i:39;s:19:\"session.timer.start\";i:1320604569;s:18:\"session.timer.last\";i:1320606913;s:17:\"session.timer.now\";i:1320606935;s:22:\"session.client.browser\";s:106:\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2\";s:8:\"registry\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:4:\"user\";O:5:\"JUser\":23:{s:9:\"\0*\0isRoot\";b:0;s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:6:\"groups\";a:0:{}s:5:\"guest\";i:1;s:10:\"\0*\0_params\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:14:\"\0*\0_authGroups\";a:1:{i:0;i:1;}s:14:\"\0*\0_authLevels\";a:2:{i:0;i:1;i:1;i:1;}s:15:\"\0*\0_authActions\";N;s:12:\"\0*\0_errorMsg\";N;s:10:\"\0*\0_errors\";a:0:{}s:3:\"aid\";i:0;}s:13:\"session.token\";s:32:\"3b0e506de6ea58a235d91ea881033891\";}__eb81adcc4edfeccb1ba0f16dfe1a737f|a:1:{s:19:\"chrono_verification\";s:32:\"1bdc39bc1cd51516fff02b37b5ca09ca\";}', `time` = 1320606935
1 × DELETE FROM `qyit5_session`
GreyHead 07 Nov, 2011
Hi Mark,

Basic question - can the site send email?

Bob
marklandry 08 Nov, 2011
Hi Bob
Just did a test registration and got the email...
GreyHead 08 Nov, 2011
Hi Mark,

Please drag a debugger action into the On Submit event and see what that shows.

Bob
marklandry 08 Nov, 2011
debug info doesn't seem to say anything -

Could not instantiate mail function.
Could not instantiate mail function.
Thank you for submitting a vision request. We will review your request and contact you within 3-4 business days. If you do not receive a response within 5 business days please call our offices at 303 888-6876 to ensure receipt of your request. We look forward to partnering with you to bring this message to your community.

Debug Data
An email has been SENT successfully from (enlighten)mark@xxxxx.com to [email]marklandry@xxxxx.com[/email]
Email template:

REQUESTED SPEAKER:
Pam Stenzel

Has a team member appeared for your organization before?
{a2}
If yes, please give ALL prior dates

Contact Name
lkajsdfasd

Address:


City, State, Zip
, ,

Organization:


Phone:


Fax:


Email:


Nearest Major Airport:
- NEAREST DISTANCE


PREVIOUS EXPERIENCE:

Have you ever promoted or managed another event in the past?
{a15}
If yes, please describe the following
Goal / Audience of Event you have promoted in the past


Size of the Event you held in the past


Allocated Budget of past Event

PROPOSED EVENT
Scheduled date(s) of the event:
lakdjfads

If scheduling with other schools in your area, travel time between schools cannot be more than 45 minutes. Please check all that apply (Evening events for Pam Stenzel must have a minimum of 500 people attending and be approved by our office)
{a20}



Briefly Desctibe the Following:
Target Audience =
Expected Attendance =
Allocated Budget =

Promotional Plans for the event:

Goal / Purpose of the event:

Any other comments would help us evaluate this request. Give us as much information as possible to help us understand your event, especially regarding any evening event. What is the purpose, who is the audience, what are you wanting to accomplish, again, what is your VISION?







Submitted by xxxxxxxxxx

GreyHead 08 Nov, 2011
Hi Mark,

Yes and no. It tells us that the Email has To & From email addresses and the Sent Successfully tells us that ChronoForms passed the email to the Joomla! mailer and got an OK back.

Unfortunately the Joomla! mailer isn't too reliable in it's reports or too helpful with it's error messages.

Just to check it's nothing in the Email itself I'd construct a very very simple form with just a submit button. Add a Show HTML and an Email action and configure the Email with static settings and the default template. If that gets the same error message then the problem definitely lies with the Joomla! Mailer. The only way I know through that is to dig into the mailer code and track through to see exactly where the message is generated :-(

Bob
marklandry 08 Nov, 2011
- just created a simple form that submitted successfully - email sent fine, etc..
GreyHead 08 Nov, 2011
Hi Mark,

So there is something about your form that is causing the problem :-(

Try removing the contents of the Email template (paste a copy into a text file so you can get them back again). See if the Email them submits OK. If it does the problem is with the template - paste half back and try again to pin it down.

If it give the error with an empty template then the problem has to be one of the other settings. Check each of them carefully for odd characters - single quotes can cause odd problems sometimes.

Bob
marklandry 16 Nov, 2011
still rollin' donuts over here.
I've removed the template, created other forms, etc and still getting the error.
Hate to bug y'all with this but I'm completely stumped...

Thanx
Mark
marklandry 16 Nov, 2011
disregard,
changed templates and now it's working...
This topic is locked and no more replies can be posted.