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

January 21, 2011 3:29am

Subscribe [3]
  • #1 / Jan 21, 2011 3:29am

    HoneyWeb

    23 posts

    This question may be related to a resolved thread.

    I have the same error.
    A fix was mentioned, is it out?
    If not what can I do in the meantime..?

    I got the following error when trying to edit and delete a custom field.

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined property: Rel_ft::$db

    Filename: fieldtypes/ft.rel.php

    Line Number: 202

  • #2 / Jan 21, 2011 3:23pm

    Sue Crocker

    26054 posts

    Hi, HoneyWeb.

    what you do is this:
    in this file:
    expressionengine/fieldtypes/ft.rel.php

    replace this text:
    $this->db

    with this text:
    $this->EE->db

    That will fix the problem.

    Does that help?

  • #3 / Jan 21, 2011 7:33pm

    HoneyWeb

    23 posts

    Yes that worked.
    I was able to delete custom fields.

    I got another error though, and please help me to know if this is a problem with EE or strictly my database, because I am a bit of a novice with DB’s.

    I got this error when I tried to delete the Field Group.

    ///////////

    A Database Error Occurred

    Error Number: 1091

    Can’t DROP ‘field_id_7’; check that column/key exists

    ALTER TABLE `exp_channel_data` DROP `field_id_7`

    Filename: C:\inetpub\sites\domain.com\wwwroot\hw\codeigniter\system\database\DB_driver.php

    Line Number: 330

    « Back

    [Mod Edit: Post edited and image removed for security reasons]

  • #4 / Jan 23, 2011 2:24pm

    Greg Salt

    3988 posts

    Hi HoneyWeb,

    Which version and build of EE are you using on this server? Is this a site that has been upgraded from EE 1.x? Which addons do you have installed and have you imported or created any entries outside of the site publish form?

    Cheers

    Greg

  • #5 / Jan 23, 2011 6:30pm

    HoneyWeb

    23 posts

    EE 2.1.3
    Structure 2.2
    Brilliant Retail 1.0.0
    Wygwam 2.1.7

    On EE install i installed Brilliant Retails dummy info.

    I have installed EE a couple of times over the top of the database, would that make a difference.

    Site info (PHP etc) here - http://shop.honeyweb.com.au/info.php

  • #6 / Jan 24, 2011 9:07am

    Sue Crocker

    26054 posts

    Can’t DROP ‘field_id_7’; check that column/key exists

    Was that the field that you deleted earlier?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases