×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Cron Jobs

Cron Jobs 8 years 10 months ago #33326

  • Oliver Stöckl
  • Oliver Stöckl's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi, I set up the CronJobs on the server and my Client wants to be advised 2 weeks before the event if the number of attendees is under 5.
The minimum participant of 5 is in the event, how do send an alert to an Email?
In the screen attached I only see limited possibilities.
In the second screen, my server cron setup.

Ho w can I set this up?

Thanks in advance,

W. Brandhoff
Attachments:

Cron Jobs 8 years 10 months ago #33363

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi,

first just set the cronjob up so it is only triggered ONCE per day. You just activate the setting for the reminder cronjob as you did. But this email is going to every user on the joomla system, as it is a reminder for users and not for organizers / admins.

Kind regards,
Yves

P.S. Weiter unten ist auch ein deutschsprachiges Forum für Matukio

Cron Jobs 8 years 10 months ago #33369

  • Oliver Stöckl
  • Oliver Stöckl's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi and thanks. I live in Germany but am Canadian so this Forum is fine. I set the Cronjob to once a day and the person it needs to be forwarded to is a Joomla user.
I will set up a test now and if I have any further questions I will contact you.
Once all is Ok we will rate the product.

Wolfram

Cron Jobs 8 years 10 months ago #33372

  • Oliver Stöckl
  • Oliver Stöckl's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi again,
I set up a test with no bookings for tommorow. The Cron Job set at 12 today and i got this notice:

Starting Matukio cronjobs
Checking free places
Loaded 0 events for free places reminder
Automatic cancellation / confirmation of events
Loaded 0 events for auto confirmation
Matukio Cron job complete

Shouldnt I get a reminder that the TEST Event doesnt have enough members?

Thanks again

Cron Jobs 8 years 10 months ago #33373

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
This task is not every day BEFORE the start, but X day ONCE before the start.

So you probably need to set the date 14 days in the future ;)

Yves

Cron Jobs 8 years 10 months ago #33374

  • Oliver Stöckl
  • Oliver Stöckl's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Great, thanks. I set an event for the 17th of February with the latest sign up set for tommorow with no members signed up.
I will wait till the cronjob gets sent out tommorow at 12.
I will get back to you and thanks again.
Wolfram

Cron Jobs 8 years 10 months ago #33402

  • Oliver Stöckl
  • Oliver Stöckl's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi again,

I should get notified that an event did not have enough members at the 2 week limit.
But the Cron notice had the following error:

Starting Matukio cronjobs
Checking free places
Loaded 1 events for free places reminder
Sending notifying email
PHP Fatal error: Call to a member function getFields() on boolean in /html/schulungromantikhotelscom/administrator/components/com_matukio/helpers/util_templates.php on line 333

Fatal error: Call to a member function getFields() on boolean in /html/schulungromantikhotelscom/administrator/components/com_matukio/helpers/util_templates.php on line 333

I dont think the Mail was sent

this in the file from line331-342:

if (self::$eventCustomFields == null)
{
$cefields = $customFieldsModel->getFields('com_matukio.%', $event->catid, "LIKE");

self::$eventCustomFields = array();

// Make a new array that has the slug for key
foreach ($cefields as $field)
{
self::$eventCustomFields[$field->slug] = $field;
}
}
Thanks in advance

Wolfram

Cron Jobs 8 years 10 months ago #33403

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Wolfram,

hmm there is a model load missing for the cli. (util_templates has been changed with the last update and this has not been integrated).

Will be fixed with the next version.

Cheers,
Yves

Cron Jobs 8 years 10 months ago #33417

  • Oliver Stöckl
  • Oliver Stöckl's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Great, but is there any way of patching it now?
I will have tell my client something.
Cheers,
Wolfram

Cron Jobs 8 years 10 months ago #33450

  • Oliver Stöckl
  • Oliver Stöckl's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hi Yves,

I get the following notice from This email address is being protected from spambots. You need JavaScript enabled to view it.

Sehr geehrter Hostingkunde,
der Aufruf Ihres Cronjobs 'Romantik Schulung Matukio Events' endete mit folgendem Fehlercode.
Fehlercode: 255
Zusätzlich wurde eine Ausgabe erzeugt. Diese können Sie zur weiteren Prüfung dem Anhang entnehmen.
Bitte überprüfen Sie Ihre Einstellungen, damit Ihr Cronjob ordnungsgemäß ausgeführt wird.
Bei Fragen zu diesem Thema wenden Sie sich gerne an unser Support Team.
Mit freundlichen Grüßen
Ihr Support Team

and again the following error:

Starting Matukio cronjobs
Checking free places
Loaded 1 events for free places reminder
Sending notifying email
PHP Fatal error: Call to a member function getFields() on boolean in /html/schulungromantikhotelscom/administrator/components/com_matukio/helpers/util_templates.php on line 333

Fatal error: Call to a member function getFields() on boolean in /html/schulungromantikhotelscom/administrator/components/com_matukio/helpers/util_templates.php on line 333

Where can I refer to get the CronJob working?

Thanks again,

W. Brandhoff

Cron Jobs 8 years 10 months ago #33451

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Wolfram,

sorry for the late response. The error in the cli script is a bit more complex, so it's more change then just a one liner..

If you want you can just copy the cli file from the latest development release (Downloads -> Developer ). This should work. Else wise you have to wait for the next version, which is hopefully coming out during that month.

Kind regards,
Yves

Cron Jobs 8 years 9 months ago #33466

  • Oliver Stöckl
  • Oliver Stöckl's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Thanks, i will give it a try.
  • Page:
  • 1
Time to create page: 0.170 seconds