I’m getting the error:
A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'row_id'
Filename: grid/ft.grid.php
Line Number: 115when I try to delete an entry that contains a Grid field.
This is on a fresh installation on my local MAMP set-up (so I cannot give you access at the moment), but I added a debug line to grid/ft.grid.php line 108:
print_r( $entries );which gave:
Array
(
[params] => Array
(
[sort] => asc
[orderby] => row_order
[limit] => 100
[offset] => 0
[search] => Array
(
)
[backspace] => 0
[row_id] => 0
[fixed_order] => 0
)
[19] => Array
(
[82] => Array
(
[row_id] => 82
[entry_id] => 19
[row_order] => 0
[col_id_1] => Banana
[col_id_2] => https://ellislab.com/asset/images/team-photo/bnb5.png
[col_id_3] => 1294012800
[col_id_6] =>
)
[83] => Array
(
[row_id] => 83
[entry_id] => 19
[row_order] => 1
[col_id_1] => Armadillo
[col_id_2] => https://ellislab.com/asset/images/team-photo/bnb4.png
[col_id_3] => 946080000
[col_id_6] =>
)
)
)It looks like it is also looking in the ‘params’ array element for rows to delete (if that’s any help…).
The deletion is successful.
Andrew
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.