Skip to content

"web setup wizard is not accessible" error message but the setup wizard is actually accessible #920

Closed
@tzyganu

Description

@tzyganu

I got the error message "web setup wizard is not accessible" while accessing a magento 2 instance, before installing.
This error reproduces when I try to install Magento 2 in a folder of the document root.

Preconditions:

  • Magento2 version 0.42.0-beta2
  • Using Xampp on Windows 7 - not sure if this is important
  • Document root of server is D:/path/to/doc_root/
  • base url http://example.com

Steps to reproduce:

Expected result:

Actual result:

  • I get an error message

    Application is not installed yet.
    NOTE: web setup wizard is not accessible.
    In order to install, use Magento Setup CLI or configure web access to the following directory: D:/path/to/doc_root/setup

I did some digging and found that the method Magento\Framework\App\SetupInfo::isAvailable checks if setup is a subfolder of the doc root like this:

$isSubDir = false !== strpos($setupDir . '/', $this->docRoot . '/');

But $this->docRoot already has a slash at the end.
Removing the last slash solve the problem

$isSubDir = false !== strpos($setupDir . '/', $this->docRoot);

Metadata

Metadata

Labels

Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions