We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43285
    • 2 Posts
    Hello,

    I've setup the newest modx version (2.2.6) with Cahracter set utf8 and Collation utf8_general_ci. if i add a page, snippet etc. it skips a id, for example the last id is 5, auto_incement is 6 but if i add a page, the page get the id 7. I test it with the same version and latin1 in this case everything work as it should. I have no idea why this happens and hope anyone can help me.

    system enviroment
    MySQL versin 5.1.66
    PHP 5.3.3

    Cheers
    Simon
      • 3749
      • 24,544 Posts
      I'm guessing that at least part of your DB is set to latin1 (which is the default for MySQL).

      See this: http://bobsguides.com/convert-db-utf8.html
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 43285
        • 2 Posts
        Hi Bob,

        I try it with a new Install (incl. new DB), db was set to utf8 before i start the installation. Nevertheless I've tested the tool, but it still happens. I've forgotten to say that I use two SQL Servers setting up with Master-Master Replication and one with mysql-proxy , i don't think that this is the reason, because other applications work with it without failures. And on both Servers the AI is the same one higher as the last value.
          • 3749
          • 24,544 Posts
          Are you running VersionX, or any other plugin that might be creating an extra resource?

          Have you looked in the site_content table in DB to see if it's skipping the even IDs, or if not, what's in them?

            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting