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

Failed to open stream: File Exists? #92

Open
MGParisi opened this issue May 14, 2018 · 1 comment
Open

Failed to open stream: File Exists? #92

MGParisi opened this issue May 14, 2018 · 1 comment

Comments

@MGParisi
Copy link

Warning: fopen(C:\wamp64\www\xxxx\wp-temp\xxxx\logs\log_2018-05-14.txt): failed to open stream: File exists in C:\wamp64\www\xxxx\wp-content\plugins\xxxx\vendor\katzgrau\klogger\src\Logger.php on line 167

This is run through the earlier class and is attempting to open with an 'a' attribute.

@MGParisi
Copy link
Author

MGParisi commented May 14, 2018

37 7.9236 78582472 project\system\notify->__construct( ) ...\base.php:37
38 7.9236 78583560 Katzgrau\KLogger\Logger->__construct( ) ...\notify.php:68
39 7.9238 78583656 Katzgrau\KLogger\Logger->setFileHandle( ) ...\Logger.php:130
40 7.9238 78583656 fopen ( ) ...\Logger.php:167

Sorry, can not provide access.. I can say this is on a Windows platform and that I created the directory with

	if (!is_dir($log_dir)) {
		$oldmask = umask(0);
		mkdir($log_dir,0777, true);
		umask($oldmask);
		chmod($log_dir, 0777);
	}

Also the log is in a parent directory.

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

No branches or pull requests

1 participant