Skip to content

[Bug]: Configuration object injected by Herd causes error in MyBB 1.9 #1609

@tedemedet

Description

@tedemedet

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

  1. Install Laravel Herd on a system with PHP 8.x
  2. Deploy MyBB 1.9 to a site within Herd
  3. Access the MyBB site in a browser

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions