A
A
ART42018-04-25 17:51:19
MODX
ART4, 2018-04-25 17:51:19

When creating any page, why is id = 0?

When creating an article, the usual page is loading forever as a result. modx revo is worth it.
Who faced?
It can be seen from the logs that every time it is created, write to modx_site_content at entry ID 0.
Log

[2018-04-25 17:04:52] (ERROR @ D:\OpenServer\domains\siteapp\core\model\modx\modx.class.php : 990) `0` is not a valid integer and may not be passed to makeUrl()
[2018-04-25 17:04:52] (ERROR @ D:\OpenServer\domains\siteapp\core\model\modx\modx.class.php : 995) #0 D:\OpenServer\domains\siteapp\core\model\modx\processors\resource\getnodes.class.php(501): modX->makeUrl(0, 'web', '', 'full', Array)
#1 D:\OpenServer\domains\siteapp\core\model\modx\processors\resource\getnodes.class.php(292): modResourceGetNodesProcessor->prepareResourceNode(Object(modDocument_mysql))
#2 D:\OpenServer\domains\siteapp\core\model\modx\processors\resource\getnodes.class.php(62): modResourceGetNodesProcessor->iterate(Array)
#3 D:\OpenServer\domains\siteapp\core\model\modx\modprocessor.class.php(173): modResourceGetNodesProcessor->process()
#4 D:\OpenServer\domains\siteapp\core\model\modx\modx.class.php(1710): modProcessor->run()
#5 D:\OpenServer\domains\siteapp\core\model\modx\modconnectorresponse.class.php(140): modX->runProcessor('resource/getnod...', Array, Array)
#6 D:\OpenServer\domains\siteapp\core\model\modx\modconnectorrequest.class.php(82): modConnectorResponse->outputContent(Array)
#7 D:\OpenServer\domains\siteapp\core\model\modx\modconnectorrequest.class.php(69): modConnectorRequest->prepareResponse(Array)
#8 D:\OpenServer\domains\siteapp\connectors\index.php(77): modConnectorRequest->handleRequest()
#9 {main}

What if I try to install a plugin?
Консоль запущена...
Пробуем установить пакет с подписью: breadcrumbs-1.1.0-pl
Пакет найден... сейчас идёт подготовка к его установке.
Загрузка рабочего пространства пакета...
Рабочее пространство загружено, сейчас устанавливаем пакет...
Error 23000 executing statement: INSERT INTO `modx_categories` (`parent`, `category`, `rank`) VALUES (0, 'Breadcrumbs', 0) Array ( [0] => 23000 [1] => 1062 [2] => Duplicate entry '0' for key 'PRIMARY' ) 
Error saving vehicle object of class modCategory; criteria: Array ( [category] => Breadcrumbs ) 
Attempting to preserve files at D:/OpenServer/domains/siteapp/core/components/breadcrumbs into archive D:/OpenServer/domains/siteapp/core/packages/breadcrumbs-1.1.0-pl/modCategory/e646cc83f87e5adfa023eaa496989557.0.preserved.zip
Успешно установлен пакет breadcrumbs-1.1.0-pl

Help solve the problem..

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question