How to Fix the 'Error Decoding JSON Data: Syntax Error' in Joomla When Logging into the Admin Area

preview_player
Показать описание
A video tutorial on how to Fix the "Error Decoding JSON Data: Syntax Error" in Joomla.

Before trying this fix, be sure to backup your Joomla database. Since, in this case you cannot login to the admin area of your site, here is how to back up your Joomla database using phpMyAdmin:

In this video there is an SQL command supplied to run on your database. For your convenience, here it is for cutting and pasting:

update xxxx_modules set params = '' where params like '%{""}%';

To read more about this problem and fix, it was found in the Joomla forums at:

Here is a transcript of the audio of this video:

Hey there Joomla fans! Thanks for tuning in again to Cybersalt's Basic Joomla Channel. I'm Tim Davis.

A big shout-out to my wife today for being patient with me fixing her joomla site that broke. A few Joomla updates ago, when we updated her site, something broke and she could no longer log into the admin area. She'd get the "error decoding json data: syntax error." That's the subject of this tutorial now, "How to fix the "error decoding json data: syntax error".

Let's head on over to the computer and check it out!

Since I can't log in and run any backup extensions that it uses I want to make a backup of this database because we're going to be going right into the database and running a little bit of code.

Now that code that I found is in the Joomla forums in a couple of places and I'll place a link in the description below where you can go and read in one of those locations. I'm also going to place a card above, at the end of the video, and a link in the description below to the tutorial on how to backup your database using phpMyAdmin. It's really important to do that because if something goes wrong while we're running this code and you don't have a backup then your problems have just multiplied.

So, the first thing that I want to show you here is that when I go to try to login, instead of the login form coming up we get this error here; "error decoding json data: syntax error" and that's the problem that we want to fix.

So, to do that we're going to go into the cpanel hosting account for my wife's account - cpanel is what I use on Cybersalt Hosting - once we're logged in there and once you've backed up your database - REALLY, you REALLY want to do that, use that tutorial that I made - once you login to cpanel you're going to go down to phpMyAdmin in the databases section and click it.

When we click on it we're taken to a place where we're presented with the databases that belong to this web hosting account. Here's keysbythe_88keys. It's the only database (information schema is just basic and serves a different purpose.) We're going to click on that database that runs the joomla site, keysbythe_88keys, or whatever your database is that runs your site and we'll be presented with the tables that run her Joomla site.

Next we want to click on "SQL" and it's here in this SQL tab we have this field where we can post in a command that is going to search a certain table and look and change some things that will fix that error. Now here in this Wordpad document I've got the code that we want to run:

update xxxx_modules set params = '' where params like '%{""}%';

I'll put that code in the description of the video as well so you can cut and paste. What we're going to do is select that whole line, I'm going to right click and copy it, get that window out of the way, and now I'm going to click in this window to run the SQL query, which is what it is, and click paste.

Now, before I click "go" and run this, we need to change the four x's before "_modules" to whatever the prefix is for tables in your database. When I look over here in this column I see on this site it is "cyb." So you want to match the prefix replacing the four Xs in this line with whatever the prefixes are for your database - CYB in this case. And so this this SQL query is going to run on the module on the table "modules" in this database - cyb_modules - and it's going to do some looking around and do its thing. So I click go and once it's run it says up here "4 rows affected."

If this was helpful please give me a thumbs up and if you haven't subscribed to the channel please do so! Click subscribe and don't forget to ring the bell next to subscribe that will let you get updates as soon as new videos are posted to the channel.

Thanks for watching, enjoy your Joomla sites.

God bless.

#basicjoomla
#cybersalt
Рекомендации по теме
Комментарии
Автор

Thank you so much for posting this. Had a bunch of old Joomla sites that were originally built in 1.5 and migrated/upgraded through the years. Up to now I've just been replacing the Libraries/Vendor folder with the version from 3.6.2 - glad it's properly fixed in the database now.

SydKrawczyk
Автор

I've been putting this off for some time now on a few sites. I was not locked out but only got this on the first time trying to access the admin area. I was still able to get to the login after a second try off a bookmark. Now that I found this I am going to fix all the sites.

Thank you for putting this up as a video to make it really simple for everyone.

Ecowebdesign
Автор

Excellent presentation style. I love it when people exude calmness and enthusiasm. Since this same error can happen in multiple situations ( mine is whenever I click on a user to edit them) I might suggest that you reflect your specific situation in the title.

kmwhitson
Автор

That's great! It helped me to fix one client site with same issue.
Thank you for the tutorial and fix :)

shahsaurabh
Автор

Would this work to correct any errors with syntax error? I am getting a syntax error with modifying and or creating new articles

thesaviogroup
Автор

hello, i am getting this problem when i try to edit a item on k2 component, i did what you showed on the video, however the error
0 Error decoding JSON data: Syntax error continue to show up ...

WebgeralAntoninoParisi
Автор

Just ran this, I also got "4 rows affected" but I still can't login to my backend. I am running J3.9. I updated the site from 2.5 all the way up to 3.9 today, and seemingly had no issue in 3.9 either. I did not logout when I finished working, I let the backend open and today when I tried to navigate the administrator area I got this "json syntax error" message. I ran your command, still no luck

PierreYTBourdieu
Автор

I find a error
Use jsonreader.setLenient(true) to accept malformed JSON at lime 1 column 1 path $

How can i solve it....

YatRatoLabsnaa
Автор

Hello i have a decoding error when i open file from ebook that format pdf, but still cant open it

diniambarwaty
Автор

I am having issues editing or deleting user accounts. My user account is valid, but i have a couple older user accounts that are not and i would like to delete them. I have no issues creating new users or editing my user account, there are just these 2 old accounts that trigger the JSON syntax error message. Would this method resolve this issue?

haltomcitytexas
Автор

Tim I found a few extensions giving a error massage about Needles that will be read as sting after PHP 7.3 There are very little help with this on the net Please do a video on this problem. I found this when I installed T4 framework. As soon as I started working on the template it gave an needle as strings error on my front end .Needles to say It got dumped in no time flat .Probably the last time I will play with T3/t4 I need to work on my template because as you know Astroid framework is no longer supported as Joomdev left Joomla completely . I am sure lots of your followers will look at this with great interest How will this influence a site in future (long term problems)

steinjonah
Автор

DONT KNOW WHAT TO DO! Can’t long in, it keeps saying org.jsonexeption no value for message. WHAT CAN I DO.

Funnyvideos-cgum
Автор

5 months ago
hello, i am getting this problem when i try to edit a item on k2 component, i did what you showed on the video, however the error
0 Error decoding JSON data: Syntax error continue to show up ...

TODAY (december 7th, 2017)
Hello there. Unfortunately I have not the solution of that, I am using your old Post to keep alive the theme. I have the same problem and I will love find the solution. My site have a lot of Articles imported into K2 and all of that Articles can not be open and receive the same error message like you. Can someone, specially Tim, help us. Sorry my English. Thanks a lot.

thousanddust
Автор

this is the line you posted on video


UPDATE g2vxh_users SET params = ' ' WHERE params LIKE '%{""}%';

WebgeralAntoninoParisi
Автор

An error has occurred.

0 SQL=SELECT version FROM gg1nr_updates WHERE extension_id = 10208

creatoradi.
Автор

How do you fix this error when trying to add a custom thumbnail on my YouTube video?  TIA.

decodingdyslexiaca
Автор

I did a fix for steam it's pretty easy on steam

onlyonwheels