Cron Job Warning and Not Run as Scheduled

I made a module for one of the Turkish marketplaces which collects orders from the marketplace and add order into the dolibarr, everything works as expected when i run my code manually. It creates order, makes it delivered, make it invoiced, creates the user etc…

However when i try to create a scheduled job, everything seems okay when i run it manually. And when the next run of the cronjob comes it just places a yellow warning to the job.

If i run my code manually and make it return 0 after running the code everything seems okay till to the next run.

PS: i already set the cron using cpanel, and also trying to manually run with this url https://xxx.com.tr/public/cron/cron_run_jobs_by_url.php?securitykey=xxxx&userlogin=napolyon&id=19

Hi,

Have you tried to run the cron command on the server to see what happens?
Maybe a class not loaded with cron script but loaded when called from browser.

See your server logs, maybe 500 error.

Codes work as expected when click to play button which runs the cron job.

However when i call by URL its not working as expected. If i run manually with cron_run_jobs_by_url.php or ssh, nothing changes with cron jobs just gives an error.

I printed the page and codes however no problem and when i run the function with another URL manually everything works as should be.