enabling with blogga
Permalink Browser Info Environment
Hi
I started to use the Blogga addon and tried the following for your page list template
1. The Blogga page does not have a Main area, instead it has an area called 'Blog Area'
2. I altered the site.php and added define('PAGE_LIST_TEASERS_AREA', 'Blog Area');
3. I altered the page_list_teasers.php with the following : public function output_page_blocks($collectionObject, $maxBlocks = null, $truncateChars = 0, $blockWrapperStart = '', $blockWrapperEnd = '', $ignoreBlockTypes = array('page_list')) {
$areaHandle = defined('PAGE_LIST_TEASERS_AREA') ? PAGE_LIST_TEASERS_AREA : 'Blog Area';
when I choose the template you provided I get >
! ) Fatal error: Call to a member function getAreaHandle() on a non-object in C:\wamp\www\portchester\packages\blogga\blocks\blog_posts\controller.php on line 114
Call Stack
# Time Memory Function Location
1 0.0007 364960 {main}( ) ..\index.php:0
2 0.0021 453616 require( 'C:\wamp\www\portchester\concrete\dispatcher.php' ) ..\index.php:2
3 0.1985 11103624 View->render( ) ..\dispatcher.php:246
4 0.2342 12242208 include( 'C:\wamp\www\portchester\concrete\themes\default\default.php' ) ..\view.php:770
5 0.3531 12580632 Area->display( ) ..\default.php:16
6 0.3573 12596224 BlockView->render( ) ..\area.php:408
7 0.4166 13286720 include( 'C:\wamp\www\portchester\packages\page_list_teasers\blocks\page_list\templates\teasers.php' ) ..\block_view.php:297
8 0.4228 13328456 PageListTeasersHelper->output_page_blocks( ) ..\teasers.php:26
9 0.4333 13452888 Block->display( ) ..\page_list_teasers.php:40
10 0.4357 13456464 BlockView->render( ) ..\block.php:164
11 0.4548 13659544 include( 'C:\wamp\www\portchester\packages\blogga\blocks\blog_posts\view.php' ) ..\block_view.php:297
12 0.4750 13704856 BlogPostsBlockController->getRssUrl( ) ..\view.php:13
Please can you advise what I am doing wrong
Thanks
I started to use the Blogga addon and tried the following for your page list template
1. The Blogga page does not have a Main area, instead it has an area called 'Blog Area'
2. I altered the site.php and added define('PAGE_LIST_TEASERS_AREA', 'Blog Area');
3. I altered the page_list_teasers.php with the following : public function output_page_blocks($collectionObject, $maxBlocks = null, $truncateChars = 0, $blockWrapperStart = '', $blockWrapperEnd = '', $ignoreBlockTypes = array('page_list')) {
$areaHandle = defined('PAGE_LIST_TEASERS_AREA') ? PAGE_LIST_TEASERS_AREA : 'Blog Area';
when I choose the template you provided I get >
! ) Fatal error: Call to a member function getAreaHandle() on a non-object in C:\wamp\www\portchester\packages\blogga\blocks\blog_posts\controller.php on line 114
Call Stack
# Time Memory Function Location
1 0.0007 364960 {main}( ) ..\index.php:0
2 0.0021 453616 require( 'C:\wamp\www\portchester\concrete\dispatcher.php' ) ..\index.php:2
3 0.1985 11103624 View->render( ) ..\dispatcher.php:246
4 0.2342 12242208 include( 'C:\wamp\www\portchester\concrete\themes\default\default.php' ) ..\view.php:770
5 0.3531 12580632 Area->display( ) ..\default.php:16
6 0.3573 12596224 BlockView->render( ) ..\area.php:408
7 0.4166 13286720 include( 'C:\wamp\www\portchester\packages\page_list_teasers\blocks\page_list\templates\teasers.php' ) ..\block_view.php:297
8 0.4228 13328456 PageListTeasersHelper->output_page_blocks( ) ..\teasers.php:26
9 0.4333 13452888 Block->display( ) ..\page_list_teasers.php:40
10 0.4357 13456464 BlockView->render( ) ..\block.php:164
11 0.4548 13659544 include( 'C:\wamp\www\portchester\packages\blogga\blocks\blog_posts\view.php' ) ..\block_view.php:297
12 0.4750 13704856 BlogPostsBlockController->getRssUrl( ) ..\view.php:13
Please can you advise what I am doing wrong
Thanks
Type: | Discussion |
---|---|
Status: | New |
Please do a test of the following: change the custom template of the page list block back to default. Does the error still occur?
Also note that it's possible you made a typo or error when modifying the code. You do *not* need to modify the page list teaser code at all to do what you want to do -- all you need to do is add that define('PAGE_LIST_TEASERS_AREA', 'Blog Area'); line to your config file (so steps 1 and 2, but not step 3). You might want to try re-downloading a clean version of the page list teasers package and overwriting the one you've modified and see if that helps.