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

Type: Discussion
Status: New
Responsive
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
I don't think the issue has anything to do with the code you changed, because the error is happening down at the bottom of that file in the getRssUrl function.

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.
Responsive replied on at Permalink Reply
Responsive
Hi

It turned out to be the way blogga creates a new page that caused the error. I chose instead to use an existing page from which to place the blogs and it worked fine.

Thanks for your help on this
Rob

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.