Download & Extend

Broken JS/Theme registry with Memcache

Project:Drupal Commons
Version:7.x-3.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:japerry
Status:postponed

Issue Summary

I'm able to reliable reproduce only in a particular set of hosting environments a scenario where on a fresh install of Commons, there's a JS parse error

Uncaught TypeError: Cannot read property 'settings' of undefined timeago.js:13
Uncaught TypeError: Object # has no method 'timeago'

,

the dropdown styles aren't applied and of course, TimeAgo date stamps aren't replaced.

Hitting admin/appearance, I get these errors:

Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in theme_get_setting() (line 1414 of /mnt/www/html/commonsintstg/docroot/includes/theme.inc).
Notice: Trying to get property of non-object in theme_get_setting() (line 1451 of /mnt/www/html/commonsintstg/docroot/includes/theme.inc).
Notice: Trying to get property of non-object in theme_get_setting() (line 1461 of /mnt/www/html/commonsintstg/docroot/includes/theme.inc).
Notice: Undefined index: access in _menu_translate() (line 792 of /mnt/www/html/commonsintstg/docroot/includes/menu.inc).
Notice: Undefined index: access in _menu_translate() (line 792 of /mnt/www/html/commonsintstg/docroot/includes/menu.inc).
Notice: Undefined index: access in menu_local_tasks() (line 1970 of /mnt/www/html/commonsintstg/docroot/includes/menu.inc).
Notice: Undefined index: access in menu_local_tasks() (line 1970 of /mnt/www/html/commonsintstg/docroot/includes/menu.inc).
Notice: Undefined index: access in _menu_link_translate() (line 929 of /mnt/www/html/commonsintstg/docroot/includes/menu.inc).
Notice: Undefined index: access in _menu_tree_check_access() (line 1512 of /mnt/www/html/commonsintstg/docroot/includes/menu.inc).
Notice: Undefined index: access in _menu_link_translate() (line 929 of /mnt/www/html/commonsintstg/docroot/includes/menu.inc).
Notice: Undefined index: access in _menu_tree_check_access() (line 1512 of /mnt/www/html/commonsintstg/docroot/includes/menu.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Notice: Undefined index: commons_origins in at_get_setting() (line 34 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in at_get_setting() (line 52 of /mnt/www/html/commonsintstg/docroot/profiles/commons/themes/contrib/adaptivetheme/at_core/inc/get.inc).

And, after hitting the appearance form, Origins isn't listed as an a theme option even though it's the enabled theme.

I also notice that clean urls are disabled even though the test passes.

Refreshing the appearance settings form appears to cause all of the styles to not be applied - the page is completely unstyled.

Comments

#1

Also,[edit] after submitting the form, the theme_default variable is set to commons_origins but commons_origins isn't in the system table. A drush cc all causes it to be recognized and enabled.

#2

Assigned to:ezra-g» japerry

#3

Status:active» postponed

This appears to be a duplicate of #1091488: Theme registry fails to clear. The workaround in the interim is to connect the site to Memcache after installation.

#4

Title:Broken JS in some environments on fresh install» Broken JS/Theme registry with Memcache
nobody click here