issues with theme and view.php when creating blog using pro blog plugin

Permalink
Hi Everyone,

I'm a novice user of Concrete5 so stick with me as I will do my best to explain what i imagine is something that is easily fixed.

Our business has a website built in concrete5 with what looks like a custom theme that doesn't contain the view.php and deftualt.php and/or the left sidebar.php files when i inspect the theme. I Installed another theme with the above files so i could install the pro blog plugin that needs the above mentioned files to display properly.

I've managed to install the pro blog plugin and get everything setup properly but I'm coming across this fatal error:

Fatal error: Call to a member function display() on a non-object in /home/tpcwa/public_html/themes/IntelligentMove-theme/view.php on line 19 - See more at:http://www.pilatescentrewa.com/mobile/blog-title-one-test/#sthash.v...

My understanding of error is its looking for the view.php file in the theme that isn't there??
I don't really want the pro blog page in another theme, is there a way that i can fix this error or am i stuck with the actual blog display page being a different theme to the rest of my site

The blog and its error are published on the sitehttp://www.pilatescentrewa.com/mobile/blog-title-one-test/... if anyone wants to check it out.

grrr any help will be gratefully appreciated

Kind Regards

Daniel Mcintosh

1 Attachment

 
hutman replied on at Permalink Reply
hutman
You can create the view.php pretty easily. All you need to do is take one of your working page types (I assume you have at least one) that is in the theme that is the same look/feel as the page you want your ProBlog page to be. Copy that file and name it view.php and then where you have this

<?php
$a = new Area('Main');
$a->display($c);         
?>


Replace it with this

<?php
Loader::element('system_errors', array('error' => $error));
print $innerContent;         
?>


That should give you the view.php that you need to display the page properly. Also, if you have any other areas defined in the view.php you might need to add

$c = Page::getCurrentPage();


At the top of the view.php