We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Errors in the control panel after upgrade

How Do I?

sbachhuber's avatar
sbachhuber
3 posts
about 10 years ago
sbachhuber's avatar sbachhuber

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.

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
about 10 years ago
Robin Sowell's avatar Robin Sowell

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.

       
sbachhuber's avatar
sbachhuber
3 posts
9 years ago
sbachhuber's avatar sbachhuber

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.

       
sbachhuber's avatar
sbachhuber
3 posts
9 years ago
sbachhuber's avatar sbachhuber

Removed the custom fields i had added since i moved to 3.0.6, as well as any field groups that were empty, still doesn’t run the upgrade

       
Seth Barber's avatar
Seth Barber
172 posts
9 years ago
Seth Barber's avatar Seth Barber

Do you happen to have a channel without any fields (or no field group) assigned to it?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.