Giter VIP home page Giter VIP logo

Comments (3)

Mark-H avatar Mark-H commented on August 16, 2024

Obviously when writing the issue I find something possibly related in the error log:

INSERT INTO `modx_site_content` (`id`, `type`, `contentType`, `pagetitle`, `longtitle`, `description`, `alias`, `link_attributes`, `published`, `pub_date`, `unpub_date`, `parent`, `isfolder`, `introtext`, `content`, `richtext`, `template`, `menuindex`, `searchable`, `cacheable`, `createdby`, `createdon`, `editedby`, `editedon`, `deleted`, `deletedon`, `deletedby`, `publishedon`, `publishedby`, `menutitle`, `donthit`, `privateweb`, `privatemgr`, `content_dispo`, `hidemenu`, `class_key`, `context_key`, `content_type`, `uri`, `uri_override`, `hide_children_in_tree`, `show_in_tree`) VALUES (126, 'reference', 'text/html', 'Forums', '', '', 'forums', '', 1, 0, 0, 101, 0, '', '[[~73]]', 1, 1, 2, 1, 1, 0, 1419987906, 0, 0, 0, 0, 0, 1374334995, 1, '', 0, 0, 0, 0, 0, 'modWebLink', 'support', 1, 'forums/', 0, 0, 1)
Array
(
    [0] => 23000
    [1] => 1062
    [2] => Duplicate entry '126' for key 'PRIMARY'
)

Looks like it's matching by URI, but then throws an error because of a duplicate ID. Which is weird, as there aren't any ID clashes in this site to my knowledge. Maybe we need an extra check by ID when matching by URI... These errors don't seem to be getting thrown for all the missing resources tho..

from gitify.

Mark-H avatar Mark-H commented on August 16, 2024

Turned out the problem was duplicate URIs across contexts. That was causing it to overwrite certain resources in other contexts.

A side effect of that was that some resources were getting created with auto incrementing IDs, causing the duplicate entry errors. Needed a forced build to correct it.

from gitify.

Mark-H avatar Mark-H commented on August 16, 2024

Was fixed in 74f4b64

from gitify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.