We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34073
    • 34 Posts
    Been using MIGX successfully on 2.2.0pl2 but now I've run into an issue on a new site in development.

    First, the specs:

    Error Report: Empty
    MODx Version: 2.2.0-pl2 (Traditional)
    Database Type: mysql
    Database Version: 5.1.56-log
    PHP: 5.3.8
    


    Everything work thus far. Created the following template variables for use with MIGX:

    slideshow (migx) - assigned to Home Page template
    slideshowlink (Resource List) - assigned to no template
    slideshowimage (Image) - assigned to no template
    slideshowtitle (Text) - assigned to no template
    slideshowdescription (Text) - assigned to no template

    When I go to the Template Variables tab of a page that use the Home Page template I can see the empty MIGX grid (since I haven't populated it yet) and I an click Add Item.

    The problem happens when I click Add Item. The MIGX box pops up and is stuck in a perpetual Loading cycle and never shows the fields we need to edit.

    For my slideshow template variable i have this for Form Tabs:

    [
    {"caption":"Slideshow", "fields": [
    {"field":"slideshowimage","caption":"Image","inputTV":"slideshowimage"},
    {"field":"slideshowtitle","caption":"Heading","inputTV":"slideshowtitle"},
    {"field":"slideshowdescription","caption":"Description","inputTV":"slideshowdescription"},
    {"field":"slideshowlink","caption":"Link","inputTV":"slideshowlink"}
    ]}
    ]
    


    And this for Grid Columns:

    [
    {"header": "Image", "width": "500", "sortable": "false", "dataIndex": "slideshowimage", "renderer": "this.renderImage"},
    {"header": "Heading", "width": "500", "sortable": "false", "dataIndex": "slideshowtitle"},
    {"header": "Description", "width": "500", "sortable": "false", "dataIndex": "slideshowdescription"},
    {"header": "Link", "width": "100", "sortable": "true", "dataIndex": "slideshowlink"}
    ]
    


    I am just wondering if I'm suffering from missing something obvious.

    One thing I did notice is that I can't see the "File System" listed for Media Sources in the manager unless I double click that area.

    Another thing to note is I have 3 contexts in addition to the web context and I'm attempting this in a context other than the web context.

    Any input would be great.
      • 4172
      • 5,888 Posts
      try this for debugging:
      before trying to add an item
      activate firebug on firefox
      clear the firebug-console

      click 'add item'
      copy the response in the firebug-console and paste it here.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        I was getting the same thing on an upgrade from Revo 2.1.5 to 2.2, but removing the MIGx and uploading and installing the MIGx 2.0 beta via package manager fixed that problem. A few relatively minor bugs, but at least it's usable.
          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
          • 34073
          • 34 Posts
          Thanks. This is a fresh install of 2.2.0-pl2 and the new MIGX. We did have an initial problem where we couldn't install any packages so the host had to disable MOD_Security.

          The Firebug console report is interesting. connector.php is definitely in the path listed (note I have changed the name of the tvs after trying a refresh and am using headlineimage,headlinetitle,headlinecopy):

          POST http://domain.com/assets/components/migx/connector.php 404 Not Found
          
          Headers Tab
          ==========
          Response Headers
          Cache-Control	no-store, no-cache, must-revalidate, post-check=0, pre-check=0
          Connection	close
          Content-Type	text/html
          Date	Wed, 29 Feb 2012 14:52:27 GMT
          Expires	Thu, 19 Nov 1981 08:52:00 GMT
          Pragma	no-cache
          Server	Apache
          X-Powered-By	PHP/5.3.8
          Request Headers
          Accept	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
          Accept-Encoding	gzip, deflate
          Accept-Language	en-us,en;q=0.5
          Connection	keep-alive
          Content-Length	300
          Content-Type	application/x-www-form-urlencoded; charset=UTF-8
          Cookie	PHPSESSID=86e9b42bd289606f03ece7647e6a1caa
          Host	domain.com
          Referer	http://domain.com/manager/?a=30&id=2
          User-Agent	Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
          X-Requested-With	XMLHttpRequest
          modAuth	modx4f1c80a81c1ec8.69734072_14f4e370cf41ea2.09684581
          
          Post Tab
          =======
          
          Parametersapplication/x-www-form-urlencoded
          HTTP_MODAUTH	modx4f1c80a81c1ec8.69734072_14f4e370cf41ea2.09684581
          action	mgr/fields
          autoinc	0
          class_key	modDocument
          isnew	1
          itemid	0
          record_json	[{"headlineimage":"","headlinetitle":"","headlinecopy":""}]
          resource_id	2
          tv_id	10
          tv_name	headline
          wctx	actcda
          Source
          record_json=%5B%7B%22headlineimage%22%3A%22%22%2C%22headlinetitle%22%3A%22%22%2C%22headlinecopy%22%3A%22%22%7D%5D&action=mgr%2Ffields&tv_id=10&tv_name=headline&class_key=modDocument&wctx=actcda&itemid=0&autoinc=0&isnew=1&resource_id=2&HTTP_MODAUTH=modx4f1c80a81c1ec8.69734072_14f4e370cf41ea2.09684581
          
          Response Tab
          ===========
          
          <html><head><title>Error 404: Page not found</title></head><body><h1>Page not found</h1><p>The page you requested was not found.</p></body></html>
          
          Error
          ====
          "NetworkError: 404 Not Found - http://domain.com/assets/components/migx/connector.php"
          


          This appears twice. I've also changed the domain reference to domain.com to protect the client's identity etc., and so forth.
            • 4172
            • 5,888 Posts
            seems http://domain.com/assets/components/migx/connector.php doesn't exist there?

            what do you get, when you copy this address directly into your browser?

            I get

            {"success":false,"message":"Access denied.","total":0,"data":[],"object":[]}
            [ed. note: Bruno17 last edited this post 14 years, 7 months ago.]
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 34073
              • 34 Posts
              I can see the file is there if I FTP into the site. I can download it to my local drive and open it, directly off the place where the server says it doesn't exist. I even changed permissions on it to make it wide open.
              Very strange that it can't be found.
                • 34073
                • 34 Posts
                I can add that I can also navigate to it and open it in the Manager.
                  • 4172
                  • 5,888 Posts
                  what do you get, when you copy this address directly into your browser?
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 34073
                    • 34 Posts
                    Page not found, and the same error in Firebug:

                    NetworkError: 404 Not Found - http://thedomainwereusing.com/assets/components/migx/connector.php

                    When I do it on another installation I get a blank page and no reports in Firebug.

                    I'm having the server configuration looked at. The file is there but for some reason it cannot be processed through HTTP. Tried it on the Captcha component as well and get the same result. Though we can see any .html files such as in the CodeMirror component so at this point it seems to be a configuration problem.

                    Thanks.
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Tried it in the latest Revo nightly. Regular image TV works fine and respects the Media Source assigned to it.

                      MIGx 2.0 installed from Package Manager and patched from the github download. Doesn't work at all before or after patching. Opens form fields window with no icon to open the file browser.

                      Form Tabs:
                      [
                      {"caption":"Image", "fields":[
                          {"field":"image","caption":"Image","inputTV":"pdImg"},
                          {"field":"alt","caption":"Alt","description":"Alt tag for the image."}  
                      ]}
                      ]


                      Grid Columns:
                      [ 
                      {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"},
                      {"header": "Alt", "width": "160", "sortable": "true", "dataIndex": "alt"}
                      ]


                      [edit]Ahah! Put in the form tabs and grid columns from the examples, and it works great. Respects the Media Source, too.

                      [ed. note: sottwell last edited this post 14 years, 7 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