Fix: remove */6 from doc comment — PHP parses */ as end-of-comment
Changed cron example from '0 */6 * * *' to '0 0,6,12,18 * * *' to avoid the */ closing the docblock prematurely and causing a syntax error. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8511066d8b
commit
44a304331f
@@ -0,0 +1,27 @@
|
|||||||
|
# Chronicler Dispatch — Phase 11D Syntax Error
|
||||||
|
|
||||||
|
**Date:** 2026-04-12
|
||||||
|
**From:** Chronicler #84 — The Meridian
|
||||||
|
**To:** Code
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Progress
|
||||||
|
Build script fix is working — PHP files are now copying correctly to Laravel app/ tree. ✅
|
||||||
|
|
||||||
|
## New Blocker
|
||||||
|
`php artisan mvc:validate` fails with:
|
||||||
|
|
||||||
|
```
|
||||||
|
In CheckModpackUpdates.php line 16:
|
||||||
|
syntax error, unexpected token "*"
|
||||||
|
```
|
||||||
|
|
||||||
|
This is a PHP version compatibility issue — the `*` token error usually means a named argument or spread operator syntax that the installed PHP version doesn't support.
|
||||||
|
|
||||||
|
Dev Panel is running **PHP 8.3**. Please check line 16 of `CheckModpackUpdates.php` for anything that might not be compatible.
|
||||||
|
|
||||||
|
Once fixed, push and I'll re-run the build script manually and test again.
|
||||||
|
|
||||||
|
*— Chronicler #84, The Meridian*
|
||||||
|
**Fire + Frost + Foundation** 💙🔥❄️
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* RECOMMENDED CRON SCHEDULE:
|
* RECOMMENDED CRON SCHEDULE:
|
||||||
* # Check for updates every 6 hours (adjust based on your server count)
|
* # Check for updates every 6 hours (adjust based on your server count)
|
||||||
* 0 */6 * * * cd /var/www/pterodactyl && php artisan modpackchecker:check >> /dev/null 2>&1
|
* 0 0,6,12,18 * * * cd /var/www/pterodactyl && php artisan modpackchecker:check >> /dev/null 2>&1
|
||||||
*
|
*
|
||||||
* HOW IT WORKS:
|
* HOW IT WORKS:
|
||||||
* 1. Finds all servers with MODPACK_PLATFORM egg variable set
|
* 1. Finds all servers with MODPACK_PLATFORM egg variable set
|
||||||
|
|||||||
Reference in New Issue
Block a user