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

Random unexpected E_WARNING on file_exists() php function

Started by Matteo Rossi 8 years ago · 3 replies · 652 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 Thomas, 1 week ago
2 53 9 hours ago
Support · by Anna, 3 days ago
2 59 12 hours ago
Support · by Justin Young, 13 hours ago
1 30 13 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago