• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Schedule email plugins does not work

georgie

Member
Hello

I would use "Schedule emails plugin", but auto-send does not work well (sometimes yes, sometimes no).
However, it works fine when I manually run it.

In the same time, "Schedule PHP plugin" works fine, auto or manually.

But my "Last run" time, in Fabrik admin, have always two hours late (but my "Date" element are alrights), it is not a real problem, just for detail.

Please do you know these kind of problem on schedule email plugin?

THX
 
Take a look at the #__fabrik_log table, see if there's any clues in there. There should be entries with message_type "plg.cron.email".

Are you running these using something like a 'wget' from a UNIX cron job, or are you relying on front end hits? Remember that Fabrik / Joomla doesn't have an actual built in "cron", all we can do is at the end of a front end page load, we run a plugin to see if there are any tasks ready to be run, and run them that way. So if you don't have any hits on your site, it won't run.

-- hugh
 
Hey!

Ok I understand better, thanks.
Look up the fabrik_log table allows me to understand other things on other small problems that I had, many thanks! (but the "timedate" field has few hours later for me, well day, so OK).

Please what do you advice for my emails plugins cron: do this with a Unix cron job? Toward Farik, or without Fabrik?

THX
 
I always recommend using your OS's scheduler (usually 'cron' unless you are running on Windows) and running ...

Code:
wget http://your.site/path/to/joomla?fabrik_cron=something >/dev/null 2>&1

... and setting your 'query string secret' in the plugin settings to 'something' (obviously you can use any word you want).

Then set that cron job to run at the time / frequency you need the job run at.

Also remember that the access which kicks off the cron job is not a logged on user, so if the list you are processing has access controls, it will be "Public" access.

-- hugh
 
Have you tried just running a wget from an ssh command line on your server?

So login with ssh, and run just the wget (without the ">/dev/null 2>&1"), make sure it works. There is sometimes issues with doing https with wget, so if it doesn't work, you can sip the cert check with ...

wget --no-check-certificate https://euromedicom.org/?fabrik_cron=reminderv2

... and see if that fetches a file.

Here's an example of the https issue ... I'm trying without the --no-check-certificate first, but because my cert is self-signed, and because the names don't match, it fails:

Code:
vagrant@vagrant-centos65 ~]$ wget https://localhost/joomla34
--2017-04-21 20:47:26--  https://localhost/joomla34
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:443... connected.
ERROR: cannot verify localhost?s certificate, issued by ?/C=US/ST=Alabama/L=Huntsville/O=Fabrikar/OU=Support/CN=SoS/emailAddress=hugh.messenger@gmail.com?:
  Self-signed certificate encountered.
    ERROR: certificate common name ?SoS? doesn't match requested host name ?localhost?.
To connect to localhost insecurely, use ?--no-check-certificate?.

... so I try again with the no check ...

Code:
[vagrant@vagrant-centos65 ~]$ wget --no-check-certificate https://localhost/joomla34
--2017-04-21 20:48:02--  https://localhost/joomla34
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:443... connected.
WARNING: cannot verify localhost?s certificate, issued by ?/C=US/ST=Alabama/L=Huntsville/O=Fabrikar/OU=Support/CN=SoS/emailAddress=hugh.messenger@gmail.com?:
  Self-signed certificate encountered.
    WARNING: certificate common name ?SoS? doesn't match requested host name ?localhost?.
HTTP request sent, awaiting response... 200 OK
Length: 3060 (3.0K) [text/html]
Saving to: ?joomla34?

100%[======================================>] 3,060       --.-K/s   in 0.001s

2017-04-21 20:48:41 (2.63 MB/s) - ?joomla34? saved [3060/3060]

[vagrant@vagrant-centos65 ~]$

... and it works.

   -- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top