PHP versions?
Laravel 5 Pagination Error in Production
Hi,
Anyone experienced this?
It occurs in production...
FatalErrorException in LengthAwarePaginator.php line 126:
Access to undeclared static property: Illuminate\Pagination\LengthAwarePaginator::$presenterResolver
working in homestead and localhost.
Also, someone has the same issue from stackoverflow.
http://stackoverflow.com/questions/29117020/laravel-5-render-pagination-error
php -v
PHP 5.5.21 (cli) (built: Jan 23 2015 01:30:54)
In my situation i was need to delete: compiled.php in storage\framework
then run composer update -vvv
and ... error disrepair
I will give a try. :)
Update
See my post below. I'm leaving this here in case anyone else comes across this and it helps them.@Jinggo did you get it sorted?
I am deploying using Forge and I am having the same issue.
When I run composer update -vvv I get the following
Reading ./composer.json
Loading config file ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Failed to initialize global composer: Composer could not find the config file: /home/forge/.composer/composer.json
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section
Loading composer repositories with package information
Downloading https://packagist.org/packages.json
Writing /home/forge/.composer/cache/repo/https---packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /home/forge/.composer/cache/repo/https---packagist.org/p-provider-2013.json from cache
Reading /home/forge/.composer/cache/repo/https---packagist.org/p-provider-2014.json from cache
Reading /home/forge/.composer/cache/repo/https---packagist.org/p-provider-2014-04.json from cache
Reading /home/forge/.composer/cache/repo/https---packagist.org/p-provider-2014-07.json from cache
... REMOVED A LOT OF REPEATING
Reading /home/forge/.composer/cache/repo/https---packagist.org/provider-illuminate$validation.json from cache
Reading /home/forge/.composer/cache/repo/https---packagist.org/provider-symfony$expression-language.json from cache
Reading /home/forge/.composer/cache/repo/https---packagist.org/provider-colinodell$commonmark-php.json from cache
- Removing nikic/php-parser (v1.1.0)
The following exception is caused by a lack of memory and not having swap configured
Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details
PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:974
Stack trace:
#0 [internal function]: Composer\Util\ErrorHandler::handle(2, 'proc_open(): fo...', 'phar:///usr/loc...', 974, Array)
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(974): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(784): Symfony\Component\Console\Application->getSttyColumns()
#3 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(745): Symfony\Component\Console\Application->getTerminalDimensions()
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php(675): Symfony\Component\Console\Application->getTerminalWidth()
#5 phar:///usr/local/bin/com in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 974
Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 974
ErrorException: proc_open(): fork failed - Cannot allocate memory in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php on line 974
Call Stack:
0.0006 225264 1. {main}() /usr/local/bin/composer:0
0.0134 403968 2. require('phar:///usr/local/bin/composer/bin/composer') /usr/local/bin/composer:25
0.0818 3483536 3. Composer\Console\Application->run() phar:///usr/local/bin/composer/bin/composer:43
0.0883 3799200 4. Symfony\Component\Console\Application->run() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:84
39.3748 192095120 5. Composer\Console\Application->renderException() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:133
39.3758 192096184 6. Symfony\Component\Console\Application->renderException() phar:///usr/local/bin/composer/src/Composer/Console/Application.php:209
39.3759 192096632 7. Symfony\Component\Console\Application->getTerminalWidth() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:675
39.3759 192096784 8. Symfony\Component\Console\Application->getTerminalDimensions() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:745
39.3760 192096880 9. Symfony\Component\Console\Application->getSttyColumns() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:784
39.3760 192098840 10. proc_open() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:974
39.3762 192100000 11. Composer\Util\ErrorHandler::handle() phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:974
@job73 It works :)
I know this is old but I just ran into it on a 5.3 site with Nginx - my rewrite was wrong on production but correct everywhere else.
I had:
location / {
try_files $uri $uri/ /index.php$args;
on production - which worked for everything EXCEPT this
Should have been:
location / {
try_files $uri $uri/ /index.php?$args;
See the missing ? - I do... now.
Please or to participate in this conversation.