Configure log of errors

Asked

Viewed 92 times

5

I’m working with PHP and I’m in the support part, but I’m not really familiar with the bug system. Is there any material I can read to help me?

My biggest problem is the following, many errors are written in the log in this way:

PHP Fatal error:  require_once(): Failed opening required 'vc-icon-element.php' (include_path='.;C:\php\pear') in D:\home\site\wwwroot\wp-content\plugins\js_composer\config\conte on line 6

But it seems that the path is not complete and I do not know which file made the requisition of vc-icon-element.php. How would I find out which file or page generated this log? It is normal not to get to a file .php?

  • 1

    And that part: in D:\home\site\wwwroot\wp-content\plugins\js_composer\config\conte on line 6? In this case, it is this path that is incomplete?

  • exactly that, it shouldn’t go up a.php file??

  • I believe so. This path has some special character?

  • No special character

  • And I don’t know if it’s my fault for not knowing how to identify the error, or if there’s something wrong with the settings of error_log

  • If you have the project on your machine, you can do a search everywhere that references the vc-icon-element.php. But yes, it was for the log to appear complete

  • But there is no way to get the logs written with the full path ? pq this was one of the examples of errors that occur, there are others that do not even give the name of the file being requested

  • @Kauealves you are reading this log as? in the terminal? in a text editor?

  • In a text editor, sublime.

  • Not missing one between www and root? At the Ives wwwroot would not be www\root?

  • No, it’s the same folder name.

  • Solvable - I’m guessing the line is Getting truncated - it shouldn’t, but Maybe there is a Setting in php.ini shoretning the default (the default should be 1024 bytes - ie, 1kB) - look here php.net/manual/en/... - junkfoodjunkie php.ini was wrong.

Show 7 more comments

1 answer

1

It seems to be having a limit of characters there, and so does not display the complete path of the directory for being a very long way.

I know q there is a character limit setting for the errors that are displayed on the screen, I just don’t know if it is also for log records.

But try to look at the php documentation and try changing the character limit setting in php.ini to see if you can solve it.

Follow the link: http://php.net/manual/en/errorfunc.configuration.php#ini.log-errors-max-Len

Browser other questions tagged

You are not signed in. Login or sign up in order to post.