Skip to content

Appstarter is not working after installation #1941

Closed
@diegoldev

Description

@diegoldev

Describe the bug
When appstarter installation is finished, a blank page is displayed instead Welcome Home.
It's not an error 500, it think is related to the output buffer.

CodeIgniter 4 version
CI4-beta.2

Affected module(s)
Views

Expected behavior, and steps to reproduce if appropriate
The expected behavior is see the Welcome Page (and/or other pages)

The steps to reproduce the issue are:

  1. Run 'composer create-project codeigniter4/appstarter my-project -s beta'
  2. Update Config/App.php with the regarding $baseUrl and remove $indexPage value
  3. When you try to access via browser to the site, you will get a blank page.

As previously said: The problem is in Config/Events.php
For some reason,in https://github.com/codeigniter4/CodeIgniter4/blob/develop/app/Config/Events.php#L25, if I change ob_end_flush() by ob_get_clean() or ob_end_clean() the problem is solved. I don't know why, since both function do similar stuff.

Context

  • OS: Debian on Docker Container (Host Machine: Windows 10)
  • Web server [Apache 2]
  • PHP version [7.3]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions