We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33966
    • 52 Posts
    Hi
    I did setup a blog with Article Extra and it worked well. Tonight i did download the DirectResize Revo Extra and since then i got the above fatal error in the blog when viewing the blog site. I deinstalled Direct Resize after that, but blog ist not working anymore.

    What could that be?

    Thanks
    Markus

    This question has been answered by BobRay. See the first response.

      • 3749
      • 24,544 Posts
      It's tough to say what's wrong. The error is in Quip's makeUrl() function. It's looking for a resource and not finding it (and not failing very gracefully). I can't think of any way DirectResize would cause this.

      Try deleting all files in the core/cache directory and reinstalling Quip (don't uninstall it!, just click on the reinstall button in Package Manager).
        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
        • 33966
        • 52 Posts
        Hi BobRay

        I tried this but the same error...

        Please help.
        • discuss.answer
          • 3749
          • 24,544 Posts
          Try going into PhpMyAdmin and repairing all tables in the DB.

          If that doesn't work, here's the only other thing I can think of to suggest. It won't necessarily solve your problem and I can't guarantee that it won't have any negative side effects (though I don't think it will).

          In this file:

          core/components/quip/model/quip/quipcomment.class.php

          Change this code (around line 108):

          if (empty($options['context_key'])) {
              $modresource = $this->xpdo->getObject('modResource', $resource);
              $options['context_key'] = $modresource->get('context_key');
          }


          to this (the new code goes between the first and second line. They are unchanged):

          if (empty($options['context_key'])) {
              $modresource = $this->xpdo->getObject('modResource', $resource);
              if (! $modresource) {
                  $this->xpdo->log(xPDO::LOG_LEVEL_ERROR, '[Quip] Could not find resource: ' . $resource);
                  return '';
              }
              $options['context_key'] = $modresource->get('context_key');
          }
          [ed. note: BobRay last edited this post 11 years, 10 months ago.]
            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
            • 33966
            • 52 Posts
            Bob Ray

            Thanks a lot, you saved my day.

            Nor deleting the cache files nor repairing the database helped! But your php code for the quipcomment.class.php file is the solution. My blog is back on!!!

            Thanks again, i really do appreciate the great help in this forum from the MODx experts.

            Markus
              • 3749
              • 24,544 Posts
              Glad I could help. Check the MODX error log in the Manager, there should be a message there (maybe a bunch of them) starting with [Quip]. I'm curious to see it (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
                • 33966
                • 52 Posts
                Quote from: BobRay at Nov 11, 2014, 05:10 PM
                Glad I could help. Check the MODX error log in the Manager, there should be a message there (maybe a bunch of them) starting with [Quip]. I'm curious to see it (them).

                Here you go:

                [2014-11-11 20:26:34] (ERROR @ /manager/index.php) [OnTVInputRenderList]
                [2014-11-11 20:32:04] (ERROR @ /manager/index.php) [OnTVInputRenderList]
                [2014-11-11 20:32:06] (ERROR @ /assets/components/quip/connector.php) [Quip] Count
                not find resource: 31
                [2014-11-11 20:32:06] (ERROR @ /assets/components/quip/connector.php) [Quip] Count
                not find resource: 28
                [2014-11-11 20:32:11] (ERROR @ /assets/components/quip/connector.php) [Quip] Count
                not find resource: 31
                [2014-11-11 20:32:11] (ERROR @ /assets/components/quip/connector.php) [Quip] Count
                not find resource: 28
                [2014-11-11 20:32:15] (ERROR @ /index.php) [Quip] Count
                not find resource: 31
                [2014-11-11 20:32:15] (ERROR @ /index.php) [Quip] Count
                not find resource: 28
                [2014-11-11 20:32:36] (ERROR @ /index.php) [Quip] Count
                not find resource: 31
                [2014-11-11 20:32:36] (ERROR @ /index.php) [Quip] Count
                not find resource: 28
                [2014-11-11 21:51:34] (ERROR @ /index.php) [Quip] Count
                not find resource: 31
                [2014-11-11 21:51:34] (ERROR @ /index.php) [Quip] Count
                not find resource: 28
                [2014-11-11 22:16:48] (ERROR @ /index.php) [Quip] Count
                not find resource: 31
                [2014-11-11 22:16:49] (ERROR @ /index.php) [Quip] Count
                not find resource: 28
                [2014-11-11 22:40:03] (ERROR @ /manager/index.php) [OnTVInputRenderList]
                [2014-11-11 22:47:53] (ERROR @ /manager/index.php) [OnTVInputRenderList]
                [2014-11-11 22:59:06] (ERROR @ /manager/index.php) [OnTVInputRenderList]
                [2014-11-11 23:00:52] (ERROR @ /connectors/index.php) [OnTVInputRenderList]
                [2014-11-11 23:01:55] (ERROR @ /connectors/index.php) [OnTVInputRenderList]
                [2014-11-11 23:02:19] (ERROR @ /connectors/index.php) [OnTVInputRenderList]
                [2014-11-11 23:02:37] (ERROR @ /connectors/index.php) [OnTVInputRenderList]
                [2014-11-11 23:03:00] (ERROR @ /connectors/index.php) [OnTVInputRenderList]
                [2014-11-11 23:07:06] (ERROR @ /manager/index.php) [OnTVInputRenderList]
                [2014-11-11 23:10:58] (ERROR @ /index.php) [Quip] Count
                not find resource: 31
                [2014-11-11 23:10:58] (ERROR @ /index.php) [Quip] Count
                not find resource: 28
                [2014-11-11 23:10:58] (ERROR @ /index.php) [Quip] Count
                not find resource: 31
                [2014-11-11 23:10:58] (ERROR @ /index.php) [Quip] Count
                not find resource: 28
                [2014-11-11 23:12:12] (ERROR @ /index.php) [Quip] Count
                not find resource: 31
                [2014-11-11 23:12:12] (ERROR @ /index.php) [Quip] Count
                not find resource: 28
                [2014-11-11 23:21:24] (ERROR @ /manager/index.php) [OnTVInputRenderList]
                [2014-11-11 23:34:24] (ERROR @ /index.php) [Quip] Count
                not find resource: 31
                [2014-11-11 23:34:24] (ERROR @ /index.php) [Quip] Count
                not find resource: 28
                [2014-11-12 00:12:00] (ERROR @ /manager/index.php) [OnTVInputRenderList]

                Something that is also weird is that i have most the time to do a reload when i render a new page, there is a like a dark curtain instead of the page...
                  • 3749
                  • 24,544 Posts
                  Try clearing the error log and then deleting all files in the core/cache directory. See if that makes the error go away.

                  You might also try repairing the tables in the DB in PhpMyAdmin.

                  My guess is that you have some orphan comments. They're marked as connected to those two resources (28 and 31), but those resources don't exist any more.

                  BTW, in the code, it should be "could" not "count." My mistake.
                    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
                    • 33966
                    • 52 Posts
                    Yes you are right, i found some orphan comments which belonged to 2 resource i did delete! Now no more error messages in the log.

                    Thanks a lot!
                    Markus


                    Quote from: BobRay at Nov 11, 2014, 08:57 PM
                    Try clearing the error log and then deleting all files in the core/cache directory. See if that makes the error go away.

                    You might also try repairing the tables in the DB in PhpMyAdmin.

                    My guess is that you have some orphan comments. They're marked as connected to those two resources (28 and 31), but those resources don't exist any more.

                    BTW, in the code, it should be "could" not "count." My mistake.
                      • 3749
                      • 24,544 Posts
                      BTW, the SiteCheck utility would might have been really handy in such cases if the Quip comments are resources (not sure if they are or not). http://bobsguides.com/sitecheck-promo.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