Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Grav show blank page

Started by Alberto y cia 7 years ago · 7 replies · 2457 views
7 years ago

I can't remember what I have modified in config, but whatever from sites show nothing, blank page always.

Logs show the following lines:

...
2019/07/28 19:26:10 [error] 30994#30994: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught RuntimeException: Failed to save file /var/www/grav-admin/cache/compiled/blueprints/master-linux.bersol.info.php in /var/www/grav-admin/vendor/rockettheme/toolbox/File/src/File.php:351
Stack trace:

0 /var/www/grav-admin/vendor/rockettheme/toolbox/File/src/PhpFile.php(31): RocketTheme\Toolbox\File\File->save(Array)

1 /var/www/grav-admin/system/src/Grav/Common/Config/CompiledBase.php(252): RocketTheme\Toolbox\File\PhpFile->save(Array)

2 /var/www/grav-admin/system/src/Grav/Common/Config/CompiledBase.php(117): Grav\Common\Config\CompiledBase->saveCompiledFile('/var/www ...')

3 /var/www/grav-admin/system/src/Grav/Common/Service/ConfigServiceProvider.php(77): Grav\Common\Config\CompiledBase->load()

4 /var/www/grav-admin/system/src/Grav/Common/Service/ConfigServiceProvider.php(36): Grav\Common\Service\ConfigServiceProvider::blueprints(Object(Grav\Common\Grav))

5 /var/www/grav-admin/vendor/pimple/pi" while reading response header from upstream, client: 85.87.102.174, server: linux.bersol.info, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "linux.bersol.info:444"

...
Can you help me?
Regards,

7 years ago

I have Website down.
How can I recover it?
I don't care if I lose configs...

I forgot to say I change config with grav-admin plugin...

7 years ago

SOLVED:
I don't know why (perhaps some plugin installation), but "var/www/grav-admin/cache/compiled" directories had root owners:
...
drwxr-xr-x 2 root root 4096 jul 28 16:12 blueprints/
drwxr-xr-x 2 root root 4096 jul 28 16:12 config/
drwxr-xr-x 2 www-data www-data 20480 jul 28 18:54 files/
drwxr-xr-x 2 root root 4096 jul 28 16:12 languages/
...
I've changed to "www-data" and it works again.

7 years ago

Solved, only temporary.

I'm getting this problem several times, I don't know why, some admin change looks do the change, perhaps, but I have to change owner permissions manually many times.

I think it could an admin bug, "clear cache" option perhaps, but I'm not sure.
Regards,

last edited 08/06/19 by Alberto y cia
7 years ago

Permissions problem almost certainly. For the love of all that's holy, use a test server so this won't happen to your live sites.

7 years ago

I know is a permissions problem (I posted this at 28th july).
But the problem is why admin panel change owner of "./cache/compiled" directories to ROOT??

6 years ago

Late answer, but just in case someone stumbles upon this thread.

I faced the same problem on my test instance, after setting up the scheduler cronjob with the root user. This led to permission problems, every time the job was getting executed.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 11 hours ago
Support · by Anna, 3 days ago
2 60 14 hours ago
Support · by Justin Young, 15 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago