*

pietkei

  • ***
  • 69 posts
Who has the cronjob working?
« on: February 08, 2021, 12:49:38 PM »
I started another thread a while back because the Cronjob on my server did not work as it should.
Despite all help and information the Cronjob is not functioning and the thread became very confusing that's why this new topic.
(I hope the moderator don't mind)
https://forums.osclasspoint.com/osclass/alert-function-not-sending-emails/


My last attempt to get the Cronjob working i have one final question:

Who has the Cronjob working and which code did you use?

All help is very much appreciated!

OsClass version: 4.2.2.
Theme: Gamma
Website: https://marktplaats24.nl

Marked as best answer by frosticek on February 08, 2021, 01:32:27 PM
*

tomi327

  • ***
  • 66 posts
Re: Who has the cronjob working?
« Reply #1 on: February 08, 2021, 01:23:00 PM »

*

MB Themes

Re: Who has the cronjob working?
« Reply #2 on: February 08, 2021, 01:33:49 PM »
Unix may have different formula for parameter ?page=cron, best to check docs/hosting

It is not same as just index.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pietkei

  • ***
  • 69 posts
Re: Who has the cronjob working?
« Reply #3 on: February 08, 2021, 02:14:50 PM »
Unix may have different formula for parameter ?page=cron, best to check docs/hosting

It is not same as just index.php

Not working for me, i refer to what my host told me before:

Apparently we are calling the wrong file: such protection is there to see if the PHP script runs within a certain 'scaffolding', within another application. The identifier of this application is absent and probably nothing will be executed because of this. What instructions do you have from the developer of your script?
 

I tried this settings as well:
/opt/alt/php73/usr/bin/php /home/u43825p39641/domains/marktplaats24.nl/public_html/index.php -p cron -t hourly 
--------------------------------------------------------------

/opt/alt/php73/usr/bin/php /home/u43825p39641/domains/marktplaats24.nl/public_html/oc-includes/osclass/cron.php -p cron -t hourly

Gives this error: ABS_PATH is not loaded. Direct access is not allowed.
--------------------------------------------------------------

/opt/alt/php73/usr/bin/php /home/u43825p39641/domains/marktplaats24.nl/public_html/index.php?page=cron -p cron -t hourly 

--------------------------------------------------------------
« Last Edit: February 08, 2021, 02:33:44 PM by pietkei »

*

MB Themes

Re: Who has the cronjob working?
« Reply #4 on: February 08, 2021, 04:43:01 PM »
@pietkei
/opt/alt/php73/usr/bin/php /home/u43825p39641/domains/marktplaats24.nl/public_html/index.php -p cron -t hourly
--> wrong, missing parameter page=cron

/opt/alt/php73/usr/bin/php /home/u43825p39641/domains/marktplaats24.nl/public_html/oc-includes/osclass/cron.php -p cron -t hourly
--> wrong, it's different php page/script

/opt/alt/php73/usr/bin/php /home/u43825p39641/domains/marktplaats24.nl/public_html/index.php?page=cron -p cron -t hourly
--> wrong, I do not thing ?page=cron will work in cron command.


I am pretty sure this command would be OK:
/opt/alt/php73/usr/bin/php /home/u43825p39641/domains/marktplaats24.nl/public_html/index.php page=cron -p cron -t hourly


but that should tell you hosting provider, it's their cron tab.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots