We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24278
    • 165 Posts
    Hi,

    I get the following error while previewing unpublished documents in the Manager Interface...
    « 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: 	E:\xampp1.5.1\xampp\htdocs\ap-cms\manager\includes\document.parser.class.inc.php(705) : eval()'d code	 
      Line: 	372	 
     
    Parser timing
      MySQL: 	0.0747 s s	(25 Requests)
      PHP: 	0.1648 s s	 
      Total: 	0.2395 s s


    The published documents show the preview as expected.

    best regards,

    Raavi.
      • 25663 MODX Staff
      • 12,272 Posts
      Update to 0.9.2.1.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 24278
        • 165 Posts
        Thanks, but I am on 0.9.2.1 (rev 1005).

        -Raavi
          • 7923
          • 4,213 Posts
          It’s some snippet that’s causing the parse error:

          Quote from: Raavi at Jul 31, 2006, 12:01 AM

          PHP error debug
          Error: array_values() [function.array-values]: The argument should be an array
          Error type/ Nr.: Warning - 2
          File: E:\xampp1.5.1\xampp\htdocs\ap-cms\manager\includes\document.parser.class.inc.php(705) : eval()’d code
          Line: 372

          So try disabling snippets and see that brings that error, then look what’s on lin 372 and post to the snippets support thread (and link here).


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 24278
            • 165 Posts
            Thanks doze,

            You were right, the problem is due to ditto 1.0.2

            If I disable ditto 1.0.2 all works fine.

            -Raavi