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

    When installing Gallery using the package management, the console gets as far as:
    "
    Skipping vehicle object of class modSystemSetting (data object exists and cannot be upgraded); criteria: Array ( [key] => gallery.backend_thumb_zoomcrop )"


    And then it just stops. My PHP error log contains:

    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP Fatal error: Call to undefined method xPDOManager_mysql::addField() in /core/packages/gallery-1.5.2-pl/modMenu/def4ac811464491e73fb74f3de7d1f7e.resolve.dbchanges.resolver on line 42
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 1. {main}() /connectors/workspace/packages.php:0[Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 2. modConnectorRequest->handleRequest() /connectors/workspace/packages.php:3
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 3. modConnectorRequest->prepareResponse() /core/model/modx/modconnectorrequest.class.php:65
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 4. modConnectorResponse->outputContent() /core/model/modx/modconnectorrequest.class.php:76
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 5. include() /core/model/modx/modconnectorresponse.class.php:86
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 6. modTransportPackage->install() /core/model/modx/processors/workspace/packages/install.php:26
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 7. xPDOTransport->install() /core/model/modx/transport/modtransportpackage.class.php:177
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 8. xPDOObjectVehicle->install() /core/xpdo/transport/xpdotransport.class.php:194
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 9. xPDOObjectVehicle->_installObject() /core/xpdo/transport/xpdoobjectvehicle.class.php:88
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 10. xPDOVehicle->resolve() /core/xpdo/transport/xpdoobjectvehicle.class.php:184
    [Wed May 08 21:21:45 2013] [error] [client 92.237.133.247] PHP 11. include() /core/xpdo/transport/xpdovehicle.class.php:226


    This is with Revo 2.0.4-pl2. Any ideas?!

    Thanks,
    Mark
      • 18409
      • 54 Posts
      It also seems to have broken editing pages in ModX. If I try and edit a page now i just get a blank white screen, and the PHP error log contains:
      "PHP Fatal error: Call to a member function addLexiconTopic() on a non-object in /core/cache/elements/modplugin/4.include.cache.php on line 56"

      I've removed Gallery from the plugins, and cleared the site cache, but this still happens. If I open the file above, it is related to Gallery - the comments at the top says " Handles plugin events for Gallery's Custom TV".

      Any ideas take two ? I'd quite like to just get this back so I can edit pages again!

      cheers!
        • 3749
        • 24,544 Posts
        Try deleting all files in the core/cache directory if you haven't already. The Gallery plugin may still be in the cache. Clearing your browser cache and cookies might also help.
          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
          • 18409
          • 54 Posts
          Clearing the cache manually didn't work I'm afraid, but I also removed a folder called "gallery" I found in core/components, cleared the cache again, and can now edit my site again.

          Any ideas about why Gallery won't install? The error "Call to undefined method xPDOManager_mysql::addField() " suggests it doesn't like my version of ModX because it can't find a method it is expecting, but the Gallery docs say it's supported on the version I'm running...
            • 18409
            • 54 Posts
            OK, so I found the file I think it's referring to - core\xpdo\om\mysql\xpdomanager.class.php - and it doesn't contain the method "addField" as per the error message. The file in latest version of ModX *does* contain that method, so it looks like the Gallery docs are wrong on the versions of ModX they support.

            I'll see if I can upgrade my ModX instance and file a Gallery bug report.