I recently upgraded a webpage from ExpressionEngine 1.6.9 to 3.0.6. The upgrade went alright, though there were features removed from EE that we were using, so I went and started updating templates to avoid those missing features, however some of the templates cannot be accessed for some reason (among other problems with the upgrade).
I was trying to remove the old photo gallery module use from one of the templates, clicked the template to edit it and this shows up.
Fatal error: Call to a member function getMemberName() on a non-object in /home/httpd/htdocs/system/ee/EllisLab/ExpressionEngine/Controller/Design/Template.php on line 411
The line is the $version from below
$data[] = array(
'attrs' => $attrs,
'columns' => array(
$i,
ee()->localize->human_time($version->item_date),
$version->Author->getMemberName(),
$toolbar
)
);
It shows for every single template in that channel. I haven’t made any large changes to the database besides updating the templates to a new look. Any help with this would be appreciated.
I’d recommend going ahead and updating to the latest- 3.2.1. There have been a large number of bug fixes since 3.0.6. The error you’re running into sounds a lot like this fixed bug, which I believe crops up when a revision is associated with a member id that no longer exists.
In any case- let’s see if an update gets you squared away.
So i started the update process
A PHP Error was encountered
Severity: 8
Message: Trying to get property of non-object
Filename: ee/installer/updates/ud_3_01_00.php
Line Number: 363
Fatal error: Call to a member function getDictionary() on a non-object in /home/httpd/htdocs/system/ee/installer/updates/ud_3_01_00.php on line 363
foreach ($layouts as $layout)
{
// Account for any new fields that have been added to the channel
// since the last edit
$custom_fields = $layout->Channel->CustomFields->getDictionary('field_id', 'field_id');
foreach ($layout->field_layout as $section)
{
the error is occuring in the $cutom_fields line within the synchronize_layouts() function. I removed all the custom channels i had added since i upgraded to 3.0.6 (as none of them actually worked due to another bug). My next attempt is going to be removing some of the custom fields i added since my initial upgrade, though i have put a few of them to use, so i may not be able to remove all of them.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.