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.

Deleted Field returns PHP error

February 15, 2012 6:31am

Subscribe [3]
  • #1 / Feb 15, 2012 6:31am

    This question may be related to a resolved thread.

    Hi All,
    I’ve just tried to remove two custom fields that were using JP Category Select, when I deleted these the fields have been replaced by the following PHP error:

    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: field_id_43
    
    Filename: content/publish.php
    
    Line Number: 145
    " id="hold_field_
    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: field_id_43
    
    Filename: content/publish.php
    
    Line Number: 145
    " style="width: 100%; display: none;">
    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: field_id_43
    
    Filename: content/publish.php
    
    Line Number: 151
    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: field_id_43
    
    Filename: content/publish.php
    
    Line Number: 152
    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: field_id_43
    
    Filename: content/publish.php
    
    Line Number: 157
    " class="js_hide">
    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: field_id_43
    
    Filename: content/publish.php
    
    Line Number: 159
    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: field_id_43
    
    Filename: content/publish.php
    
    Line Number: 166
    A PHP Error was encountered
    
    Severity: Notice
    
    Message: Undefined index: field_id_43
    
    Filename: content/publish.php
    
    Line Number: 171

    I’ve tried uninstalling the fieldtype plugin too and no joy, also tried reentering the fields and deleting and get nothing.

    Can anyone please advise on this, I have checked the above post and the version of EE I’m running (v2.3.1) has the amendment in place. I’ve also had a look at the database and the field id is not there in the exp_channel_fields table.

    Any help would be much appreciated.

    Paddy

     

  • #2 / Feb 16, 2012 12:26pm

    Shane Eckert

    7174 posts

    Hello Paddy,

    I am sorry to hear you are running into this problem.

    You have done some good troubleshooting here, nice work.

    Can you browse another table? exp_channel_data might have field_id_43 that is where the key would be. Can you confirm that presence of that field_id?

    I will be on the lookout for your response.

    Cheers,

     

     

  • #3 / Feb 16, 2012 12:31pm

    Thanks a million for the response Shane, was beginning to lose hope!
    Just checked the table there and there’s no sign of id_43, can you recommend anything else?

    Thanks again,

    Paddy

  • #4 / Feb 16, 2012 3:23pm

    Shane Eckert

    7174 posts

    Hey Paddy,

    Do you know if you are using in custom publish layouts?

    It could be that if you do have some publish layouts that they were built and saved while the JP Category Select plugin was in use. Now that the add-on is gone and the custom field removed, there are left over references to field_id_43. It’s a working theory anyway.

    To test this, if you do have custom publish layouts saved, resetting them might help.

    As always, it does not hurt to back up the database, just in case. You can never have be too careful with data.

    Let me know what you find.

    Cheers,

  • #5 / Feb 17, 2012 4:47am

    Shane, you’re a gentleman!
    That worked a charm, I reset the publish page layouts and php errors were gone.
    Probably should have tried that before rooting around in phpmyadmin.

    Thanks for your help on this, hugely appreciated.

    Paddy

  • #6 / Feb 17, 2012 10:59am

    Shane Eckert

    7174 posts

    Hi Paddy,

    You are too kind. 😊

    I am very happy to see that the solution worked and that you are back in business.

    Have a great weekend!

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases