We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31008
    • 5 Posts
    Web Server:
    * Apache/1.3.37
    * PHP 4.4.4 (cli) (built: Oct 1 2006 13:14:20)
    * mysql Ver 14.7 Distrib 4.1.21, for pc-linux-gnu (i686) using readline 4.3
    * CentOS (it’s not my server so I don’t know the version)

    MODx:
    * Fresh install of 0.9.5 with all default plugins

    I followed these instructions:
    http://wiki.modxcms.com/index.php/Creating_a_Blog_like_in_the_Default_Content

    and I get the following error:
    « 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/adrong/public_html/manager/includes/document.parser.class.inc.php(748) : eval()'d code	 
      Line: 	372	 
     
    Parser timing
      MySQL: 	0.0065 s	(4 Requests)
      PHP: 	0.0539 s	 
      Total: 	0.0604 s


    The line of code referenced is a call to the explode() function and only causes the error when some kind of MODx tag is present (e.g. [+author+] et. al.) in the nl_blog chunk. When I change the chunk to something really basic like "hello, world" the page displays as expected.

    I assume I’ve fallen for a pretty common pit-fall in MODx, I just haven’t been able to see what it is.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      This can happen when first setting it up if there are no documents in the specified parent folder.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 31008
        • 5 Posts
        Huh. I thought I had tried that. It did fix the problem, though. So, thanks!
          • 25663 MODX Staff
          • 12,272 Posts
          Thanks for filing a great initial support request with all the needed info! laugh
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me