Calendar Installation Issue
PermalinkassignCollectionAttribute($cab1); $eve->assignCollectionAttribute($cab2); $eve->assignCollectionAttribute($cab3); //$eve->assignCollectionAttribute($cab4); // install block BlockType::installBlockTypeFromPackage('calendar', $pkg); // add aliased blocks to the calendar page $mc1 = CollectionType::getByHandle('left_sidebar'); if (is_object($mc1) && is_object($evc)) { $dm = $mc1->getMasterTemplate(); $blocks = $dm->getBlocks(); $dm2 = $evc->getMasterTemplate(); // alias these blocks to the new event calendar page foreach($blocks as $b) { $b->alias($dm2); } } // add aliased blocks to the calendar event page $mc1 = CollectionType::getByHandle('full'); if (is_object($mc1) && is_object($eve)) { $dm = $mc1->getMasterTemplate(); $blocks = $dm->getBlocks(); $dm2 = $eve->getMasterTemplate(); // alias these blocks to the new event calendar page foreach($blocks as $b) { $b->alias($dm2); } } // Now let's add a calendar page type beneath the root. $home = Page::getByID(HOME_CID); $data = array(); $data['name'] = t('Sample Calendar'); $sampleCalendar = $home->add($evc, $data); // Now let's add our calendar block to our calendar page type $bt = BlockType::getByHandle('calendar'); $args['calendarCIDs'][] = $sampleCalendar->getCollectionID(); $args['mode'] = 'MONTH'; $sampleCalendar->addBlock($bt, "Main", $args); } } ?>
All other free and purchased blocks/add-ons have been successfully installed. I have tried several different servers, all with the same results. Any help would be appreciated. Windows setup with Apache 2.2 and PHP 5.2.8. Thanks.
It's strange that it's printing out the contents of the install controller and not a php error.
Can you try and download the calendar.zip file again, and possibly use a different unzip program to unzip?
I removed the <?php from the top of my packages/calendar/controller.php file and got a similar result, so I'm expecting that that file in your download is somehow corrupted.
Any help would be appreciated. Thanks.