[SOLVED] Error after J3.6.4 update: Error decoding JSON data: unexpected end of data

More
8 years 3 weeks ago #64758 by Chabi01
Nice :)
I have my list again.
You wrote i have 3 more files to edit ?
And again Georges, thanks (really mean it !)
:)

Please Log in or Create an account to join the conversation.

More
8 years 3 weeks ago #64759 by ggppdk
Hello

you probably, you do not need to edit anything now , you can wait a couple of days for v3.1.1

that is because only 1 item had bad attributes,

and listing it in backend has now cleaned its parameters
(and they were not used already before since they were broken)

(if you only have 2000 or less items, you may want to set pagination to 100 to items manager (do not use more) and navigate through all pages to make sure no other files have same issue)

About hitting the same problem in frontend an extra check will be in v3.1.1


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #65423 by davidote

ggppdk wrote: Hello

edit file: (at line 369)
administrator/components/com_flexicontent/models/items.php:

Replace line:

Code:
$item->config = new JRegistry($item->config);

with:
Code:
try { $item->config = new JRegistry($item->config); } catch (Exception $e) { $item->config = new JRegistry(); $this->_db->setQuery('UPDATE #__content SET attribs = "{}" WHERE id = ' . (int) $item->id); $this->_db->execute(); }

Then view the backend items manager page 2 times

- note there are more places to add checks

e.g. if you try to view the item with the broken JSON attributes in the frontend then you will get an error

but if you list it in the backend items manager then it will be fixed (thanks to above fix) then it will be fixed and you can then view it in frontend


- I will manually break the attributes of an item to see where the error is triggered to add check to all needed places ...

all these will be in v3.1.1 (coming this weekend) (v3.1.1 will only have a handful of fixes for rare issues and no new features)


Hi there,

I have had this same problem with Flexicontent 3.1.1 and Joomla 3.6.5. I followed your instructions and now works well the list of items. Thank you very much.
Last edit: 7 years 11 months ago by davidote.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.351 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline