I get an js Error, and the GUI is unusable if I have http://drupal.org/project/adaptivetheme AT Admin as my admin theme.

$(this).attr("class").split("context-plugin-")[1] is undefined

Comments

Refineo’s picture

Project: AdaptiveTheme » Context
Component: AT Admin » User interface
StatusFileSize
new38.8 KB

I also observe Context UI is not working with AT Admin theme. It works fine when using another theme such as Bartik and Seven.
Please see the attached screenshot.

Refineo’s picture

Project: Context » AdaptiveTheme
Component: User interface » AT Admin

This issue is related to 'AT Admin' Theme when Context and Context UI modules are installed and enabled.

Steps to reproduce:

* Select AT Admin Theme as your administration theme
* Install and enable Context and Context UI module
* go to /admin/structure/context/add

Error:

Javascript throws error:

Uncaught TypeError: Cannot call method 'split' of undefined js_DS2ePFcIYUwprF5y-Hs0Wp_szc2OjkavE_ijuXduOCU.js:2440
setState js_DS2ePFcIYUwprF5y-Hs0Wp_szc2OjkavE_ijuXduOCU.js:2440
d.extend.each js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:16
d.fn.d.each js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:16
setState js_DS2ePFcIYUwprF5y-Hs0Wp_szc2OjkavE_ijuXduOCU.js:2439
DrupalContextPlugins js_DS2ePFcIYUwprF5y-Hs0Wp_szc2OjkavE_ijuXduOCU.js:2517
(anonymous function) js_DS2ePFcIYUwprF5y-Hs0Wp_szc2OjkavE_ijuXduOCU.js:2524
d.extend.each js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:16
d.fn.d.each js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:16
Drupal.behaviors.context_ui.attach js_DS2ePFcIYUwprF5y-Hs0Wp_szc2OjkavE_ijuXduOCU.js:2522
Drupal.attachBehaviors js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:151
d.extend.each js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:16
Drupal.attachBehaviors js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:149
Drupal.theme.placeholder js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:487
d.extend._Deferred.f.resolveWith js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:16
d.extend.ready js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:16
c.addEventListener.A js_I0Nixbra8DgWMUYUVXpUVRy6mPjHLXhGVYk_U1W2ce4.js:16

Environment

Drupal 7.12

Refineo’s picture

Jeff Burnz’s picture

Project: Context » AdaptiveTheme
Component: User interface » AT Admin
Category: bug » feature

Patches welcome, I have no time to debug this, meaning I have no time debug CONTEXT. The problem is very unlikely to be with the theme, look, it works with Panels, Views etc etc, everything else I can trow at it, but Context has this issue, so where is the problem? I wonder.

Jeff Burnz’s picture

Title: UI is broken if using "AT Admin" Admin Theme » Context module borks the UI in AT Admin

Far more accurate title, until shown otherwise.

Jeff Burnz’s picture

Category: feature » support
Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new77.03 KB

I look at this since I actually did have a few minutes (today is a public holiday, but I looked all the same), and I can't reproduce this, I twigged some CSS since I think I can make it look and work better, but other than that, its working for me.

As per the other issue, have you saved the theme settings for AT Admin? Not sure you have, since its displaying 100% width in your screenshot, but with these advanced AT themes you have to save the theme settings (on the Appearance page for AT Admin or whatever subtheme you are running) at least once.

See the screenshot, its all working just fine.

Jeff Burnz’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I really need to clean up my issue queue, I cannot reproduce this, as long as the theme settings are saved at least once for AT Admin (a must for any Adaptivetheme theme) everything goes smoothly and works nicely in Context UI.

Refineo’s picture

The following solved the issue for me:

  • Save AT Admin settings again (separately from the global settings).
  • Disable and reenable Bandwidth optimization (/admin/config/development/performance)
    • Compress cached pages.
    • Aggregate and compress CSS files.
    • Aggregate JavaScript files.
  • Clear all cache.