You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a rather bizarre issue. I've had a problem where clicking on the "insert URL" button in the CMS would stop working after several minutes. What would happen is this:
I'd log into the CMS, and everything would work fine
After several minutes, the CMS would ping the server
After the ping, framework/jquery/jquery.js would be loaded. Since Silverstripe's framework had already included jquery (in lib.js), this would kill some things, such as the "insert URL"
I've finally traced this to GoogleLogger::onAfterInit(). When I comment out the line that includes jquery.js, then this no longer happens.
Obviously, commenting out that line could cause trouble on the front end if jQuery isn't loaded. So perhaps the code in onAfterInit() should be executed only if the controller is a child-class of ContentController, e.g.:
if (Controller::curr() instanceof ContentController) {
// insert onAfterInit() code here
}
NOTE: This is with Silverstripe 3.3
The text was updated successfully, but these errors were encountered:
This is a rather bizarre issue. I've had a problem where clicking on the "insert URL" button in the CMS would stop working after several minutes. What would happen is this:
I've finally traced this to GoogleLogger::onAfterInit(). When I comment out the line that includes jquery.js, then this no longer happens.
Obviously, commenting out that line could cause trouble on the front end if jQuery isn't loaded. So perhaps the code in onAfterInit() should be executed only if the controller is a child-class of ContentController, e.g.:
if (Controller::curr() instanceof ContentController) {
// insert onAfterInit() code here
}
NOTE: This is with Silverstripe 3.3
The text was updated successfully, but these errors were encountered: