Advertisement:

Author Topic: Sources/Load.php (Line 1592): Json decode error: Syntax error, malformed JSON  (Read 407 times)

Offline m4z

  • Jr. Member
  • **
  • Posts: 213
I'm seeing an issue similar to this 2017 thread about upgrade problems:
Code: [Select]
index.php?topic=555369.msg3936643#msg3936643 ("Sorry, you are not allowed to post external links."). However, in my case I'm in a fresh SMF2.1rc2 install.

Full error log entry:
  • Type of error: Critical
  • Json decode error: Syntax error, malformed JSON
  • hXXps://redacted/~beta-smf/index.php?action=pm
  • /home/beta-smf/public_html/Sources/Load.php (Line 1592)

The error appears often, probably for every request.

I have used the
Code: [Select]
SMF_UTF8_Diag.php script from the above thread and will try to attach the (redacted, no special characters removed) output.
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline m4z

  • Jr. Member
  • **
  • Posts: 213
I forgot to mention the env details:
  • Debian 8
  • Lighttpd 1.4.35
  • PHP 5.6
  • Postgresql 9.4
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline albertlast

  • Development Contributor
  • Full Member
  • *
  • Posts: 586
Ther is an error in the pg setup,
this get fixed by this pr: https://github.com/SimpleMachines/SMF2.1/pull/5593/files

You can choose to reinstall your version fix this fix or
to generated a new version of displayfields.

To generate the value new you can add a new custom fields under "Custom Profile Fields" and than remove it again.

This could also fix you other issue here: https://www.simplemachines.org/community/index.php?topic=567071.0

Offline m4z

  • Jr. Member
  • **
  • Posts: 213
Ther is an error in the pg setup,
this get fixed by this pr: https://github.com/SimpleMachines/SMF2.1/pull/5593/files

You can choose to reinstall your version fix this fix or
to generated a new version of displayfields.

To generate the value new you can add a new custom fields under "Custom Profile Fields" and than remove it again.

Thanks, can you elaborate on the second case? I'd prefer not reinstalling (because I don't know yet how to save and restore the DB in that case). Where do I find these "Custom Profile Fields"? Are you refering to the SMF Mod of the same name? Can I add _any_ new custom field or does it have to have certain options?
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline m4z

  • Jr. Member
  • **
  • Posts: 213
Hmm, the mod isn't compatible with 2.1rc2 and gave an unspecified error during the first step of install, so I didn't proceed installing it.
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,367
    • StoryBB/StoryBB on GitHub
No, the mod was later built into SMF.

You need to go to admin, use the built in feature to add any new field, doesn't matter what, and remove it again.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline m4z

  • Jr. Member
  • **
  • Posts: 213
After reading the SMF2.0 features and options docs and "How to use Advanced Profile Fields" in the wiki, I think you're referring to Administration Center -> Configuration -> Features and Options -> Profile Fields.
"Faith is what you have in things that don't exist."
--Homer Simpson

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,367
    • StoryBB/StoryBB on GitHub
Yes, that's what we're referring to.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline m4z

  • Jr. Member
  • **
  • Posts: 213
Thanks, that fixed my problem mentioned above! (The offset errors from my other thread remain, though.)
"Faith is what you have in things that don't exist."
--Homer Simpson