Migx cmp with modx 3

Hi,
i have trouble setting up a new cmp page with modx 3. It always worked with modx 2 and an existing cmp does also work with modx 3. i just can’t create a new one.

i can create my schema, and i can also parse it. but when i want to create the tables i get a 500 error in the developer console on this url: https://www.rifflblech.com/assets/components/migx/connector.php. no additional details and also no output in modx’s error logs.

my xml schema:

<?xml version="1.0" encoding="UTF-8"?>

<model package="events" baseClass="xPDOObject" platform="mysql" defaultEngine="InnoDB" version="1.1">

    <object class="Event" table="events" extends="xPDOSimpleObject">
        <field key="name" dbtype="varchar" phptype="string" precision="250" null="false" default="" />
        <field key="play_time" dbtype="varchar" phptype="string" precision="250" null="false" default="" />
        <field key="play_place" dbtype="varchar" phptype="string" precision="250" null="false" default="" />
        <field key="play_mode" dbtype="int" precision="10" phptype="integer" null="false" default="0"/>
    </object>
</model>

I follow this tutorial: MIGX DB CMP and XPDO in MODX Revolution - YouTube

Are there any known issues? Is there a newer tutorial?

Thanks

With MODX 3 there have been some changes. For example the schema is slightly different.

Take a look at this article that is specifically for MODX 3

https://docs.modx.com/3.x/en/extending-modx/tutorials/using-custom-database-tables

or maybe watch this video.


Specifically for MIGX you need the newest version 3.0.0-beta1.
Take a look a this thread:

try to use 3.0.0-beta1 from here
MIGX/migx-3.0.0-beta1.transport.zip at master · Bruno17/MIGX (github.com)

this will create an example schema and a file structure, the MODX 3 way and you should be able to create and manipulate your tables from schema