Search
Other Articles Anywhere questions
Forum

0 - json_decode(): Argument #1 ($json) must be of type string, array given

Niels's Avatar Niels
Hi Peter,

In one of my websites I'm loading data from some custom fields to show team members. I'm running this code from within a module. Today I was informed by my client that there's an error on the pagina which loads this module.

0 - json_decode(): Argument #1 ($json) must be of type string, array given

I'm using this code to load the team members:
{article id="8"}
{foreach data="article-aboutus-employees"}
<figure>
[row:article-field-image]
</figure>
[row:article-aboutus-employee-name]
{/foreach}
{/article

The image is using with the JCE custom field (mediajce). This has never had issues before, but somehow it stopped working now. I've already tried to revert recent JCE and Articles Anywhere updates, but the issue persists.

Joomla error reporting returns:

Confidential information:
(hidden)


Do you have any idea of what could be the issue here?

I'm running Joomla 5.0.3 with JCE 2.9.63 and Articles Anywhere 16.0.5 PRO.

Best regards, Niels
Peter van Westen's Avatar Peter van Westen ADMIN
The issue seems to be with the mediajce field.
Please post a rating at the Joomla! Extensions Directory
Niels's Avatar Niels
I just had contact with Ryan from JCE. It seems to be related to legacy media support:

www.joomlacontenteditor.net/news/jce-pro...eleased#legacy-media

With legacy support activated, the images are correctly loaded by Articles Anywhere. Maybe some action is also need in Articles Anywhere custom field processing?
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription