News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Sources/Load.php (Line 1592): Json decode error: Syntax error, malformed JSON

Started by m4z, April 10, 2019, 06:56:25 PM

Previous topic - Next topic

m4z

I'm seeing an issue similar to this 2017 thread about upgrade problems: 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:

The error appears often, probably for every request.

I have used the 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

Es gibt hier im Forum ein deutsches Support-Board!

m4z

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

Es gibt hier im Forum ein deutsches Support-Board!

albertlast

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

m4z

Quote from: albertlast on April 11, 2019, 10:15:52 AM
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

Es gibt hier im Forum ein deutsches Support-Board!

m4z

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

Es gibt hier im Forum ein deutsches Support-Board!

Arantor

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.

m4z

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

Es gibt hier im Forum ein deutsches Support-Board!

Arantor


m4z

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

Es gibt hier im Forum ein deutsches Support-Board!

Advertisement: