create cron task gives Error

  • Posts: 20
  • Thank you received: 0
8 years 4 months ago #246426

-- HikaShop version -- : 2.6.1

Hello,
I am trying to Create the Cron job and since I have SEF activated I use the followin gURL:
mysite.comg/component/hikashop/cron
But this gives the following error:
Error triggering your website on the url: mysite.com/component/hikashop/cron
It also notifies that:
We changed your url into: mysite.com/component/hikashop/cron which is apparently the right one
On the other side I get the CRON emails on every 15 min.

Could you please verify that I am using the correct SEF translated URL? Not sure how to translate the "?ctrl=cron" part
Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 4 months ago #246437

Hi,

You actually don't need to use a SEF URL for the cron task.
SEF URLs are useful for two things:
- displaying a nice URL to the users
- providing SEF URLs to search engines for better referencing
But for the cron task, no user will see it and the search engines won't either.
And the non SEF URLs still work even with you activate the SEF. So there is no need to change the cron URL. You should leave the default one that HikaShop generates for you.
The ?ctrl=cron part of the non SEF URL is converted to just "/cron" for the SEFed URL.

The following user(s) said Thank You: tesla

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
8 years 3 months ago #246511

Thank you!
If I keep the default URL it still gives the same error. That is the primary reason to start playing with the URL.

What I am after is to utilize the functionality of the waitlist. Wait List plugin is active. I see under Customers Waitlist who is waiting for what. Once the quantity is changed (just for the test I manually change the quantity of one of the products) and the CRON is activated I see in the CRON report "Waitlist notifies checked" and the record is no longer in the Waitlist, BUT no email is received by the customer, neither email is sent to the customer (checked the Sent Email Folder).

Is this somehow related to the above error and Could you help troubleshooting the issue?
Thank you!

Last edit: 8 years 3 months ago by tesla.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 3 months ago #246513

Hi,

I've check on our end for your cron task, and it looks like it's running properly. So there should be nothing left to do to make it work.
That means that the problem is with the email sending.
Enable the email history plugin via the Joomla plugins manager if not already done and do a test again. Then, you can go in the menu Users>Email history and you can check that the email has been sent by HikaShop.
If you see it there, then it has been sent by HikaShop.
And if you didn't receive it, it either went in your spam folder, or your email server had a problem sending the email.
You would have to check the log of the email server (probably need to ask your hosting for that and provide them with a screenshot of the email history details about the email so that they can easily find the log corresponding). It should contain the necessary information regarding why the email didn't reach its destination.

Last edit: 8 years 3 months ago by nicolas.
The following user(s) said Thank You: tesla

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
8 years 3 months ago #246701

You rock, this is great troubleshooting information about CRON/ Waitlist Email issues.

I checked Email history, emails are there. I checked with Hosting porvider and here is where it becomes interesting.
They have checked the logs and they say that there is no such email received to the mailserver <UPDATE: this doesn't sound right, see my next post>

I tried with another receipent and the system (Hikashop) sends Wait List Notification and the recepient receives it. So, in general there is no problem with the Mail Server.

I tested sending emails through webmail client (HORDE) to the problematic email recepient and the email is received, so it is not the problem with the recepeint's email, either ...

The problematic email is like This email address is being protected from spambots. You need JavaScript enabled to view it. - the only "strange" thing is the "." in the email.
Please give me some guidence to further troubeshoot the issue.

Thank you!

Last edit: 8 years 3 months ago by tesla.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
8 years 3 months ago #246720

UPDATE:
I finally got some sort of LOG from the Hosting company that may give direction to what the problem is. Here is an extract from the log:

Warning: "SpamAssassin as cpaneleximscanner detected OUTGOING not smtp message as NOT spam (0.8)"
.............
[IP] SSL verify error: depth=2 error=self signed certificate in certificate chain ...........
2016-07-29 13:38:10 1bT5B6-003mwj-QL [IP] SSL verify error: certificate name mismatch: "/O=Company/OU=IT/CN=TMIMSVA.xx.yyy.zzz"
2016-07-29 13:38:10 1bT5B6-003mwj-QL => This email address is being protected from spambots. You need JavaScript enabled to view it. R=lookuphost T=remote_smtp H=mx2.Company.com .....

Last edit: 8 years 3 months ago by tesla.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
8 years 3 months ago #246737

Hi,

First, note that there are two email servers that play a role there:
1. The email server of your web server which sends the email for your website
2. The email server of your recipient domain name which receives the email
Both can be the same email server if you're sending an email from your website to an email address of the domain name of your website.
So this sentence is a bit vague:

They have checked the logs and they say that there is no such email received to the mailserver

Are they talking about the email server sending the email ? Or the email server receiving the email ?

But as I understand you tried with another email address and it worked, and even for the email address where it didn't work, you still got the email in the email history of HikaShop. So the problem is not with HikaShop. You'll have to see with the settings of the sending or receiving email server and we won't be able to help you further with that matter.

Regarding the log they gave, it says that the receiving email server has a SSL certificate that has been self-signed and not signed by a trusted authority. So I would wagger that you're using an email address of your domain name which isn't using a properly configured SSL certificate and thus the email sending is refused.
You'll have to check that with the person whon put in place the SSL certificate.
There is a free service now available to sign certificates so it doesn't cost anything (beside the time spent doing it) to properly sign a certificate:
letsencrypt.org/

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum