System error log
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
When I see my system.log I see a error name :
2015-12-16T15:15:19+00:00 DEBUG (7): is_readable() expects parameter 1
to be a valid path, string
given/data/web/public/lib/Varien/Io/File.php
Does anyone know where this error comes from and what I can do about it?
When I go to the file file.php
. I see the code:
protected function _checkSrcIsFile($src)
{
$result = false;
if (is_string($src) && is_readable($src) && is_file($src)) {
$result = true;
}
return $result;
}
magento-1.9 log
add a comment |
When I see my system.log I see a error name :
2015-12-16T15:15:19+00:00 DEBUG (7): is_readable() expects parameter 1
to be a valid path, string
given/data/web/public/lib/Varien/Io/File.php
Does anyone know where this error comes from and what I can do about it?
When I go to the file file.php
. I see the code:
protected function _checkSrcIsFile($src)
{
$result = false;
if (is_string($src) && is_readable($src) && is_file($src)) {
$result = true;
}
return $result;
}
magento-1.9 log
add a comment |
When I see my system.log I see a error name :
2015-12-16T15:15:19+00:00 DEBUG (7): is_readable() expects parameter 1
to be a valid path, string
given/data/web/public/lib/Varien/Io/File.php
Does anyone know where this error comes from and what I can do about it?
When I go to the file file.php
. I see the code:
protected function _checkSrcIsFile($src)
{
$result = false;
if (is_string($src) && is_readable($src) && is_file($src)) {
$result = true;
}
return $result;
}
magento-1.9 log
When I see my system.log I see a error name :
2015-12-16T15:15:19+00:00 DEBUG (7): is_readable() expects parameter 1
to be a valid path, string
given/data/web/public/lib/Varien/Io/File.php
Does anyone know where this error comes from and what I can do about it?
When I go to the file file.php
. I see the code:
protected function _checkSrcIsFile($src)
{
$result = false;
if (is_string($src) && is_readable($src) && is_file($src)) {
$result = true;
}
return $result;
}
magento-1.9 log
magento-1.9 log
edited Dec 16 '15 at 16:20
Bill
2,45231239
2,45231239
asked Dec 16 '15 at 16:11
Michel Van De WielMichel Van De Wiel
509
509
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The log entry
is_readable() expects parameter 1 to be a valid path, string given
occurs due to a bug in the Varien library. The method Varien_Io_File::write()
can be used to either
- write given data to a given destination file or
- copy the contents from a given source file to a given destination file.
These use cases are distinguished by checking the second parameter $src
of the aforementioned method via call to Varien_Io_File::_checkSrcIsFile()
.
If $src
turns out to be a filename, its contents are copied to the destination (use case 2). Otherwise it is interpreted as plain data (use case 1). The check applies function.is-readable which always emits given warning in use case 1.
What you can do about it:
- Replace the initial call to
Varien_Io_File::write()
- Fix the erroneous conditional switch
- Ignore the log entries
@Michel Van De Wiel I think this should be accepted as answer, don't you think?
– Eddie C.
Aug 1 '17 at 11:00
add a comment |
The above answer is not clear at all because $src is being passed as an argument in the function so I don't understand where you gonna replace $src with Varien_Io_File::write()
so this doesn't seem like a solution to this warning.
who got a solution for this problem?
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f94028%2fsystem-error-log%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The log entry
is_readable() expects parameter 1 to be a valid path, string given
occurs due to a bug in the Varien library. The method Varien_Io_File::write()
can be used to either
- write given data to a given destination file or
- copy the contents from a given source file to a given destination file.
These use cases are distinguished by checking the second parameter $src
of the aforementioned method via call to Varien_Io_File::_checkSrcIsFile()
.
If $src
turns out to be a filename, its contents are copied to the destination (use case 2). Otherwise it is interpreted as plain data (use case 1). The check applies function.is-readable which always emits given warning in use case 1.
What you can do about it:
- Replace the initial call to
Varien_Io_File::write()
- Fix the erroneous conditional switch
- Ignore the log entries
@Michel Van De Wiel I think this should be accepted as answer, don't you think?
– Eddie C.
Aug 1 '17 at 11:00
add a comment |
The log entry
is_readable() expects parameter 1 to be a valid path, string given
occurs due to a bug in the Varien library. The method Varien_Io_File::write()
can be used to either
- write given data to a given destination file or
- copy the contents from a given source file to a given destination file.
These use cases are distinguished by checking the second parameter $src
of the aforementioned method via call to Varien_Io_File::_checkSrcIsFile()
.
If $src
turns out to be a filename, its contents are copied to the destination (use case 2). Otherwise it is interpreted as plain data (use case 1). The check applies function.is-readable which always emits given warning in use case 1.
What you can do about it:
- Replace the initial call to
Varien_Io_File::write()
- Fix the erroneous conditional switch
- Ignore the log entries
@Michel Van De Wiel I think this should be accepted as answer, don't you think?
– Eddie C.
Aug 1 '17 at 11:00
add a comment |
The log entry
is_readable() expects parameter 1 to be a valid path, string given
occurs due to a bug in the Varien library. The method Varien_Io_File::write()
can be used to either
- write given data to a given destination file or
- copy the contents from a given source file to a given destination file.
These use cases are distinguished by checking the second parameter $src
of the aforementioned method via call to Varien_Io_File::_checkSrcIsFile()
.
If $src
turns out to be a filename, its contents are copied to the destination (use case 2). Otherwise it is interpreted as plain data (use case 1). The check applies function.is-readable which always emits given warning in use case 1.
What you can do about it:
- Replace the initial call to
Varien_Io_File::write()
- Fix the erroneous conditional switch
- Ignore the log entries
The log entry
is_readable() expects parameter 1 to be a valid path, string given
occurs due to a bug in the Varien library. The method Varien_Io_File::write()
can be used to either
- write given data to a given destination file or
- copy the contents from a given source file to a given destination file.
These use cases are distinguished by checking the second parameter $src
of the aforementioned method via call to Varien_Io_File::_checkSrcIsFile()
.
If $src
turns out to be a filename, its contents are copied to the destination (use case 2). Otherwise it is interpreted as plain data (use case 1). The check applies function.is-readable which always emits given warning in use case 1.
What you can do about it:
- Replace the initial call to
Varien_Io_File::write()
- Fix the erroneous conditional switch
- Ignore the log entries
answered Dec 16 '15 at 16:52
mam08ixomam08ixo
2,693817
2,693817
@Michel Van De Wiel I think this should be accepted as answer, don't you think?
– Eddie C.
Aug 1 '17 at 11:00
add a comment |
@Michel Van De Wiel I think this should be accepted as answer, don't you think?
– Eddie C.
Aug 1 '17 at 11:00
@Michel Van De Wiel I think this should be accepted as answer, don't you think?
– Eddie C.
Aug 1 '17 at 11:00
@Michel Van De Wiel I think this should be accepted as answer, don't you think?
– Eddie C.
Aug 1 '17 at 11:00
add a comment |
The above answer is not clear at all because $src is being passed as an argument in the function so I don't understand where you gonna replace $src with Varien_Io_File::write()
so this doesn't seem like a solution to this warning.
who got a solution for this problem?
New contributor
add a comment |
The above answer is not clear at all because $src is being passed as an argument in the function so I don't understand where you gonna replace $src with Varien_Io_File::write()
so this doesn't seem like a solution to this warning.
who got a solution for this problem?
New contributor
add a comment |
The above answer is not clear at all because $src is being passed as an argument in the function so I don't understand where you gonna replace $src with Varien_Io_File::write()
so this doesn't seem like a solution to this warning.
who got a solution for this problem?
New contributor
The above answer is not clear at all because $src is being passed as an argument in the function so I don't understand where you gonna replace $src with Varien_Io_File::write()
so this doesn't seem like a solution to this warning.
who got a solution for this problem?
New contributor
New contributor
answered 6 mins ago
Maneza F8Maneza F8
11
11
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f94028%2fsystem-error-log%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown