-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Platform
macOS
Operating system version
macOS Tahoe 26.1
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.24.2 (Build 59)
PHP Version
PHP 8.2.30
Bug description
MyBB 1.9 works as expected on standard PHP 8.x environments (e.g., XAMPP, Laragon, Apache/PHP-FPM). However, when running the same version of MyBB on a Laravel Herd PHP environment, the following error occurs:
Error: Cannot use object of type BeyondCode\HerdConfiguration\HerdConfiguration as array
This appears to be caused by Herd injecting the HerdConfiguration object into the PHP runtime, which conflicts with MyBB’s array-based configuration. MyBB expects its configuration to be an array, but Herd provides a configuration object, resulting in a error when MyBB attempts array access.
The same MyBB code and PHP version work correctly outside of Herd, suggesting that this issue is specific to the Laravel Herd environment.
Steps to reproduce
- Install Laravel Herd on a system with PHP 8.x
- Deploy MyBB 1.9 to a site within Herd
- Access the MyBB site in a browser