Thanks! That solved the install problem, but I still have one site that crashes Apache whenever I access the front end.
I tracked the problem (finally) to a snippet called in my template.
Under debug, I get
[2008-12-09 15:16:10] (FATAL/modx097/index.php) The requested resource has no valid content type specified. RESOURCE: Array ( [id] => 1 [type] => document [contentType] => text/html [pagetitle] => Home [longtitle] => Home Page aardvark smiley hello [description] => [alias] => [link_attributes] => [published] => 1 [pub_date] => 0000-00-00 00:00:00 [unpub_date] => 0000-00-00 00:00:00 [parent] => 0 [isfolder] => [introtext] => [content] => [[Wayfinder? &startId=`0`]] This is the home page. [richtext] => [template] => 1 [menuindex] => 0 [searchable] => 1 [cacheable] => 1 [createdby] => 1 [createdon] => 2008-09-18 16:59:13 [editedby] => 1 [editedon] => 2008-11-02 13:42:10 [deleted] => [deletedon] => 0000-00-00 00:00:00 [deletedby] => 0 [publishedon] => 2008-11-02 13:42:10 [publishedby] => 1 [menutitle] => Home [donthit] => [haskeywords] => [hasmetatags] => [privateweb] => [privatemgr] => [content_dispo] => 0 [hidemenu] => 0 [class_key] => modDocument [context_key] => web [content_type] => 1 ) .
Here’s the offending snippet (which used to work fine in earlier alphas). I imagine that the snippet is flawed, but it would probably be better if it generated an error message rather than crashing Apache.
I cut it down to the minimum required to cause the crash:
/* Keywords snippet Version 1.0 */
$pageId = $modx->getDocumentIdentifier('id');
$pageInfo = $modx->getPageInfo($pageId, 0, 'longtitle');
getPageInfo() in the modx class now looks like this:
function getPageInfo($pageid=-1, $active=1, $fields='id, pagetitle, description, alias, class_key, context_key') {
...
}
Obviously, the number of arguments is way off, but it’s only called three times that I can find in the MODx code and in all cases there are only three arguments given.
BTW, I’m a refugee from C++, but my understanding is that in PHP, like C++, arguments with default values have to come at the end of the argument list.
From php.net:" Note that when using default arguments, any defaults should be on the right side of any non-default arguments; otherwise, things will not work as expected."
I noticed some other default arguments on the left side of the argument list in MODx (notably, the original captcha code) with, IMO, is asking for trouble.