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

Uncaught ValueError: Path cannot be empty #3265

Closed
AndrewDawnbringer opened this issue Mar 11, 2021 · 6 comments
Closed

Uncaught ValueError: Path cannot be empty #3265

AndrewDawnbringer opened this issue Mar 11, 2021 · 6 comments

Comments

@AndrewDawnbringer
Copy link

AndrewDawnbringer commented Mar 11, 2021

Hey. Fresh install, and I get HTTP 500 when I try to upload any .zip in the Toolbox. This is from apache error.log:

[Thu Mar 11 15:17:53.917075 2021] [php:notice] [pid 1195] [client xxx.xxx.xxx.xxx:xxxx] 
PHP Fatal error:  Uncaught ValueError: Path cannot be empty in /var/www/xxx.com/vendor/nyholm/psr7/src/Factory/Psr17Factory.php:38\nStack trace:
#0 /var/www/xxx.com/vendor/nyholm/psr7/src/Factory/Psr17Factory.php(38): fopen()
#1 /var/www/xxx.com/vendor/kodus/psr7-server/src/ServerRequestCreator.php(194): Nyholm\Psr7\Factory\Psr17Factory->createStreamFromFile()
#2 /var/www/xxx.com/vendor/kodus/psr7-server/src/ServerRequestCreator.php(166): Nyholm\Psr7Server\ServerRequestCreator->createUploadedFileFromSpec()
#3 /var/www/xxx.com/vendor/kodus/psr7-server/src/ServerRequestCreator.php(76): Nyholm\Psr7Server\ServerRequestCreator->normalizeFiles()
#4 /var/www/xxx.com/vendor/kodus/psr7-server/src/ServerRequestCreator.php(54): Nyholm\Psr7Server\ServerRequestCreator->fromArrays()
#5 /var/www/xxx.com/system/src/Grav/Common/Service/RequestServiceProvider.php(39): Nyholm\Psr7Server\ServerRequestCreator->fromGlobals()
#6 /var/www/xxx.com/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\RequestServiceProvider->Grav\Common\Service\{closure}()
#7 /var/www/xxx.com/system/src/Grav/Common/Config/Setup.php(183): Pimple\Container->offsetGet()
#8 /var/www/xxx.com/system/src/Grav/Common/Service/ConfigServiceProvider.php(38): Grav\Common\Config\Setup->__construct()
#9 /var/www/xxx.com/vendor/pimple/pimple/src/Pimple/Container.php(118): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service\{closure}()
#10 /var/www/xxx.com/system/src/Grav/Common/Grav.php(203): Pimple\Container->offsetGet()
#11 /var/www/xxx.com/system/src/Grav/Common/Grav.php(244): Grav\Common\Grav->setup()
#12 /var/www/xxx.com/index.php(58): Grav\Common\Grav->process()
#13 {main}\n  thrown in /var/www/xxx.com/vendor/nyholm/psr7/src/Factory/Psr17Factory.php on line 38, referer: https://xxx.com/hu/admin/tools/direct-install

Debian 10.0, Apache2, Grav reports all green, PHP 8.0.3

@AndrewDawnbringer
Copy link
Author

Forgot to mention: grav 1.7.7. and admin 1.10.6

@AndrewDawnbringer
Copy link
Author

I also tried with an official plugin (shortcode) and it's installed correctly from the zip. Could be the .zip file was wrong in some way?
Suspect: https://github.com/gantry/gantry5/releases/download/5.4.37/grav-tpl_g5_helium_v5.4.37.zip

@mahagr
Copy link
Member

mahagr commented Mar 12, 2021

We used an old version (or fork) from a library, this should be fixed for the next release.

@mahagr
Copy link
Member

mahagr commented Mar 12, 2021

I think it was caused from filesize limit in PHP, but please test upload with the old limit to be sure this is fixed. :)

@AndrewDawnbringer
Copy link
Author

I think it was caused from filesize limit in PHP, but please test upload with the old limit to be sure this is fixed. :)

I'm not sure what was the file size, but upload limit was 25MB in php.ini
If the .zip is still the same, it's around 4MB.
[ Meanwhile I managed to download Gantry from the Plugins section inside Grav admin, so in the end I don't needed this ]

Thanks for looking into it anyway.

@rhukster
Copy link
Member

released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants