Error decoding JSON data: unexpected character - Joomla! Forum - community, help and support
hello gang
with latest release of joomla 3.63 old component got new error < error decoding json data: unexpected character >
i error when try data database function (in models)
this happen because have params fields in table , field fill serialize array.
if empty field working if have serialize data in it.
i error above
don't think side, use php function serialize() serialize regular array, working great past 5 years , don't think have control on $this->getitem();
big help
bill
with latest release of joomla 3.63 old component got new error < error decoding json data: unexpected character >
i error when try data database function (in models)
code: select all
$data = $this->getitem();
this happen because have params fields in table , field fill serialize array.
if empty field working if have serialize data in it.
code: select all
a:2:{s:10:"templateid";s:32:"c81e728d9d4c2f636f067f89cc14862c";s:9:"card_paid";s:2:"25";}
i error above

don't think side, use php function serialize() serialize regular array, working great past 5 years , don't think have control on $this->getitem();
big help
bill
you shouldn't serializing data that, need run through json_encode().
if it's own component there should `getitem()` method in model corresponding it. there isn't default implementation of method in parent model classes in mvc layer.
if it's own component there should `getitem()` method in model corresponding it. there isn't default implementation of method in parent model classes in mvc layer.
Comments
Post a Comment