MIGXdb-Settings Custom Prefix problem

Hi, I have a problem with the Custom Prefix in the MIGXdb-Settings. I have tables in the database:

And I wanted to make a simple MIGX to edit the tables in the CMS. Unfortunately if the table has a different prefix than ‘modx_’ and in the MIGXdb-Settings selected Prefix: default Prefix it doesn’t work.

I tried to set Prefix: ‘Custom Prefix’ and Custom Prefix: ‘app_’ and in xPDO use ‘table’ => ‘user’, w but it doesn’t work.

I tried setting Prefix: ‘Custom Prefix’ and Custom Prefix: ‘’ and in xPDO use ‘table’ => ‘app_user’, in but it doesn’t work.

How to do this correctly?

Is this MODX 3?

If so, check the bootstrap.php file in your component folder core/components/your_component. The line $modx->addPackage() must contain the prefix as the third parameter (instead of null).

I made a PR some time ago, but that might not be yet included in the version of MIGX you’re using.

1 Like

It works! Thank you for your help. I am using 3.1.0-pl . Anyway, currently MIGXdb-Settings > Prefix does not work at all.