-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codes don't work? #78
Comments
Hi @garsamba do you get any error back? I would start by debugging the above, you can add a var_dump(file_exists(__DIR__.'/vendor/autoload.php'));
var_dump(file_exists('test.php')); and then manually execute the scheduler, if you get Hope this helps |
Results: bool(true) bool(true) I'm renewing the page manually but I can't get any results. |
are you running your scheduler with cron? |
i tried both, page refresh and https://cron-job.org/ crontab, but I didn't get the result |
did you try your local crontab file? Don't know if scheduler have some limitation on running via web. |
yes test.php file is processing when I refresh it manually |
Would you like to check with teamviewer? |
Your scheduler (calling test.php each minute) run using your cron file? Just following the project's front page instructions? Try this (not refreshing a page) to see if it works. |
yes using -> https://prnt.sc/mpu3hs |
I see. That is not using the crontab file, this is using an external service. You could as well call test.php straight from cron-job.org I don't know if scheduler is designed to work with this. Maybe @peppeocchi quem shed some light on this. |
Why do we need to do a cron, page refresh? |
i tried these codes on another server which is installed php version 5.4.45. Codes are working great there. Do you think this script doesnt work on my server because my php version is 7.0.33 ? |
@garsamba I don't think that's the issue, the code is tested against php 7.0, 7.1 and 7.2 I believe you have different configurations on the two servers? Can you schedule to run a simple Closure? And then run I would also compare the php .ini files between the two servers. |
i compared both php.ini and there is no huge difference. i fixed different functions and its still doesnt work. also i dont have any log in server log files about it. |
in your cron try |
I comment on my experience: Also if you use xampp you have to refine the consistent PHP_BINARY with your php binary at the beginning of your scheduler.php script. For example: |
Im trying to use following code but it never worked for me. Is it possible to you help me to find my problem in this code ?
The text was updated successfully, but these errors were encountered: