I suddenly get a 500 error (observed by the network tab of the dev tools) when I try to parse my schema using migxdb. When I first load the schema, which is also a request to /assets/components/migx/connector.php
everything works just fine.
I don’t know of anything I have changed to before, where I could change my schema, parse it and alter fields, etc. just fine. Any ideas?
MODX 3.0.5-pl
MIGX 3.0.2-beta1
Can you check the PHP error log file on the server to see what the actual error message is? (This is not the error log file in MODX. The file path depends on the server settings.)
I get this error in the server logs:
mod_fcgid: stderr: PHP Parse error: syntax error,
unexpected token "," in .../core/components/client/src/Model/mysql/clientReferenz.php
on line 199,
referer: .../manager/?a=index&namespace=migx&configs=migxconfigs||packagemanager
After checking the mentioned file, I noticed, that it was a bit messed up, where it had duplicate entries at the bottom, which fell completely out of the file structure, therefore creating this error:
Everything starting at row 192 is a duplicate of entries, that are already in there a bit further above.
After removing those, everything seems to be working again. Thank you for pointing me in the right direction!