We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36805
    • 354 Posts
    I made a couple of changes to a snippet of mine and now i got a parse error (see below).

    Is there any way to find out the line number of the error? By line number i mean the line number relative to the start of my snippet code.

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »
     
    PHP error debug
      Error: 	array_values() [function.array-values]: The argument should be an array	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/home/airandfun/domains/airandfun.nl/public_html/manager/includes/document.parser.class.inc.php(748) : eval()'d code	 
      Line: 	372	 
     
    Parser timing
      MySQL: 	0.0097 s	(29 Requests)
      PHP: 	0.0627 s	 
      Total: 	0.0724 s
    
      • 7923
      • 4,213 Posts
      Yes, it’s in the parse error message:

      File: /home/airandfun/domains/airandfun.nl/public_html/manager/includes/document.parser.class.inc.php(748) : eval()’d code
      Line: 372

      So that says that there is a error in document.parser.class.inc.php on line 748, and the error is coming from eval()’d code from line 372. So it’s the line 372 in your snippet.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."