Back to ProBlog Support

peter.bassill18971
peter.bassill18971

Hi

Not sure what needs to be fixed, but I am unable to view any posts. I get an unhandled error.

[proBlogTags]
==
<?php
function onEnd()
{
    $this->page->title = $this->post->title;
}
?>
==
<section class="container content-margin">
    <div class="page-header text-left">
    </div>

The $this->page->title = $this->post->title; is highlighted in red. Ideas?

Peter

Last updated

ChadStrat
ChadStrat

you either are referring to the wrong blog component or have a really old version and should update, or possibly have overridden the code in your app and need to correct it. That code should read:

$this->page->title = ($this->post->meta_title) ? $this->post->meta_title : $this->post->title;
peter.bassill18971
peter.bassill18971

Thats ChadStrat. Unfortunatley the OctoberCMS base install was from the 7th of October and ProBlog code version is the current version.

proBlogList and proBlogCategories both work fine. The error comes when trying to view a blog page.

The blog home is /blog. /blog URL is /blog/:filter?/:slug?/

Is that correct?

peter.bassill18971
peter.bassill18971

Fixed now. Completely deleted everything and restarted. All working now.

1-4 of 4