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

[5.4] fix Call to undefined method resourcePath() #15708

Closed
wants to merge 1 commit into from
Closed

[5.4] fix Call to undefined method resourcePath() #15708

wants to merge 1 commit into from

Conversation

xcaptain
Copy link
Contributor

@xcaptain xcaptain commented Oct 2, 2016

lumen 5.3 app doesn't have resourcePath method, use basePath instead

[2016-10-02 15:14:43] lumen.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Laravel\Lumen\Application::resourcePath() in /var/www/proj1/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:71
Stack trace:

0 /var/www/proj1/vendor/laravel/framework/src/Illuminate/Pagination/PaginationServiceProvider.php(16): Illuminate\Support\ServiceProvider->loadViewsFrom('/var/www/proj1-...', 'pagination')

1 [internal function]: Illuminate\Pagination\PaginationServiceProvider->boot()

2 /var/www/proj1/vendor/laravel/framework/src/Illuminate/Container/Container.php(508): call_user_func_array(Array, Array)

3 /var/www/proj1/vendor/laravel/lumen-framework/src/Application.php(177): Illuminate\Container\Container->call(Array)

4 /var/www/proj1/vendor/laravel/lumen-framework/src/Application.php(563): Laravel\Lumen\Application->register(Object(Illuminate\Pagination\PaginationServiceProvider))

5 /var/www/proj1/vendor/laravel/lumen-framework/src/Application.php(315): Laravel\Lumen\Application->loadComponent('database', Array, 'db')

6 /var/www/proj1/vendor/laravel/framework/src/Illuminate/Container/Container.php(746): Laravel\Lumen\Application->Laravel\Lumen{closure}(Object(Laravel\Lumen\Application), Array)

7 /var/www/proj1/vendor/laravel/framework/src/Illuminate/Container/Container.php(644): Illuminate\Container\Container->build(Object(Closure), Array)

8 /var/www/proj1/vendor/laravel/lumen-framework/src/Application.php(211): Illuminate\Container\Container->make('db', Array)

9 /var/www/proj1/vendor/laravel/lumen-framework/src/Application.php(674): Laravel\Lumen\Application->make('db')

10 /var/www/proj1/bootstrap/app.php(41): Laravel\Lumen\Application->withEloquent()

11 /var/www/proj1/public/index.php(14): require('/var/www/proj1-...')

12 {main}

lumen 5.3 app doesn't comes with `resourcePath` method, use `basePath`
instead
@GrahamCampbell
Copy link
Member

Please send this to 5.3 rather than 5.4.

@GrahamCampbell GrahamCampbell changed the title [5.3] fix Call to undefined method resourcePath() [5.4] fix Call to undefined method resourcePath() Oct 2, 2016
@xcaptain
Copy link
Contributor Author

xcaptain commented Oct 2, 2016

@GrahamCampbell You mean I should make a new merge request to branch 5.3 rather than master?

@GrahamCampbell
Copy link
Member

No, since that'll have 5.4 commits in it. You'll need to cherry-pick your commit onto a 5.3 based branch first.

@xcaptain
Copy link
Contributor Author

xcaptain commented Oct 2, 2016

@GrahamCampbell In my local repo I first run git checkout -b 5.3 and then git pull upstream 5.3, but the 5.3 branch has conflicts with master branch So I can't apply this fix in my local repo, can you be more specific about what should I do or can you fix this bug for me ?

xcaptain added a commit to xcaptain/framework that referenced this pull request Oct 6, 2016
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

Successfully merging this pull request may close these issues.

2 participants