There seems to be a “500 Internal Server Error”. These errors aren’t logged in MODx. There should be a PHP error log somewhere on your system. The exact location depends on your server configuration.
Can you search for this log file and post the exact error message.
Thanks so mcuh for all this advice. So I foudn an error_log file, but it’s empty.
I will try adding the PHP you supplied - shoudl I just add that a a snippet on the same page?
I believe you should add it to the top of the connector php file. https://dev.domain.com/assets/components/migx/connector.php (for MIGX) or https://dev.domain.com/assets/components/versionx/connector.php (for VersionX).
OK thanks - I have aded it to migx - but no error is shown on screen. I just have a white screen with the ‘save, duplicate,delete,view,close,help’ buttons.
I’m not sure if this even works for AJAX-requests.
Maybe you can open the “Network”-tab of the developer tools in the browser and then click on the XHR-request that generates the error and check the response. Maybe there’s something useful in there.
I don’t think so. That shouldn’t throw a 500 error.
There is nothing that I can deduce from this response. I would need a php error message and the file/line number where the error occurs.
BTW: To post the error messages, please put lines with three back-ticks at the start and at the end of the text to format it. It’s hard to read the message the way it’s formatted now.
```//line with 3 back-ticks at the beginning
//the error message
```//line with 3 back-ticks at the end
Ah Ok - soz about that.
Hmm - ned to try and find a way to get the PHP errors then.
V annoying - I wish I could move it to my server, as it would just work.
I noticed that nearly all your server paths refer to the dev subdomain: dev.domain.com. But there are one or two references to the main domain. Is it possible that there are any cross domain issues or configuration issues related to using the wrong domain/subdomain in any of your configuration files? Have you tried re-running setup?
PS: You have revealed the actual domain name in the last post.
Thanks Andy - have changed that!
No the inconsistency of domain/sub domain was just me when hiding the real domains. All paths point to the dev sub domain.
I zipped up the site and database, installed it on another server and it works fine.
So something to do with server config but can’t work out what!
When you’re on the Network tab of Dev. Tools, you can click on any line that makes an ajax call to see the request and the response. Often, there’s some messy HTML surrounding a PHP error.
BTW, have you tried putting your browser in Private or Incognito mode? When you upgrade MODX, sometimes a leftover cookie will cause weird effects in the Manager. If this solves your problem, clear your cookies for the site.
Thanks Bob. Private window didn’t help unfortunately. Had already cleared caches and cookies etc.
Couldn’t find anythin int he Network tab that would help - Unfortunately I think I hav to just persuade them to move to a host I know instead - but anoying as I prefer to fix these things rathe than run away!