user/%user override causes javascript to be disabled on just that page
SocialNicheGuru - June 9, 2009 - 16:07
| Project: | Flickr |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When I try to override a user page in panels 3 a few strange things happen.
1. Javascript is not available on this page
- i have placed a gmap that works on other pages but not the user page.
- all minipanels and other elements that I use on the user page, I placed on regular panels pages as a test and they show up perfectly
2. I think the styles issues come up because javascript is not present on this page. The styles are not working.
Chris

#1
I tested the above with no panels enabled or as default from a module.
Then I tried something different. I tried using the advanced profile kit with the same result when I saved a change.
I was using apk. out of the box the page worked great and javascript was enabled.
As soon as I made a change and saved it and overwrote the default value, the above issues happened
#2
I looked in firebug and here is the javascript error that I get only on this page
elem is undefined
[Break on this error] script.appendChild(document.createTextNo...y(object[name],args)===false)break;}else
jquery.min.js?g (line 19)
elem is undefined
nodeName()()jquery.min.js?g (line 19)
tabify()()ui.tabs.js?g (line 192)
tabs()()ui.tabs.js?g (line 60)
(?)()()ui.tabs.js?g (line 28)
nodeName()()jquery.min.js?g (line 21)
filter()()jquery.min.js?g (line 12)
tabs()()ui.tabs.js?g (line 23)
tabs()(Document 1)tabs.js?g (line 23)
(?)()()drupal.js?g (line 42)
nodeName()(Object, function(), undefined)jquery.min.js?g (line 20)
attachBehaviors()(Document 1)drupal.js?g (line 41)
(?)()()drupal.js?g (line 276)
onreadystatechange()()jquery.min.js?g (line 27)
onreadystatechange()()jquery.min.js?g (line 27)
nodeName()([function(), function(), function(), 7 more...], function(), undefined)jquery.min.js?g (line 21)
onreadystatechange()()jquery.min.js?g (line 27)
[Break on this error] script.appendChild(document.createTextNo...y(object[name],args)===false)break;}else
#3
Javascript is being disabled on pages that are overwritten.
#4
That looks like jquery UI is crashing on this page for some reason. Panels doesn't use jquery UI so I'm not sure what to suggest; that is coming from something else. Maybe the theme is expecting something?
#5
I found the issue. I had a mini panel that I created from elements of the flickr module.
I am shifting the issue over.
Thanks for your patience.
Chris
#6
The error above is introduced when the user has not entered a Flickr username.
Once they have then everything works.
is there a quick way to correct this.
Took me a roundabout path to find this.
Chris
I marked this critical because this error propagates through a site causing many errors and unknown behaviors.
#7
Panels 3 isn't even released, so I don't think this counts as critical. But I would like to get it fixed. Can you provide a way to replicate the error?
#8
create a mini panel with the flickr blocks in it
create a panel page
do not enter your flickr id in user/uid/edit
place the mini panel in the panel
place another mini panel or block on the same page
You will notice that the other blocks on the page do not show up
btw- panels 3 link: http://drupal.org/node/468632
I did initally mark as critical because of this bugs effect on other modules. That was just my reasoning.
#9
any thoughts?