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

Random unexpected E_WARNING on file_exists() php function

Started by Matteo Rossi 8 years ago · 3 replies · 698 views
8 years ago

Hi everyone, I’m using Grav in production for months and sometimes the site goes down with the following E_WARNING.

Why is this occurring and how can I fix this issue? I’ve set up dir and file permissions.. I have to restart apache to make it run again.

Does it have something to deal with file / dir permissions? My app is running under ww-data user and web group (including www-data and deploy user).

Thank you05|690x345

8 years ago

Are you adding files via FTP? If so they are probably owned by a user other than www-data and causing the problem

8 years ago

I'm adding files pulling from git from the VPS, I've setup a git hook that fix permissions after pull / merge and I've created a setup.php that performs an unmask before each request as stated in the permissions section of the official doc.

This happens randomly and I have to restart apache.

I'm on Ubuntu 15.04 VPS with PHP 5.6.4-4ubuntu6.4 and Grav version v1.4.3

Is Grav expecting a languages dir in the root of active theme? I've added it

8 years ago

Got again the same error.. I need to restart apache each time

45|690x346

Suggested topics

Topic Participants Replies Views Activity
Support · by BenLaKnet, 6 days ago
1 129 3 days ago
Support · by BenLaKnet, 1 week ago
5 199 3 days ago
Support · by kskt, 3 days ago
0 58 3 days ago
Support · by David Meissner, 3 days ago
0 54 3 days ago
Support · by David Meissner, 4 days ago
3 99 3 days ago