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

filePutContent ERR (3): Warning: chdir(): No such file or directory (errno 2) #809

Closed
roberto-ebizmarts opened this issue Sep 12, 2019 · 2 comments

Comments

@roberto-ebizmarts
Copy link
Contributor

On https://github.com/OpenMage/magento-lts/blob/1.9.4.x/lib/Varien/Io/File.php
the method filePutContent log a message like:
"ERR (3): Warning: chdir(): No such file or directory (errno 2)"
due to not using @chdir
public function filePutContent($filename, $src)
{
@chdir($this->_cwd);
$result = @file_put_contents($filename, $src);
chdir($this->_iwd);
return $result;
}

Not big thing, but create not necessary logs.

@sreichel sreichel added the Component: lib/Varien Relates to lib/Varien label Jun 13, 2020
@addison74
Copy link
Contributor

If this is an issue in OpenMage we should create a PR.

@fballiano
Copy link
Contributor

Fixed by #1269

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

No branches or pull requests

4 participants