We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26401
    • 247 Posts
    Something is causing my resources to be deleted.
    The action does not appear in manager actions.
    I have a hard time pinpointing the time when the resource disappears

    has anyone encountered this before or can offer a suggestion on an intermittent problem such as this?
      • 30585
      • 833 Posts
      When the resources get deleted, are they marked as such in the tree (red highlight)? Which plugins are active?
        A MODx Fanatic
        • 26401
        • 247 Posts
        Quote from: treigh at Feb 26, 2016, 10:44 PM
        When the resources get deleted, are they marked as such in the tree (red highlight)? Which plugins are active?

        I'm looking in the database and see that the resource is missing there, so there is no red line through it.

        I can see the resource left over in the modx_mse_modResIndex table that is used by mSearch

        I'm using these plugins
        BreadCrumb
        ClientConfig
        CodeMirror
        ColorPicker
        DitsNews
        FirstChildRedirect
        FormIt
        getPage
        getResources
        GoogleSiteMap
        If
        MetaX
        * MIGX
        * miniShop2
        * mSearch
        pdoTools
        pThumb
        Rowboat
        SimpleSearch
        TinyMCE
        Wayfinder

        I have a feeling that one of (or the combination of) the three starred could be causing some issues.


        I also get a lot of these errors
        (ERROR @ /index.php) `[[+id]]` is not a valid integer and may not be passed to makeUrl()
        (ERROR in xPDOConnection::connect @ /*****/public_html/core/xpdo/xpdo.class.php : 3031) SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
        The site however seems to operate with the errors.
        [ed. note: scorche last edited this post 10 years, 7 months ago.]
          • 3749
          • 24,544 Posts
          Try repairing all tables in the database in PhpMyAdmin.

          Are you absolutely sure the resources are not in the modx_site_content table? You can click on the pagetitle header to sort them by pagetitle when looking for the database.

          That would be very unusual. It would mean that the resources are being deleted in code somewhere and not by MODX itself. None of the plugins on your list would do that, with the possible exception of miniShop2. I've never used it, but I'd be surprised if it would delete MODX resources.
            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
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Those MySQL socket errors sound like an overloaded server, which could lead to corruption of database tables.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 26401
              • 247 Posts
              Quote from: BobRay at Feb 27, 2016, 10:11 PM

              Are you absolutely sure the resources are not in the modx_site_content table? You can click on the pagetitle header to sort them by pagetitle when looking for the database.

              I looked through the raw database output, the resources are gone.

              I see that miniShop2 has methods for resource deletion, so I'll investigate further.

              I can see images being associated with a resource being deleted in the manager log, but not the resource itself... it's bizarre