Forum
Blog update to v5.0: Perch Blog administration doesn't work
I'm trying to follow these steps: https://docs.grabaperch.com/addons/blog/installation/
But I'm still getting 5xx errors in blog section in Perch. There is problem with Categories after updating to Blog App v5.0.
PHP error:
PHP Fatal error: Call to a member function id() on boolean in /Users/machal/Sites/vd-web/www/perch/addons/apps/perch_blog/modes/edit.pre.php on line 76
My templates/blog/post.html
<perch:blog id="postTitle" type="text" required="true" size="xl" label="Title" />
<perch:blog id="postDateTime" type="date" format="%d %B %Y" label="Date" />
<perch:blog id="postDescHTML" type="textarea" label="Content" encode="false" html="true" editor="markitup" markdown="true" size="xxl" required="true" />
<perch:blog id="excerpt" type="textarea" label="Excerpt" markdown="true" suppress="true" size="s" />
<perch:blog id="postUrlId" type="text" suppress="true" label="ID for URL" />
<perch:categories id="tema" label="Téma" set="tema" required="true" display-as="checkboxes">
My Diagnostic report:
Perch: 2.8.29, PHP: 5.6.10, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (5.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', );
PERCH_LOGINPATH: /perch/
PERCH_PATH: /Users/machal/Sites/vd-web/www/perch
PERCH_CORE: /Users/machal/Sites/vd-web/www/perch/core
PERCH_RESFILEPATH: /Users/machal/Sites/vzhurudolu/www/assets/img/content/src
Image manipulation: GD
PHP limits: Max upload 256M, Max POST 256M, Memory: 512M, Total max file upload: 256M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: No
SCRIPT_NAME: /perch//core/settings/diagnostics/index.php
REQUEST_URI: /perch//core/settings/diagnostics/
DOCUMENT_ROOT: /Users/machal/Sites/vd-web/www
HTTP_HOST: vzhurudolu.localhost
Have you setup a blog category in the categories app? Also, updating from an old blog app to newest may require some template updates too.
Also, I am noticing a double directories separator in your
REQUEST_URI: /perch//core/settings/diagnostics/
Between perch and core directories.
Thanks for response, Robert.
I want only one category set across , so I have one named "Tema". https://snag.gy/wUhYq.jpg I tried to add new category "Blog" there and to add category set "Blog", but without success.
My blogpost template you can see above.
Ad. double directories separator – I think it is not the problem, it appears there a long time.
Categories does not appear to have a closing tag. Is that your complete template?
Yes, the template is complete.
ok, so the template is incorrect. The categories tag needs to be closed like the one in the example on this page:
https://docs.grabaperch.com/addons/blog/installation/
I've tried to add code from your example to
templates/blog/post.html
:… and then tried copy content from
addons/apps/ …/blog/post.html
into mytemplates/blog/post.html
.But in both cases I get the original PHP error:
I double checked if I'm following the tutorial "Updating from a version prior to 4.5" – and my steps looks good. Any ideas? :)
Oh my… I find the problem. :) I tried to add and edit blogposts from dashboard before.
But – it is necessary to click on the Apps / Blog first in the main navigation!
Perch will import blogposts and everything works now.
I suggest you add this information to the updating manual: https://docs.grabaperch.com/addons/blog/installation/