Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant error when running pub/index.php #588

Closed
ldusan84 opened this issue Jun 13, 2014 · 4 comments
Closed

Constant error when running pub/index.php #588

ldusan84 opened this issue Jun 13, 2014 · 4 comments
Assignees

Comments

@ldusan84
Copy link
Contributor

When I run pub/index.php I get the following error:

Fatal error: Undefined class constant 'PUB_LIB_DIR' in /var/www/magento2/pub/index.php on line 33

On line 33 of pub/index.php there is:

$params[Filesystem::PARAM_APP_DIRS][Filesystem::PUB_LIB_DIR] = array('uri' => 'lib');

And the constant Filesystem::PUB_LIB_DIR does not exist in Magento\Framework\App\Filesystem. So I think that line is not needed.

@verklov verklov self-assigned this Jun 13, 2014
@verklov
Copy link
Contributor

verklov commented Jun 13, 2014

@ldusan84, I just added the ticket to the backlog. We will get back to you once we finish investigating. Thanks for reporting this issue!

@tim-bezhashvyly
Copy link

Another undefined constant is PUB_VIEW_CACHE_DIR. And yes, they don't seem to be used anywhere so can be safely removed.

@tim-bezhashvyly
Copy link

Confirming that this issue is resolved in -dev82 and can be closed.

@verklov
Copy link
Contributor

verklov commented Jun 23, 2014

Thank you, @tim-bezhashvyly! Closing the issues as resolved.

@verklov verklov closed this as completed Jun 23, 2014
mazhalai added a commit that referenced this issue Sep 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants