Help me with "Undefined index: id"

Help me with "Undefined index: id"

makkartnismakkartnis Posts: 1Questions: 1Answers: 0

When create new entry and table has auto increment field "id", this happens. I don't display this field in table.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,529Questions: 1Answers: 10,473 Site admin
    Answer ✓

    Hi,

    Sorry about the error. This is a bug in Editor 1.3.0 unfortunately. I'm going to release 1.3.1 next week with a fix, but for the moment, the patch to address it is actually relatively simple. What do to is edit the php/Editor/Field.php file and change:

    'id' => str_replace( $editor->idPrefix(), '', $processData['id'] ) ,
    

    to be:

    'id' => str_replace( $editor->idPrefix(), '', isset( $processData['id'] ) ? $processData['id'] : null ),
    

    Regards,
    Allan

  • MattDMattD Posts: 27Questions: 2Answers: 0
    edited May 2014

    I'm struggling with the same problem. My table has a primary key that is auto increment. I downloaded Editor 1.3.1 but I still can't get the record I just added to display in the table without refreshing the entire page.

  • allanallan Posts: 63,529Questions: 1Answers: 10,473 Site admin

    Are you able to show me the code you are using and / or a test page? Do you have a where condition that you are using?

    Thanks,
    Allan

This discussion has been closed.