Webcron Bug
- Status
- Closed
- Subject
- Webcron Bug
- Version
- 26.x
- Category
- Error
- Feature
- Date and Time
- Resolution status
- Fixed or Solved
- Submitted by
- Cheatha
- Lastmod by
- Josue Zirimwabagabo
- Rating
- Description
I couldn't use Webcron in 26.2 on Debian 11.9 with PHP 8.2.12, my cronjobs didn't run which caused some problems. After calling the cron-URL I got an error.
I call:Cron URLI get:Copy to clipboardcurl -6 -k https://tiki.exmaple.com/cron.php?token=cb64a63643d1500bb978e612597f5ae8Error MessageCopy to clipboardFatal error: Uncaught TypeError: Unsupported operand types: string + int in /var/www/html/cron.php:53 Stack trace: #0 {main} thrown in /var/www/html/cron.php on line 53
I can fix this by editing cron.php by changingfaulty codetoCopy to clipboardif ($last_cron_run + $cron_interval >= $start_time) {working codeCopy to clipboardif (strtotime($last_cron_run) + $cron_interval >= $start_time) {After that the cronjobs were working again, calling the Webcron-URL resulted in a blank page.
- Solution
- Workaround
- Importance
- 8
- Easy to solve?
- 10 easy
- Priority
- 80
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8603
- Created
- Monday 11 March, 2024 16:20:15 UTC
by Cheatha - LastModif
- Tuesday 14 January, 2025 23:19:31 UTC