SOLVED::Modx 2.2.14 Manager white screen and not responding

Hi,
I have a site running 2.2.14 and it can’t be updated because the core has been changed significantly. The site was only going to have a shelf life of 5 years but it’s continued due to being successful.
The server (which can still run PHP 5.6) it resides on was upgraded in July this year and the site seemed to be running okay because it has been updated in the Manager since then.
But somewhere between the last update and now, the Manager is blank and none of the links in the top menu have no affect other than the change to the url.
Clicking New Document, Weblink or Symlink displays a part of the page in the top left of the Manager window.
I’ve tried changing the PHP version but it doesn’t seem to make any difference.

Anyone got any ideas?

Thanks

Here’s an error log sent from the hosts which may help?
GET https://www.myWebsite.co.uk/manager/min/index.php?f=/manager/assets/modext/widgets/system/modx.grid.dashboard.widgets.js,/manager/assets/modext/widgets/system/modx.panel.dashboards.js,/manager/assets/modext/sections/system/dashboards/list.js net::ERR_ABORTED 400 (Bad Request)
www.myWebsite.co.uk/:18 GET https://www.myWebsite.co.uk/manager/min/index.php?f=/manager/assets/modext/widgets/modx.treedrop.js,/manager/assets/modext/widgets/windows.js,/manager/assets/modext/widgets/resource/modx.tree.resource.js,/manager/assets/modext/widgets/element/modx.tree.element.js,/manager/assets/modext/widgets/system/modx.tree.directory.js,/manager/assets/modext/core/modx.view.js,/manager/assets/modext/core/modx.layout.js net::ERR_ABORTED 400 (Bad Request)
www.myWebsite.co.uk/:18 GET https://www.myWebsite.co.uk/manager/min/index.php?f=/manager/assets/modext/core/modx.localization.js,/manager/assets/modext/util/utilities.js,/manager/assets/modext/core/modx.component.js,/manager/assets/modext/widgets/core/modx.panel.js,/manager/assets/modext/widgets/core/modx.tabs.js,/manager/assets/modext/widgets/core/modx.window.js,/manager/assets/modext/widgets/core/modx.tree.js,/manager/assets/modext/widgets/core/modx.combo.js,/manager/assets/modext/widgets/core/modx.grid.js,/manager/assets/modext/widgets/core/modx.console.js,/manager/assets/modext/widgets/core/modx.portal.js net::ERR_ABORTED 400 (Bad Request)
www.myWebsite.co.uk/:18 GET https://www.myWebsite.co.uk/manager/min/index.php?f=/manager/assets/modext/core/modx.localization.js,/manager/assets/modext/util/utilities.js,/manager/assets/modext/core/modx.component.js,/manager/assets/modext/widgets/core/modx.panel.js,/manager/assets/modext/widgets/core/modx.tabs.js,/manager/assets/modext/widgets/core/modx.window.js,/manager/assets/modext/widgets/core/modx.tree.js,/manager/assets/modext/widgets/core/modx.combo.js,/manager/assets/modext/widgets/core/modx.grid.js,/manager/assets/modext/widgets/core/modx.console.js,/manager/assets/modext/widgets/core/modx.portal.js net::ERR_ABORTED 400 (Bad Request)
www.myWebsite.co.uk/:18 GET https://www.myWebsite.co.uk/manager/min/index.php?f=/manager/assets/modext/widgets/modx.treedrop.js,/manager/assets/modext/widgets/windows.js,/manager/assets/modext/widgets/resource/modx.tree.resource.js,/manager/assets/modext/widgets/element/modx.tree.element.js,/manager/assets/modext/widgets/system/modx.tree.directory.js,/manager/assets/modext/core/modx.view.js,/manager/assets/modext/core/modx.layout.js net::ERR_ABORTED 400 (Bad Request)
www.myWebsite.co.uk/:22 GET https://www.myWebsite.co.uk/manager/min/index.php?f=/manager/assets/modext/widgets/system/modx.grid.dashboard.widgets.js,/manager/assets/modext/widgets/system/modx.panel.dashboards.js,/manager/assets/modext/sections/system/dashboards/list.js net::ERR_ABORTED 400 (Bad Request)
ext-all.js:21 Uncaught TypeError: b[(d.xtype || e)] is not a constructor
at Object.create (ext-all.js:21)
at MODx.load (modx.js:75)
at ?a=53:20
at ext-all.js:21
at b (ext-all.js:21)
create @ ext-all.js:21
load @ modx.js:75
(anonymous) @ ?a=53:20
(anonymous) @ ext-all.js:21
b @ ext-all.js:21
setInterval (async)
e.delay @ ext-all.js:21
(anonymous) @ ext-all.js:21
fire @ ext-all.js:21
b @ ext-all.js:21
ext-all.js:21 Uncaught TypeError: b[(d.xtype || e)] is not a constructor
at Object.create (ext-all.js:21)
at MODx.load (modx.js:75)
at ?a=53:25
at ext-all.js:21
at b (ext-all.js:21)

What changed on the server since the time it worked?

Are there error messages in the MODx error log (core/cache/logs/) that are more useful (than the ones you posted above)?

You could open the “Network” tab of the developer tools in the browser. When you click on something in the manager, it usually creates many AJAX-requests. Maybe you can gain some information by looking at the response of the requests that fail.

There are a number of serious security vulnerabilities in that version (unless you’ve patched them all). That’s why it’s not recommended to alter the MODX core. Usually, there’s a way to do what you want without changing the MODX core code.

Have you tried manually deleting everything in the core/cache directory and then visiting the site with your browser in incognito or private mode?

Hi,
Thanks both for replying.
@halftrainedharry - The errors in the above post are from the browser console. The hosts can’t recall any changes that may have caused the Manager to stop working.

Here’s a few lines from the core/cache/logs/error_log. The entire thing is too big to post here.

[2021-12-23 00:39:47] (ERROR @ /index.php) Error parsing condition with key 0: ('favicon.ico' REGEXP `modRedirect`.`pattern` OR 'favicon.ico' REGEXP CONCAT('^', `modRedirect`.`pattern`, '$'))
[2021-12-23 00:39:48] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:39:51] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:39:53] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:39:56] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:40:47] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:41:51] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 00:41:51] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 00:41:52] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:42:44] (ERROR @ /index.php) Error parsing condition with key 0: ('manager/min/redactor-1.5.0.min.css.map' REGEXP `modRedirect`.`pattern` OR 'manager/min/redactor-1.5.0.min.css.map' REGEXP CONCAT('^', `modRedirect`.`pattern`, '$'))
[2021-12-23 00:42:44] (ERROR @ /index.php) Error parsing condition with key 0: ('favicon.ico' REGEXP `modRedirect`.`pattern` OR 'favicon.ico' REGEXP CONCAT('^', `modRedirect`.`pattern`, '$'))
[2021-12-23 00:42:44] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:42:45] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:43:28] (ERROR @ /index.php) Error parsing condition with key 0: ('favicon.ico' REGEXP `modRedirect`.`pattern` OR 'favicon.ico' REGEXP CONCAT('^', `modRedirect`.`pattern`, '$'))
[2021-12-23 00:43:28] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:43:39] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:46:39] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:48:19] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:49:32] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:51:47] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:52:27] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:52:57] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:55:24] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:57:50] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:58:15] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:59:49] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 00:59:52] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:01:11] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:02:03] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:02:06] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:04:07] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:05:40] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:05:43] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:05:43] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:05:44] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:07:05] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:08:59] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:09:53] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:12:54] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:13:59] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:14:06] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:14:06] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:14:06] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:14:24] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:14:24] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:14:25] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:15:44] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:18:43] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:20:35] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:21:04] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:21:04] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:21:04] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:21:38] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:21:41] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:21:41] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:21:42] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:24:18] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:27:08] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:30:01] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:30:01] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:30:02] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:30:02] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:32:15] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:32:57] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:35:48] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:38:45] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:40:18] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:40:30] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:40:30] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:40:31] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:41:35] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:44:25] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:47:13] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:47:16] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:49:19] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:50:04] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:52:58] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:54:22] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:54:22] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:54:22] (ERROR @ /index.php) Error parsing condition with key 0: ('cichaso/puerta-de-hospital/' REGEXP `modRedirect`.`pattern` OR 'cichaso/puerta-de-hospital/' REGEXP CONCAT('^', `modRedirect`.`pattern`, '$'))
[2021-12-23 01:55:51] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:57:57] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:58:00] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 01:58:00] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 01:58:01] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:58:07] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 01:58:43] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:00:03] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:01:36] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:04:29] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:06:24] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:07:16] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:07:36] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:07:38] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 02:07:38] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 02:07:39] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:10:08] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2021-12-23 02:10:09] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:12:14] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:12:17] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 02:12:17] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 02:12:18] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:12:58] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:13:58] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:15:50] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:18:40] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:21:36] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:24:26] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:26:44] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 02:26:44] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 02:26:44] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:27:09] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:28:13] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 02:28:13] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 02:28:13] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:30:00] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:32:18] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 02:32:18] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 02:32:19] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:35:23] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:38:15] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:40:54] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:41:01] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:43:51] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:45:11] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:46:41] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:49:29] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:52:24] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:55:09] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:57:58] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:58:15] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 02:58:15] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 02:58:16] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:59:15] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 02:59:18] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:00:21] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 03:00:21] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 03:00:22] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:00:50] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:00:50] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:01:54] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:02:06] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:02:10] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:02:13] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:02:16] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:03:39] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:06:32] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:06:37] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:08:30] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:08:34] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
[2021-12-23 03:08:34] (ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given
[2021-12-23 03:08:35] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:09:17] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:12:05] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:12:18] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2021-12-23 03:12:18] (ERROR @ /index.php) `` is not a valid integer and may not be passed to makeUrl()
[2021-12-23 03:12:19] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:13:26] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes
[2021-12-23 03:15:01] (ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes

@bobray - All security vulnerabilities have been patched with this version and the cache has been manually cleared many times and the Manager checked in private/Incognito windows.
It is a shame the core was altered to such an extent but the project was initially going to be live for just 5 years which may have been the developers reasoning.

Is there anything from the core/cache/logs/error_log above that give any indicators?

Thanks so much

Open the “Network” tab of the developer tools before you try to do something in the manager. Are all the AJAX-requests successful? Check their responses.


I don’t think so, but it’s hard to say.

Maybe check if something gets added to the error log, when you open the manager or try to open a resource in the manager.

Usually there is also a server error log, that is independent of MODX. Check the content of that file (if you can locate it on your server).


(ERROR @ /index.php) No foreign key definition for parentClass: modUser using relation alias: Attributes

Somewhere in the code it tries to access the attributes of a user with code like $user->getMany('Attributes'), but this relationship is not defined in the schema.

(ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_intersect_key(): Argument #1 is not an array
(ERROR @ /home2/mywebsite/public_html/core/cache/includes/elements/modplugin/11.include.cache.php : 161) PHP warning: array_flip() expects parameter 1 to be array, null given

A warning because of a wrong parameter in the plugin with the ID 11 on line 161.

(ERROR @ /index.php) Error parsing condition with key 0: ...

These errors are probably related to the extra modRedirect.

The modRedirect extra that appears in the error log is a beta from 2014, so it could be a factor. Redactor is also mentioned and could be a factor if it’s not up-to-date.

It’s worth a try to repair the database tables in PhpMyAdmin.

My next step would be to disable all plugins in the modx_site_plugins table (maybe start with just the plugin with the id = 11 (set the disabled field to 1, then delete all files in the core/cache directory before testing in incognito mode).

Regarding those 400 Bad Requests in the console: I don’t know where they are generated or if they are the cause of your problem.

A request to https://www.myWebsite.co.uk/manager/min/index.php?f=... calls a minifier that minifies and combines all the javascript files in the parameter f.

One reason it returns a 400 error message is, when it can’t read the files in the parameter. Make sure these files exist and are readable.

To get the absolute file path, the program combines the value of $_SERVER['DOCUMENT_ROOT'] with the path segment in the parameter. If that’s not correct, then try to set the system setting manager_js_document_root to make it work.

@bobray @halftrainedharry THANK YOU!
Because of your input I have got to the bottom of the issue.

It was indeed the 400 Bad Requests and actually has been answered on a previous post here by @bobray : Site manually moved, Minify Bad Request | MODX Community Forums

I turned off compress_js and compress_css in PhpMyAdmin and the manager now works.

Thanks so much both for helping with this issue.
:slight_smile:

Wow, I haven’t seen that issue for years.

I’m glad you got it sorted.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.