When trying to edit the value of a category field using podio-php, I'm encountering an error. My current code is
$item = PodioItem::get($itemID); $item->fields[$externalid]->values = 5;
which is spitting out
Notice: Indirect modification of overloaded element of PodioItemFieldCollection has no effect in <file path> on line 70.
I have no idea what this means, and when I print the item, the changes haven't been made. I'm using PHP 5.3, which is supported according to the documentation, but I've seen a few mentions on the internet of this error occurring with code designed for PHP 5.4 (e.g. http://www.joshualyman.com/2012/03/fixing-indirect-modification-problems-in-php-pre-5-4/).
Anything people can think of that would be causing this issue?
Please sign in to leave a comment.