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

php public/index.php returns base path error #27

Open
adarshkhatri opened this issue Oct 7, 2020 · 0 comments
Open

php public/index.php returns base path error #27

adarshkhatri opened this issue Oct 7, 2020 · 0 comments

Comments

@adarshkhatri
Copy link

Bug Report

Summary

When I run php public/index.php it returns this error:

Uncaught Laminas\View\Exception\RuntimeException: No base path provided in vendor\laminas\laminas-view\src\Helper\BasePath.php:37

However, running php public/index.php development enable does work.

I have updated laminas-view and laminas-cache to the latest version but no help.

Is this normal behavior?

Current behavior

Throws error. Uncaught Laminas\View\Exception\RuntimeException: No base path provided in vendor\laminas\laminas-view\src\Helper\BasePath.php:37

api-tools-skeleton>php public/index.php

Fatal error: Uncaught Laminas\View\Exception\RuntimeException: No base path provided in api-tools-skeleton\vendor\laminas\laminas-view\src\Helper\BasePath.php:37
Stack trace:
#0 [internal function]: Laminas\View\Helper\BasePath->__invoke('/img/favicon.pn...')
#1 api-tools-skeleton\vendor\laminas\laminas-view\src\Renderer\PhpRenderer.php(396): call_user_func_array(Object(Laminas\View\Helper\BasePath), Array)
#2 api-tools-skeleton\module\Application\view\layout\layout.phtml(10): Laminas\View\Renderer\PhpRenderer->__call('basePath', Array)
#3 api-tools-skeleton\vendor\laminas\laminas-view\src\Renderer\PhpRenderer.php(505): include('C:\\wamp64\\www\\a...')
#4 api-tools-skeleton\vendor\laminas\laminas-view\src\View.php(206): Laminas\View\Renderer\PhpRenderer->render(NULL)
#5 api-tools-skeleton\vendor\laminas\laminas-mvc\src\View\Http\DefaultRenderingStrategy.php(104): Laminas\View\View->render(Object(Laminas\View\Model\ViewModel))
#6 C:\wamp64\ in api-tools-skeleton\vendor\laminas\laminas-view\src\Helper\BasePath.php on line 37

How to reproduce

Run php public/index.php

Expected behavior

Show the command line tools.

I have double confirmed by creating a fresh skeleton project

laminas-api-tools/api-tools#82 (comment)

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

1 participant