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

**URL:** <https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879>\
**Category:** Support\
**Created:** [November 21, 2019, 6:06am UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879 "2019-11-21T06:06:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![gohhan](https://community.modx.com/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@gohhan](https://community.modx.com/u/gohhan)\
**Post date:** [November 21, 2019, 6:06am UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/1 "2019-11-21T06:06:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vibedesign](https://community.modx.com/user_avatar/community.modx.com/vibedesign/32/741_2.png) [@vibedesign](https://community.modx.com/u/vibedesign)\
**Post date:** [November 21, 2019, 9:17am UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/2 "2019-11-21T09:17:55Z")

</div>

Can you please provide the code for the respective site?

---

<div class="post-metadata">

**Author:** ![gohhan](https://community.modx.com/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@gohhan](https://community.modx.com/u/gohhan)\
**Post date:** [November 21, 2019, 10:18am UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/3 "2019-11-21T10:18:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vibedesign](https://community.modx.com/user_avatar/community.modx.com/vibedesign/32/741_2.png) [@vibedesign](https://community.modx.com/u/vibedesign)\
**Post date:** [November 21, 2019, 10:24am UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/4 "2019-11-21T10:24:35Z")

</div>

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)?

---

<div class="post-metadata">

**Author:** ![markh](https://community.modx.com/user_avatar/community.modx.com/markh/32/36_2.png) [@markh](https://community.modx.com/u/markh)\
**Post date:** [November 21, 2019, 2:06pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/5 "2019-11-21T14:06:15Z")

</div>

JSON error 5 has to do with the inability to encode special characters. [See this older forum thread for example](https://forums.modx.com/thread/102215/json-error). You’ll probably have to make sure your database stores data as UTF-8.

---

<div class="post-metadata">

**Author:** ![gohhan](https://community.modx.com/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@gohhan](https://community.modx.com/u/gohhan)\
**Post date:** [November 21, 2019, 4:08pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/6 "2019-11-21T16:08:45Z")

</div>

header

> ```
> <!doctype html>
> <html lang="ru">
> 
> <head>
> <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`]]">
> <script
> 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]]">
> <title>[[+seoPro.title]]</title>
> <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}
> {$_modx->getChunk('og.TypeArticle')}
> {/if}
> {if $parent == 11}
> {$_modx->getChunk('og.TypeAfisha')}
> {/if}
> 
> </head>
> 
> <body>
> 
> ```

---

<div class="post-metadata">

**Author:** ![gohhan](https://community.modx.com/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@gohhan](https://community.modx.com/u/gohhan)\
**Post date:** [November 21, 2019, 4:11pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/7 "2019-11-21T16:11:19Z")

</div>

Template

> ```
> [[$des.header]]
> [[$des.topnavbar]]
> <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>
> </div>
> <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"
> href='mailto:?body=[[++site_url]][[*uri]]&subject=[[*pagetitle]]'
> title="Отправить ссылку по почте"><i class="fas fa-envelope fa-lg"></i></a></div>
> </div>
> <h2 class="mb-0">[[*pagetitle]]</h2>
> </header>
> </div>
> <main>
> <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]]">
> </a>
> </div>
> </section>
> <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">
> [[*content]]
> </div>
> </div>
> </article>
> <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`
> &imageWidth=`1280`
> &imageHeight=`1280`]]
> </div>
> </div>
> </section>
> <div class="row my-4">
> <div class="col-lg-2"></div>
> <div class="col-md-12 col-lg-10">
> <script src="https://yastatic.net/es5-shims/0.0.2/es5-shims.min.js"></script>
> <script src="https://yastatic.net/share2/share.js"></script>
> <div class="ya-share2" data-services="vkontakte,facebook,odnoklassniki,twitter,viber,whatsapp,telegram">
> </div>
> </div>
> </div>
> </main>
> </div>
> [[$des.footer]]
> 
> ```

---

<div class="post-metadata">

**Author:** ![gohhan](https://community.modx.com/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@gohhan](https://community.modx.com/u/gohhan)\
**Post date:** [November 21, 2019, 4:16pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/8 "2019-11-21T16:16:55Z")

</div>

> [@vibedesign](#):
>
> Also what were the recent changes you made? Was there anything new compared to before (as you mentioned the site worked fine then)?

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

---

<div class="post-metadata">

**Author:** ![gohhan](https://community.modx.com/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@gohhan](https://community.modx.com/u/gohhan)\
**Post date:** [November 21, 2019, 4:21pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/9 "2019-11-21T16:21:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![markh](https://community.modx.com/user_avatar/community.modx.com/markh/32/36_2.png) [@markh](https://community.modx.com/u/markh)\
**Post date:** [November 21, 2019, 5:29pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/10 "2019-11-21T17:29:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gohhan](https://community.modx.com/letter_avatar_proxy/v4/letter/g/f475e1/32.png) [@gohhan](https://community.modx.com/u/gohhan)\
**Post date:** [November 21, 2019, 6:31pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/12 "2019-11-21T18:31:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![nuan88](https://community.modx.com/user_avatar/community.modx.com/nuan88/32/350_2.png) [@nuan88](https://community.modx.com/u/nuan88)\
**Post date:** [November 22, 2019, 8:27pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/13 "2019-11-22T20:27:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://community.modx.com/user_avatar/community.modx.com/system/32/2_2.png) [@system](https://community.modx.com/u/system)\
**Post date:** [December 1, 2019, 12:57pm UTC](https://community.modx.com/t/after-creating-the-page-the-white-sheet-and-the-json-error/1879/14 "2019-12-01T12:57:42Z")

</div>

Closed on December 1, 2019, 12:57pm UTC

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