pH7-Social-Dating-CMS: Cron error: file not found
I made a cron like the example in the docs, but then for the birthdays, like this:
10 0 * * * "GET https://domain.com/asset/cron/24h/Birthday/?secret_word=xxxxxxxxxxxx"
So it should run every night at 00.10 hours.
But now I got an e-mail stating:
/bin/sh: GET https://domain.com/asset/cron/24h/Birthday/?secret_word=xxxxxxxxx: No such file or directory
I do meet the requirements as far as I could see and curl is present on the server, but the GET command is not. I guess. When I use GET in SSH it says:
-bash: get: command not found
Am I missing something or doing something wrong here?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 27 (18 by maintainers)
Hi @BlackTiger63 You second cron config is correct (https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/233#issuecomment-404339835).
Your problem looks similar to https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/182
.htaccessmight block the user-agent “curl”. Try to remove https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/master/.htaccess#L176 in the root .htaccessOr, if this still doesn’t work, please check if mod_security/mod_security2 is enable (if so, please disable it; you can ask your web host for this).
Finally, @BlackTiger63 please let us know if this work. Thanks in advance!