Post by Busta1066 » Thu Jan 11, 2018 2:42 am

Hi Guys,

Marketing mail is not working for me! I am unable to send emails - When i click send this error message appears "E-Mail Message required!" when there is a test email inserted in to the message box. I am using CKeditor and OC Version 3.0.2.0. Any help would be amazing as this is driving me crazy.

- Note -
I have been searching for a week and still have not been able to solve this.

Thanks in advance

Newbie

Posts

Joined
Fri Feb 03, 2017 11:29 pm

Post by straightlight » Thu Jan 11, 2018 7:28 am

Does the message appears with a blank screen or the layout is still intact with the error message provided?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Busta1066 » Thu Jan 11, 2018 7:34 am

Thanks for the reply.

Upon clicking send the message is still intact and visible in the messaging area. The error is the generated warning sign under the message box in red. It would be the same error message you would get if you leave that messaging area blank and clicked send.

Thanks straightlight

Newbie

Posts

Joined
Fri Feb 03, 2017 11:29 pm

Post by straightlight » Thu Jan 11, 2018 7:56 am

In your admin/controller/marketing/contact.php file,

find:

Code: Select all

if (!$this->request->post['subject']) {
				$json['error']['subject'] = $this->language->get('error_subject');
			}
			
add above:

Code: Select all

foreach ($this->request->post as $key => $val) {
				$this->log->write("Admin Marketing :: Contact :: DEBUG :: " . $key . " => " . $val);
			}
Then, try again with the contact form. Afterwards, see your admin - > systems - > maintenance - > error logs page for lines beginning with:

Code: Select all

Admin Marketing :: Contact :: DEBUG ::
Paste each lines your next reply.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Busta1066 » Thu Jan 11, 2018 8:29 am

Hi,

Well i did everything you told me to do, but it did not give any errors to show you. Error log is turned on in settings and i followed your instructions to the letter.

Regards

Busta

Newbie

Posts

Joined
Fri Feb 03, 2017 11:29 pm

Post by straightlight » Thu Jan 11, 2018 8:31 am

Ensure your error logs are enabled from your admin - > systems - > settings - > edit settings - > server tab.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Busta1066 » Thu Jan 11, 2018 8:36 am

Hi,

All my error logs are turned on in admin, but i am still unable to get any data

Regards

Busta

Newbie

Posts

Joined
Fri Feb 03, 2017 11:29 pm

Post by straightlight » Thu Jan 11, 2018 8:52 am

It might be a cache related issue while using the CKEditor. Ensure your system/storage folder is located outside of your public_html folder and to edit your config.php and admin/config.php file for the new location of the DIR_STORAGE . Also remove the entire line where the ^system/storage's entire line from your .htaccess file. Then, clear your OC cache from your admin - > dashboard and from your admin - > extensions - > modifications - > refresh button. This should resolved the problem.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Busta1066 » Thu Jan 11, 2018 6:22 pm

Hi,

Thanks for the help. I tried everything you told me to do, but still i get the same message. It's like the system is not registering my message. I have provided a screen shot so you can see more or what im talking about.

Regards

Busta

Attachments

2018-01-11 (2).png

2018-01-11 (2).png (51.61 KiB) Viewed 2243 times


Newbie

Posts

Joined
Fri Feb 03, 2017 11:29 pm

Post by straightlight » Thu Jan 11, 2018 6:45 pm

Might be an issue with CKEditor. See from the categories and products in the admin if the same issue occurs. If so, to look if there's an extension on the marketplace for rich text editors that could replace the one being used from the core noticing different results while you post.

You can also try the following in your admin/controller/marketing/contact.php file after the <?php line:

Code: Select all

echo 'test123';
Clear your OC cache and notice if the test123 appears on top of your page in the contact page. If not, contact your host.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by fietsknecht » Sun Sep 13, 2020 6:14 pm

Had the same problem. Disabled CKeditor and now it works. Still looking for a real solution...

Newbie

Posts

Joined
Fri Dec 27, 2019 9:03 pm

Post by straightlight » Sun Sep 13, 2020 7:44 pm

Already fixed on the master branch.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: ianhaney50 and 62 guests