After creating the page, the white sheet and the JSON error

MODX 2.7.2
PHP 7.3.6
Hello! The site worked normally, then the problems began. After saving the page, nothing shows on it. And in the logs error: “Processor failed creation output array due to JSON error 5”

upd.When you repeatedly press the document save button, the page then works fine.

Can you please provide the code for the respective site?

How can I provide the site code? What do you need in the first place? Calls or HTML code?

1 Like

I don’t think plain HTML would cause a JSON error, therefore all calls and potentially used extras might be worth looking at. You can provide large chunks of codes by putting them in 3 single ticks --> ` here.

Also what were the recent changes you made? Was there anything new compared to before (as you mentioned the site worked fine then)?

1 Like

JSON error 5 has to do with the inability to encode special characters. See this older forum thread for example. You’ll probably have to make sure your database stores data as UTF-8.

1 Like


<!doctype html>
<html lang="ru">

    <base href="[[!++site_url]]">
    <meta charset="[[++modx_charset]]">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link rel="stylesheet"
        href="[[++assets_url]]lib/css/bootstrap.min.css?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]lib/css/bootstrap.min.css`]]">
    <link rel="stylesheet"
        href="[[++assets_url]]design/css/bootstrap-theme.css?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]design/css/bootstrap-theme.css`]]">
    <link rel="stylesheet"
        href="[[++assets_url]]design/css/style.css?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]design/css/style.css`]]">
    <link rel="stylesheet"
        href="[[++assets_url]]design/css/responsive.css?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]design/css/responsive.css`]]">

    <link media="print" rel="stylesheet"
        href="[[++assets_url]]design/css/print.css?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]design/css/print.css`]]">

    <link rel="stylesheet"
        href="[[++assets_url]]lib/css/all.min.css?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]lib/css/all.min.css`]]">

    <script src="[[++assets_url]]lib/js/jquery-3.3.1.min.js"></script>
    <script defer
        src="[[++assets_url]]lib/js/bootstrap.bundle.min.js?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]lib/js/bootstrap.bundle.min.js`]]"></script>

    <link rel="stylesheet"
        href="[[++assets_url]]design/css/navbar-offcanvas.css?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]design/css/navbar-offcanvas.css`]]">
        src="[[++assets_url]]design/js/navbar-offcanvas.js?v=[[filectime? &url=`[[++hosting_url_file]][[++assets_url]]design/js/navbar-offcanvas.js`]]"></script>

    <meta name="robots" content="[[+seoTab.robotsTag]]">
    <meta name="Title" content="[[*longtitle:ifempty=`[[*pagetitle:striptags]]`]]">
    <meta name="Description" content="[[*description:ifempty=`[[*content:striptags:CutTextandForTck=`320`]]`]]">
    <meta name="keywords" content="[[+seoPro.keywords]]">
    <link rel="canonical" href="[[~[[*id]]? &scheme=`full`]]">

    <link rel="icon" type="image/x-icon" href="[[++assets_url]]icons/favicon.ico">

    <meta property="og:locale" content="ru_RU" />
    <meta property="og:url" content="[[~[[*id]]? &scheme=`full`]]" />
    <meta property="og:site_name" content="[[++site_name]]">
    <meta property="og:title" content="[[*pagetitle]]" />
    <meta property="og:description" content="[[*description:ifempty=`[[*content:striptags:CutTextandForTck=`320`]]`]]">

    {var $parent = 'pdoField' | snippet : ['field' => 'id', 'topLevel' => '1']}
    {if $parent == 12}
    {if $parent == 11}


1 Like


<div class="Page PageNewsArticle container">
<div class="row justify-content-center align-items-center mb-3">
    <div class="col-2 d-none d-lg-block">
        <a href="/"><img class="img-fluid mx-auto d-block" src="/files/design/img/logo.svg" alt="Логотип"></a>
    <header class="col-md-12 col-lg-10 bvi-voice">
        <div class="row align-items-center">
            <div class="col-auto"><time>[[*publishedon:date=`%d.%m.%Y %H:%M`]]</time></div>
            <div class="PageManagIco col"><a class="float-right" href="javascript:(print());" title="Распечатать"><i
                        class="fas fa-print fa-lg"></i></a><a class="float-right"
                    title="Отправить ссылку по почте"><i class="fas fa-envelope fa-lg"></i></a></div>
        <h2 class="mb-0">[[*pagetitle]]</h2>
    <section class="row">
        <div class="col-lg-2"></div>
        <div class="col-md-12 col-lg-10">
            <a href="[[*tv.News.Image]]" data-fancybox="">
                <img class="img-fluid" src="[[*tv.News.Image]]" alt="[[*pagetitle]]" title="[[*pagetitle]]">
    <article class="row my-4">
        <div class="col-lg-2"></div>
        <div class="PageBigText col-md-12 col-lg-10 bvi-voice">
            <div class="PageContentBg p-3 p-md-4">
    <section class="row justify-content-center">
        <div class="col-lg-2"></div>
        <div class="col-md-12 col-lg-10">
            <div class="row no-gutters">
                [[Gallery? &album=`[[*tv.News.Gallery]]` &thumbTpl=`tpl.Gallery.NewsAlbum`
    <div class="row my-4">
        <div class="col-lg-2"></div>
        <div class="col-md-12 col-lg-10">
            <script src=""></script>
            <script src=""></script>
            <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,twitter,viber,whatsapp,telegram">

Unfortunately, I don’t remember for sure. Fenom activated. After that, the problems began. Turning off Fenom doesn’t solve the problem.

So, when you create a document, you don’t have supported characters in the database?

Then why, when you repeatedly press the document save button, the page then works fine?

The JSON error you mentioned has to do with formatting the response from the action (saving in this case); it doesn’t mean the action wasn’t successful.

1 Like

So it’s not about transferring unsupported characters, it’s about the problem of saving in the database itself. So look for a problem in the database itself?

What could it be? In some table is not the correct encoding is different from UTF-8?

1 Like

Right, exactly. What is your database, Latin/Swedish? Do you have any non-English content?

If you change the db collation, you have to change the whole db not just some fields.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.