Warning: fopen(/tmp/tribe_tmp_file_logger_2017-04-05.log): failed to open stream
-
We have a few sites on the same server using the plugin version 4.4.4. Recently, some of them have this error at the top of all pages, which also breaks /wp-admin/.
Warning: fopen(/tmp/tribe_tmp_file_logger_2017-04-05.log): failed to open stream: Permission denied in /home/[redacted]/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Log/File_Logger.php on line 68 Warning: fopen(/tmp/tribe_tmp_file_logger_2017-04-05.log): failed to open stream: Permission denied in /home/[redacted]/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Log/File_Logger.php on line 68 Warning: Cannot modify header information - headers already sent by (output started at /home/[redacted]/public_html/wp-content/plugins/the-events-calendar/common/src/Tribe/Log/File_Logger.php:68) in /home/[redacted]/public_html/wp-includes/pluggable.php on line 1179
The problem is arising because two sites (2 different shell users) are attempting to open the same log file. The weird part is that the log files are all empty (0 bytes) and only certain sites on certain days decide to create a log file and open it. There also doesn’t seem to be a way to disable the creation of these files. I think if they are going to be created in /tmp maybe they should have the site name or user name or something in the filename otherwise these conflicts will arise.
Is this intended behaviour or are our sites functioning differently due to other server settings?
ls -al /tmp:
-rw-r--r-- 1 xxxxxxxx xxxxxxxx 0 Dec 19 21:35 tribe_tmp_file_logger_2016-12-19.log -rw-r--r-- 1 xxxxxxxxxx xxxxxxxxxx 0 Jan 18 17:31 tribe_tmp_file_logger_2017-01-18.log -rw-r--r-- 1 xxxxxxxx xxxxxxxx 0 Apr 3 17:54 tribe_tmp_file_logger_2017-04-03.log -rw-r--r-- 1 xxxxxxxx xxxxxxxx 0 Apr 4 10:15 tribe_tmp_file_logger_2017-04-04.log -rwxrwxrwx 1 xxxxxxxx xxxxxxxx 0 Apr 5 10:09 tribe_tmp_file_logger_2017-04-05.log*
- The topic ‘Warning: fopen(/tmp/tribe_tmp_file_logger_2017-04-05.log): failed to open stream’ is closed to new replies.