Update theme system loading to only be loaded once #4875

Open
opened 2026-02-05 09:23:18 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @ssddanbrown on GitHub (Jul 17, 2024).

Or at least work with certain artisan commands like config caching.
For some reason that seems to be calling our functions.php loading twice, which throws error when functions are in the logical theme file, since it'll attempt to re-define them.
Maybe check this is odd behaviour on the Laravel side, and not us.
Otherwise, check if using require_once would have issues.

Related to #5121

Originally created by @ssddanbrown on GitHub (Jul 17, 2024). Or at least work with certain artisan commands like config caching. For some reason that seems to be calling our `functions.php` loading twice, which throws error when functions are in the logical theme file, since it'll attempt to re-define them. Maybe check this is odd behaviour on the Laravel side, and not us. Otherwise, check if using require_once would have issues. Related to #5121
OVERLORD added the 🔧 Maintenance🏭 Back-End🔍 Pending Validation labels 2026-02-05 09:23:18 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#4875