Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Installer script fails if host has php 8.0

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php, shell
Domain
cli, devops

Research direction

Start with the installer flow that produces /usr/local/bin/ee and inspect vendor/easyengine/site-command/src/Site_Command.php around line 46, where add_site_type() fails under PHP 8.0. Reproduce the installation on a host with PHP 8.0 and trace how that packaged file is sourced. Done means the installer completes without the null-property fatal error.

Written by the indexing model from the issue text.

Description

Here's the partial log. This info is enough to pinpoint the bug.

2020-12-22 12:14:54 (37.9 MB/s) - ‘/usr/local/bin/ee’ saved [6120310/6120310]

-----> Pulling EasyEngine docker images
-----> Pulling EasyEngine docker images
PHP Fatal error:  Uncaught Error: Attempt to modify property "site_types" on null in phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/S
ite_Command.php:46
Stack trace:
#0 phar:///usr/local/bin/ee/vendor/easyengine/site-command/site-command.php(36): Site_Command::add_site_type()
#1 phar:///usr/local/bin/ee/vendor/composer/autoload_real.php(73): require('...')
#2 phar:///usr/local/bin/ee/vendor/composer/autoload_real.php(63): composerRequirea33f4a6479723a19537fd4af2a7c834a()
#3 phar:///usr/local/bin/ee/vendor/autoload.php(7): ComposerAutoloaderInita33f4a6479723a19537fd4af2a7c834a::getLoader()
#4 phar:///usr/local/bin/ee/php/EE/Bootstrap/AutoloaderStep.php(42): require('...')
#5 phar:///usr/local/bin/ee/php/bootstrap.php(75): EE\Bootstrap\AutoloaderStep->process()
#6 phar:///usr/local/bin/ee/php/init-ee.php(27): EE\bootstrap()
#7 phar:///usr/local/bin/ee/php/boot-phar.php(8): include('...')
#8 /usr/local/bin/ee(5): include('...')
#9 {main}
  thrown in phar:///usr/local/bin/ee/vendor/easyengine/site-command/src/Site_Command.php on line 46
Dominant language
Shell
Stars
7
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EasyEngine/installer

All issues in EasyEngine/installer

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.