Modx 2.8.3-pl
PHP 8.1.2
Apache 2.4.52
Platform: Debian GNU/Linux 12 (current)
After upgrading to php 8 on my dev system, my local modx manager only shows the top nav bar, and the main manager dashboard section, all other sections have only the top navigation. Clicking on things like clear cache does nothing. The resources left tree bar never appears. All site pages work fine, no issues.
Iāve cleared core/cache repeatedly.
Following the above link, checking the Chromium debugger, there are js errors:
Unchecked runtime.lastError: The message port closed before a response was received.
ian/:1 Unchecked runtime.lastError: The message port closed before a response was received.
ian/:1 Unchecked runtime.lastError: The message port closed before a response was received.
lang.js.php?ctx=mgr&topic=topmenu,file,resource,trash,welcome,configcheck&action=:2 Uncaught SyntaxError: Unexpected token '<'
uploaddialog.js:1456 Uncaught ReferenceError: _ is not defined
at uploaddialog.js:1456:10
(anonymous) @ uploaddialog.js:1456
modx.layout.js:113 Uncaught ReferenceError: _ is not defined
at MODx.Layout.Default.getWest (modx.layout.js:113:24)
at MODx.Layout.Default.buildLayout (modx.layout.js:64:26)
at MODx.Layout.Default.MODx.Layout [as constructor] (modx.layout.js:35:22)
at new MODx.Layout.Default (layout.js:6:48)
at Object.create (ext-all.js:21:133120)
at MODx.load (modx.js?v=00eb0b9e:85:38)
at (index):52:10
at ext-all.js:21:2438
at b (ext-all.js:21:19924)
getWest @ modx.layout.js:113
buildLayout @ modx.layout.js:64
MODx.Layout @ modx.layout.js:35
MODx.Layout.Default @ layout.js:6
create @ ext-all.js:21
load @ modx.js?v=00eb0b9e:85
(anonymous) @ (index):52
(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
modx.grid.user.online.js:12 Uncaught ReferenceError: _ is not defined
at new MODx.grid.WhoIsOnline (modx.grid.user.online.js:12:12)
at Object.create (ext-all.js:21:133120)
at MODx.load (modx.js?v=00eb0b9e:85:38)
at (index):64:14
at ext-all.js:21:2438
at b (ext-all.js:21:19924)
MODx.grid.WhoIsOnline @ modx.grid.user.online.js:12
create @ ext-all.js:21
load @ modx.js?v=00eb0b9e:85
(anonymous) @ (index):64
(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
modx.grid.user.recent.resource.js:12 Uncaught ReferenceError: _ is not defined
at new MODx.grid.RecentlyEditedResourcesByUser (modx.grid.user.recent.resource.js:12:16)
at Object.create (ext-all.js:21:133120)
at MODx.load (modx.js?v=00eb0b9e:85:38)
at (index):71:10
at ext-all.js:21:2438
at b (ext-all.js:21:19924)
MODx.grid.RecentlyEditedResourcesByUser @ modx.grid.user.recent.resource.js:12
create @ ext-all.js:21
load @ modx.js?v=00eb0b9e:85
(anonymous) @ (index):71
(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
modx.searchbar.js:8 Uncaught ReferenceError: _ is not defined
at new MODx.SearchBar (modx.searchbar.js:8:21)
at (index):95:17
at ext-all.js:21:2438
at b (ext-all.js:21:19924)
MODx.SearchBar @ modx.searchbar.js:8
(anonymous) @ (index):95
(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
I should have debugged/reported this issue before starting the process of testing moving core from below document root to /core, but I forgot to do that, but as far as I recollect, this issue existed before I moved core/ to /core.
The live site is running Modx 2.8.3-pl on PHP 7.4.28, Apache 2.4.41, and everything works as expected.
My normal policy is to update the dev site to make sure everything is working, then update the live site, but at the moment, Iām running PHP 8 to catch bugs and failures in our code/modx before the live site is upgraded to PHP 8 so Iām a bit ahead of the live site.
I believe this issue hit as soon as my dev system upgraded to PHP 8, but as noted, I forgot to verify this before testing the move of below root core to above root core today.
Iād like to get my local system back into good shape, I see the js errors, but I have no idea what to do about them.
I also tried reinstalling 2.8.3 as well, but the results did not change, thatās using the same connectors directory. My modx upgrade script moves core and manager to a backup location, so those are always fresh when I do an upgrade.
I do NOT want to start testing Modx 3.0 until I get this local issue resolved for modx 2.8.3 on php 8, I noticed it while preparing to switch to using /core above doc root location.
Thanks