System error log





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







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;
}









share|improve this question































    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;
    }









    share|improve this question



























      0












      0








      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;
      }









      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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






















          2 Answers
          2






          active

          oldest

          votes


















          5














          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




          1. write given data to a given destination file or

          2. 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






          share|improve this answer
























          • @Michel Van De Wiel I think this should be accepted as answer, don't you think?

            – Eddie C.
            Aug 1 '17 at 11:00



















          0














          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?





          share








          New contributor




          Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            5














            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




            1. write given data to a given destination file or

            2. 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






            share|improve this answer
























            • @Michel Van De Wiel I think this should be accepted as answer, don't you think?

              – Eddie C.
              Aug 1 '17 at 11:00
















            5














            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




            1. write given data to a given destination file or

            2. 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






            share|improve this answer
























            • @Michel Van De Wiel I think this should be accepted as answer, don't you think?

              – Eddie C.
              Aug 1 '17 at 11:00














            5












            5








            5







            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




            1. write given data to a given destination file or

            2. 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






            share|improve this answer













            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




            1. write given data to a given destination file or

            2. 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







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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



















            • @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













            0














            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?





            share








            New contributor




            Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              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?





              share








              New contributor




              Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                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?





                share








                New contributor




                Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                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?






                share








                New contributor




                Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share


                share






                New contributor




                Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 6 mins ago









                Maneza F8Maneza F8

                11




                11




                New contributor




                Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Maneza F8 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    What other Star Trek series did the main TNG cast show up in?

                    Berlina muro

                    Berlina aerponto