ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Message: Undefined property: Rel_ft::$db

July 10, 2011 2:45am

Subscribe [2]
  • #1 / Jul 10, 2011 2:45am

    BrianPx

    14 posts

    I’m getting an expressionengine error when trying to delete a field group.  I’ve tried to delete the fields within the group individually but I get the same error.  One field is a relationship field.  The error is:

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined property: Rel_ft::$db
    Filename: fieldtypes/ft.rel.php
    Line Number: 202

    Another area occurs when I try to delete the non-relationship field in the group:

    A Database Error Occurred
    Error Number: 1091
    Can't DROP 'field_id_56'; check that column/key exists
    ALTER TABLE `exp_channel_data` DROP `field_id_56`
    Filename: libraries/api/Api_channel_fields.php
    Line Number: 428

     

    Any ideas?

  • #2 / Jul 11, 2011 7:56am

    Sue Crocker

    26054 posts

    Hi, BrianPx.

    This issue doesn’t occur with newer versions of EE. I’d recommend upgrading.

    In the meantime, here is the workaround:

    what you do is this:
    in this file:
    expressionengine/fieldtypes/ft.rel.php
    
    replace this text:
    $this->db
    
    with this text:
    $this->EE->db
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases