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

    I am setting up a MIGXDB by following this tutorial: http://www.youtube.com/watch?v=Dv83iC9iELI

    I have my table set up and items added and I can see the items in the database, and am now at the point where I need to output that information. This does not do anything at all:

    [[!migxLoopCollection?
    &packageName=`products`
    &className=`Product`
    &tpl=`tpl-migx-products`
    &where=`{"published":"1"}`
    ]]

    I have tried removing both &where and &tpl, and still nothing happens. I am getting this in the error log when I refresh the page though:

    [2014-09-29 11:52:30] (ERROR @ /index.php) No class specified for loadClass
    [2014-09-29 11:52:30] (ERROR @ /index.php) No class specified for loadClass
    [2014-09-29 11:52:30] (ERROR @ /index.php) ::getSelectColumns() is not a valid static method.
    [2014-09-29 11:52:30] (ERROR @ /index.php) No class specified for loadClass
    [2014-09-29 11:52:30] (ERROR @ /index.php) No class specified for loadClass
    [2014-09-29 11:52:30] (ERROR @ /index.php) Could not load class
    [2014-09-29 11:52:30] (ERROR @ /index.php) No class specified for loadClass
    [2014-09-29 11:52:30] (ERROR @ /index.php) ::loadCollection() is not a valid static method.

    I matched up everything to the tutorial 3 times to make sure I didn't miss anything. Although I am using MODX 2.3 and it isn't. I followed these instructions http://www.youtube.com/watch?v=LPJQrsiDdQ4 to get my MIGXDB to show up in the top nav. Does anyone know what I may have done wrong or what I can do to figure this out?
      • 4172
      • 5,888 Posts
      try

      &classname=`Product`
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 45189
        • 35 Posts
        That worked! Thanks! It is even correctly written as classname in the tutorial. I knew it had to be something simple I was missing -.-