Uncaught TypeError: can't access property "id", newTab is undefined
the problem affects all page templates that should normally be customized.
Does anyone have any idea what might be causing this problem?
The issue that you’re experiencing has been fixed with PRs #16364 and #16360, but those changes await the next patch release (3.0.4) which will hopefully be very soon. While you could apply those patches manually, you’d also need to either rebuild the compressed js file manually (if you know how to) or temporarily change your compress_js system setting to “No” to see the changes take effect.
Really, on all the sites I’ve done, I’ve done this kind of settings dozens of times, always without problem.
In my example, I just want to display the TVs on the main tab
this short video show the manager before the problem (old server, php 7.4)
and then now. (new server PHP 8.2)
you can see on the form customization page that the name of the template is not displayed correctly even though it seems to be correctly selected. I don’t know if this has anything to do with it…
what can go wrong?
@smg6511v2 : i’m not sure it’s related because 2 days ago, the same site, with the same settings worked fine, and i didn’t notice when the problem occured first.
(And I am unable to rebuild modx manually… )
That fixes another small issue, but it’s the changes in the two PRs I mention above that will fix your issue. There’s no date for 3.0.4 yet, but I’m encouraging the core team to move toward that release sooner than later.
Same issue here. Presented as tabs not loading for a collection resource, and the JS error “newTab is undefined”
Took me forever to find this particular thread.
I can’t, for the life of me, understand why this has been fixed in modx 3.0.4-dev for over 8 months and there’s been no release to ensure a simple upgrade fixes it without having to install a dev release. Reminds me of dealing with magento devs