Cron error
2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 13 (RSS)
By hiroko - January 11
Hi,
I just started a new site using the latest CMSB, setting the cron job on my server.
Fatal error: Uncaught TypeError: is_dir(): Argument #1 ($filename) must be of type string, null given in /home/users/0/xxx/web/maris/cmsb/lib/Server.php:188
Somehow, it was sending me error mails, so I tried running manualy.
The last line seems to be an error.
cron_dispatcher_process(): Argument #2 ($cronLastRunTime) must be of type int, string given, called in /home/users/0/xxx/web/maris/cmsb/cron.php on line 115 in /home/users/0/xxx/web/maris/cmsb/cron.php on line 115
What can I do for this?
Thank you,
HIroko
By Dave - January 13
Hi HIroko,
Do you know what version of PHP you are running?
And can you try making these updates and let me know if it resolves it for you?
In /cron.php
- Search for this: cron_dispatcher_process($cron, $cronLastRunTime, $thisCronRunTime);
- Replace it with: cron_dispatcher_process($cron, (int) $cronLastRunTime, $thisCronRunTime);
In /cmsb/lib/Server.php
- Search for // Format and return the web root
- Replace with these two lines:
- // Format and return the web root
- $webRoot ??= '';
Hope that helps, let me know if that resolves the issue or if you're still getting errors.
interactivetools.com