Fatal error: Call to a member function getCollectionAttributeValue() on 5.6.1.2 Update

Permalink
I attempted to update from 5.6.0.2 to 5.6.1.2, but when I try to load a page after the update I get the following error:

Fatal error: Call to a member function getCollectionAttributeValue() on a non-object in <site_path>/www/htdocs/updates/concrete5.6.1.2/concrete/elements/header_required.php on line 27

Line 27 is shown in context below:
25: <meta http-equiv="content-type" content="text/html; charset=<?php echo APP_CHARSET?>" />
26: <?php
27: $akt = $c->getCollectionAttributeValue('meta_title');
28: $akd = $c->getCollectionAttributeValue('meta_description');
29: $akk = $c->getCollectionAttributeValue('meta_keywords');

I have no idea where to even start looking to fix the problem. For now, I took out the redirect to the update from the site.php file to revert to the original installation and things work fine.

phpinfo() tells me that the host is running PHP Version 5.2.17 .

I really would like to be able to upgrade. Any thoughts on how to proceed?

crjohnson11
 
alivetech replied on at Permalink Reply
alivetech
I recently applied this update and had to diff fix my override in /var/www/elements/header_required.php

The page title code has been heavily modified and it sounds like you aren't pointing to the most current version.

Check the link below for the most recent which is closer to what you need and/or re-run the upgade script:
https://github.com/concrete5/concrete5/blob/master/web/concrete/elem...