We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Do you have an updated package I can download and install? Maybe I broke something when I replaced the files in the 2.0 installation when I patched it with the files from github.
      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
      • 4172
      • 5,888 Posts
      updated the package at modx-extras
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Still doing the same thing. Everything else loops as expected, but the "image" placeholder just repeats the first image's path.

        It's all correct in the database, and the thumbnails in the Manager are correct. It's only the snippet that is doing this.

        This is a fresh installation of Revo with nothing at all done with it except installing MIGx.
          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
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Tried again, new installation of Revo (today's nightly) and installed MIGx beta2. The button to open the file browser is missing; the content there is just the span.

          Get this error in the error logs after creating a new migx TV

          [2012-03-01 21:27:36] (ERROR @ /revo-301/connectors/element/tv.php) modTemplateVarTemplate: Attempt to set NOT NULL field rank to NULL

          I get the same error when creating a normal Image type TV and it still works as expected.
            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
            • 4172
            • 5,888 Posts
            hmm....
            got a fresh nightly revo.
            uploaded it to the hosted webserver.
            created a new subdomain
            installed revo.
            loaded MIGX from package-management.
            created a new MIGX-TV with your configs.
            created a new media-source
            created a new image-tv (without binding to any template) and added the new mediasource to it
            uploaded some images to the mediasource-folder
            added some items to my MIGX-TV, each with another image (all did work correctly, also no errors in the error-log)
            added this to my content
            [[!getImageList? &tvname=`migx1`]]


            and got:

            Array
            (
                [MIGX_id] => 1
                [image] => /assets/images/DragonCup2008 016.jpg
                [alt] => 
                [_alt] => 0
                [_first] => 1
                [_last] => 
                [idx] => 1
                [property.tvname] => migx1
            )
            Array
            (
                [MIGX_id] => 2
                [image] => /assets/images/DragonCup2008 044.jpg
                [alt] => 
                [_alt] => 1
                [_first] => 
                [_last] => 
                [idx] => 2
                [property.tvname] => migx1
            )
            Array
            (
                [MIGX_id] => 3
                [image] => /assets/images/DragonCup2008 028.jpg
                [alt] => 
                [_alt] => 0
                [_first] => 
                [_last] => 1
                [idx] => 3
                [property.tvname] => migx1
            )
            


            I would be happy could help you, but can't think what goes wrong for you, Susan.


            [ed. note: Bruno17 last edited this post 14 years, 6 months ago.]
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              The errors most likely are from a different version and/or configuration of the database, objecting to a null value being inserted into a not-null field. Nothing to do with MIGx, anyway.

              If I use Package Manager to uninstall, I get this

              Removed modPlugin instance with primary key 1
              Skipping modPluginEvent object (data object does not exist and cannot be removed): Array ( [pluginid] => 1 [event] => OnTVInputPropertiesList )
              Skipping modPluginEvent object (data object does not exist and cannot be removed): Array ( [pluginid] => 1 [event] => OnTVInputRenderList )
              Removed modNamespace instance with primary key migx
              Package successfully uninstalled with signature: migx-2.0.0-beta2

              When installing, the console doesn't list any output at all. This happens fairly frequently with the console, also when clearing the cache it often doesn't show any output. I don't think that has anything to do with the problem with MIGx not loading the button for the image browser, though.


              [ed. note: sottwell last edited this post 14 years, 6 months ago.]
                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
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Ok, problem solved. My stupidity. I didn't realize you have to create supporting TVs for certain fields that use the standard MODx input widgets, like rich-text or image input types.
                  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
                  • 36738
                  • 14 Posts
                  Hello there. I'm getting this error when using the example of MIGX. Can some help me out on this?

                  Fatal error: Call to a member function getSource() on a non-object

                  I'm using modx 2.2-pl2 with the latest version of MIGX.
                    • 4172
                    • 5,888 Posts
                    Quote from: cas-designz at Mar 05, 2012, 06:04 AM
                    Hello there. I'm getting this error when using the example of MIGX. Can some help me out on this?

                    Fatal error: Call to a member function getSource() on a non-object

                    I'm using modx 2.2-pl2 with the latest version of MIGX.

                    In which situation exactly?
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 36738
                      • 14 Posts
                      I'm getting this error on every page on the front-end. Even the templates wich not includes a MIGX TV. [ed. note: cas-designz last edited this post 14 years, 6 months ago.]