After recently upgrading my dev/test site I seem to have lost library management. The UI controls fail to load (see image). If I try to click the plain text link, I get a js error.
Everything seems to be loading ok when I inspect the network tab, here’s what I get in the JS console.
Uncaught SyntaxError: Unexpected identifier (displayed when an object admin page (dmfile, dminage, etc.) is loaded.
Uncaught TypeError: Cannot read property ‘CLICK’ of undefined when I click one of the “text” links, edit, overview, etc.
Are you loading your own version of jquery or jquery ui anywhere in your project? I recall having a similar issue once and I think it had to do with that (wish I could remember more though).
Can you paste the code that does the jQuery / UI library overriding in the front end?
If you are using registerJS with id=“jquery” / id=“jquery-ui” in the front end then it could break the webtop. In FarCry 7.x we avoid this problem by having the webtop use it’s own specific id’s that should never be overridden (“fc-jquery”, etc).
It does seem to have something to do with the facry buttons in object admin tho… Another part of my upgrade involves changing from the verity engine to Jeff and Sean’s solr plugin. I have noticed the “add” button in SolrPro Content Type Admin does not render correctly…
Cool, your JS in the front end should be fine then.
The buttons in your webtop are all unstyled because jQuery UI isn’t loading
/ working. If you view the frame source of the objectadmin grid can you see
the jQuery UI JS / CSS being outputted?
No luck… rolled back to 6-2-11 core, update app, and deleted the www/cache, same issue with farcry buttons with object admin screens. any other thoughts or anything else I can try or provide you guys (thanks for all the help btw)… I’m getting a lot of pressure from my ops guys to decommission my windows2k3 production server and this (and the move to solr) seem to be my last trouble spots.
Notice the // appearing in the calls to $.button() and $.data(), this is a result of the “JSON prefix” setting in the ColdFusion Administrator. This is a recommendation in the ACF lock-down guide, however there is no way to call serializeJSON() without the prefix so the setting needs to remain empty for FarCry deployments. Alternatively, if this setting must be turned on for the server, you should be able to set THIS.secureJSONPrefix = "" in the farcryConstructor.cfm to achieve the same result.