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

    since the update with reco 2.5, migx doesn't work.

    when I try to access to the configuration page :

    Notice: Trying to get property of non-object in [...]core/components/migx/model/migx/migx.class.php on line 883

    thanks
      • 36448
      • 58 Posts
      Hi,

      Yes it's running. Only an idea - have you the newest version and have cleared the cache via file server?
        • 4172
        • 5,888 Posts
        try to set the system-setting 'debug' to 0 for now.
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 34118
          • 45 Posts
          I've got this problem too.
          MODx 2.5.0 Migx 2.9.6

          Tried manually clearing the cache. Haven't tried system-setting debug to 0 as that looks like a very temporary workaround.

          Looking at file /core/components/migx/model/migx/migx.class.php on line 883
          $this->config['media_source_id'] = $this->source->id;

          This provides advice - https://github.com/Bruno17/MIGX/issues/222
          Linking to this
          https://github.com/Bruno17/MIGX/commit/22004b3d057d0a0c8d55c4f431f42b65883a404f
          So I made the change to line 883 and then went looking for getDefaultSource around 1492. Trouble is, this function doesn't exist. Although there is one reference to it. From getFieldSource().
                      
                  $mediasource = modMediaSource::getDefaultSource($this->modx,$defaultSourceId);
                  }
                  return $mediasource;
              }
              // I expected to see getDefaultSource here... 
              function generateTvTab($tvnames) {
                  $tvnames = !empty($tvnames) ? explode(',', $tvnames) : array();


          Looking at the Changelog in the Package Installer only 2.9.5 changes are mentioned.

          I note from gitgub there is a 2.9.7 and a 2.10.0 beta. Perhaps 2.9.7 is the working solution?

          Summary
          2.9.6 seems to be broken. But why isn't everyone using MIGx over the past year or so seeing the same problem? And changelog in Package Installer only goes up to 2.9.5. Which may be a typo.
          Should 2.9.7 be added to the Package Installer?

          Thanks
          Parthian
            • 20648
            • 26 Posts
            Hi,
            migX don't work after upgrade to modx v2.5.4 (upgrade from v2.5.0)
            I have migx v2.9.6 and PHP 5.6.30

            IE
            I have a TV "OperatingHours", from migx.tutorials, https://docs.modx.com/extras/revo/migx/migx.tutorials/migx.simple-opening-hours-table

            Inside my resource in the tab "Template Variables", I tries to add a new line to my OperatingHours TV. The modal window is showing with text "loading...", but it all stops here.

            I have tried to set the system-setting 'debug' to 0 as suggested from Bruno17. Also tried to empty cache. But no success.

            On my site I have 2 other tv using migx and a client who need to do some changes. And I dont know what to do...
            Can someone please help me to fix the problem?

            thanks.
            Murias
              • 4172
              • 5,888 Posts
              Did you try to empty the core/cache - directory after upgrade?
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 20648
                • 26 Posts
                thanks for answer.
                Do you mean delete all files in core/cache manually on ftp? if so I did delete it now, but still the same "loading screen".

                I have not tried to reinstall migx. Not sure if i break any of the data/records in my tv's using migx? Or is it harmless?

                Murias
                  • 20648
                  • 26 Posts
                  OK,
                  answer my own question. Problem was permissions on folders. CMOD to 755 on folders and 644 on files did the trick.

                  Thanks
                  Murias
                    • 4172
                    • 5,888 Posts
                    how comes? Didn't you just do an upgrade?


                    migX don't work after upgrade to modx v2.5.4 (upgrade from v2.5.0)
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!