I have upgraded to v3.7 (in the meantime I have uninstalled and installed from scratch - still doesn't help) and I can't add any content to any region I define.

Just to be sure that we are talking about the same stuff: Under "site building" -> "pages" -> "list" select "node_view / Node template". In a any given variant (new or existing) go to "Content" click on any given region and select "Add content".

After I configure the new content, I click "Finish" the timer runs, nothing is happening. I can't add any content any more. :(

I also can't find any error logs or messages anywhere in the system. Again, I tried uninstalling and installing. I also tried both IE and Firefox. Nothing works for me.

PS: I initially posted a comment under Adding content to Page Panel not quite right, but I unfortunately can't delete the other post. I guess the problems could be related, but the other post addresses "page panels".

Please let me know how we can figure out what is going on. I need the panels to be working again urgently.

CommentFileSizeAuthor
#44 ctools-indexof.patch291 bytesptaff
#27 Panels-Ajax-Error.png29.61 KBsparky_s
#15 error.png82.88 KBMVR
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Are you using simplemenu? Did you try the simplemenu patch? THat patch
is here: http://drupal.org/node/718368#comment-3279510

That patch might help anyway; simplemenu might not be the only module that is interfering.

It might also help if you've got firebug installed to check the console and see what is going on at that point. Maybe there's a javascript error that will tell us something.

megic’s picture

I'm not using Simple Menu + I have applied the patch -> nothing has changed. :(

I did check the console and I did check with Firebug. There is no JS error. There are a few warnings in the JS error console though that say:

"Warning: Empty string passed to getElementById()."

Since I assumed some errors with the ID definitions based on this message, I started digging deeper. I checked the validator at w3c.org, and indeed, I got some duplicated ID errors. Please see below:

Line 153, Column 1030: ID "page-manager-operation-summary" already defined
…ode_view_panel_context_2/summary" id="page-manager-operation-summary" class="p…

Line 153, Column 178: ID "page-manager-operation-summary" first defined here
…admin/build/pages/edit/node_view" id="page-manager-operation-summary" class="p…

Line 163, Column 1430: ID "page-manager-operation-disable" already defined
…_panel_context_2/actions/disable" id="page-manager-operation-disable" class="p…

Line 149, Column 208: ID "page-manager-operation-disable" first defined here
…ration/node_view/actions/disable" id="page-manager-operation-disable" class="p…

Line 189, Column 171: ID "edit-display-substitutions" already defined
…e="display_title[contexts_prefix]" id="edit-display-substitutions" value="" />

Line 189, Column 20: ID "edit-display-substitutions" first defined here

Any ideas how this might be happening?

merlinofchaos’s picture

Would it be possible for you to provide me admin access on a site that's doing this?

megic’s picture

We could maybe figure something out. Send me an email to panels [at] makowski [dot] at

megic’s picture

Any news on this problem? I'm really stuck with my development because of this. :(

If there is no solution, I'm thinking about going back to v3.5 ...

dejackson’s picture

I'm having the same problem. When I click the Show Layout Designer I'm seeing the code for the page as shown below instead of the page:

[ { "command": "settings", "argument": { "basePath": "/" } }, { "command": "css_files", "argument": [ { "file": "/modules/aggregator/aggregator.css?M", "media": "all" }, { "file": "/modules/book/book.css?M", "media": "all" }, { "file": "/modules/node/node.css?M", "media": "all" }, { "file": "/modules/poll/poll.css?M", "media": "all" }, { "file": "/modules/system/defaults.css?M", "media": "all" }, { "file": "/modules/system/system.css?M", "media": "all" }, { "file": "/modules/system/system-menus.css?M", "media": "all" }, { "file": "/modules/user/user.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/cck/theme/content-module.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/ctools/css/ctools.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/panels/css/panels.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/superfish/css/superfish.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/superfish/css/superfish-vertical.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/superfish/css/superfish-navbar.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/upload_element/upload_element.css?M", "media": "all" }, { "file": "/modules/forum/forum.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/cck/modules/fieldgroup/fieldgroup.css?M", "media": "all" }, { "file": "/sites/all/modules/custom/views/css/views.css?M", "media": "all" } ] }, { "command": "scripts", "argument": [ "/sites/all/modules/custom/jquery_update/replace/jquery.packed.js?M", "/misc/drupal.js?M", "/sites/all/modules/custom/panels/js/panels.js?M", "/sites/all/modules/custom/superfish/js/jquery.hoverIntent.minified.js?M", "/sites/all/modules/custom/superfish/js/jquery.bgiframe.min.js?M", "/sites/all/modules/custom/superfish/js/superfish.js?M", "/sites/all/modules/custom/superfish/js/supersubs.js?M" ] }, { "command": "modal_display", "title": "Add content to Middle column", "output": "\x3cdiv class=\"panels-add-content-modal\"\x3e\x3cdiv class=\"panels-section-column panels-section-column-categories\"\x3e\x3cdiv class=\"inside\"\x3e\x3cdiv class=\"panels-categories-box\"\x3e\x3ca href=\"/panels/ajax/editor/select-content/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/activity\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eActivity\x3c/a\x3e\x3ca href=\"/panels/ajax/editor/select-content/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/ctools-examples\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eCTools Examples\x3c/a\x3e\x3ca href=\"/panels/ajax/editor/select-content/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/menus\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eMenus\x3c/a\x3e\x3ca href=\"/panels/ajax/editor/select-content/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/miscellaneous\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eMiscellaneous\x3c/a\x3e\x3ca href=\"/panels/ajax/editor/select-content/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/page-elements\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3ePage elements\x3c/a\x3e\x3ca href=\"/panels/ajax/editor/select-content/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/views\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eViews\x3c/a\x3e\x3ca href=\"/panels/ajax/editor/select-content/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/widgets\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eWidgets\x3c/a\x3e\x3c/div\x3e\x3cdiv class=\"content-type-button clear-block\"\x3e\x3ca href=\"/panels/ajax/editor/add-pane/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/node/node\" class=\"ctools-use-ajax panels-modal-add-config\" title=\"Add a node from your site as content.\"\x3e\x3cimg src=\"/sites/all/modules/custom/ctools/plugins/content_types/node/icon_node.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" /\x3e\x3c/a\x3e\x3cdiv\x3e\x3ca href=\"/panels/ajax/editor/add-pane/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/node/node\" class=\"ctools-use-ajax panels-modal-add-config\" title=\"Add a node from your site as content.\"\x3eExisting node\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"content-type-button clear-block\"\x3e\x3ca href=\"/panels/ajax/editor/add-pane/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/custom/custom\" class=\"ctools-use-ajax panels-modal-add-config\" title=\"Create a completely custom piece of HTML content.\"\x3e\x3cimg src=\"/sites/all/modules/custom/ctools/images/no-icon.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" /\x3e\x3c/a\x3e\x3cdiv\x3e\x3ca href=\"/panels/ajax/editor/add-pane/panel_context%3Apage-front_page%3Apage_front_page_panel_context/middle/custom/custom\" class=\"ctools-use-ajax panels-modal-add-config\" title=\"Create a completely custom piece of HTML content.\"\x3eNew custom content\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"panels-categories-description\"\x3eContent options are divided by category. Please select a category from the left to proceed.\x3c/div\x3e\x3c/div\x3e" } ]

megic’s picture

Status: Postponed (maintainer needs more info) » Active
cj-cj’s picture

I have been trying to use panels, have installed the modules panels6.x -3.7, Ctools & views.

I can get to this point:

Basic settings » Choose layout » Panel settings » Panel content
Display settings

if i click on the cog to "add content" all I get is code see below and can not get any further. not sure where to go next?

[ { "command": "settings", "argument": { "basePath": "/test/", "admin_menu": { "margin_top": 1 } } }, { "command": "css_files", "argument": [ { "file": "/test/modules/admin_menu/admin_menu.css?h", "media": "all" }, { "file": "/test/modules/ctools/css/ctools.css?h", "media": "all" }, { "file": "/test/modules/fckeditor/fckeditor.css?h", "media": "all" }, { "file": "/test/modules/node/node.css?h", "media": "all" }, { "file": "/test/modules/panels/css/panels.css?h", "media": "all" }, { "file": "/test/modules/system/defaults.css?h", "media": "all" }, { "file": "/test/modules/system/system.css?h", "media": "all" }, { "file": "/test/modules/system/system-menus.css?h", "media": "all" }, { "file": "/test/modules/user/user.css?h", "media": "all" }, { "file": "/test/modules/views/css/views.css?h", "media": "all" } ] }, { "command": "scripts", "argument": [ "/test/modules/jquery_update/replace/jquery.min.js?h", "/test/misc/drupal.js?h", "/test/modules/admin_menu/admin_menu.js?h", "/test/modules/panels/js/panels.js?h" ] }, { "command": "modal_display", "title": "Add content to Center", "output": "\x3cdiv class=\"panels-add-content-modal\"\x3e\x3cdiv class=\"panels-section-column panels-section-column-categories\"\x3e\x3cdiv class=\"inside\"\x3e\x3cdiv class=\"panels-categories-box\"\x3e\x3ca href=\"/test/?q=panels/ajax/editor/select-content/panel_context%3Apage-home%3Apage_home_panel_context/center/activity\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eActivity\x3c/a\x3e\x3ca href=\"/test/?q=panels/ajax/editor/select-content/panel_context%3Apage-home%3Apage_home_panel_context/center/ctools-examples\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eCTools Examples\x3c/a\x3e\x3ca href=\"/test/?q=panels/ajax/editor/select-content/panel_context%3Apage-home%3Apage_home_panel_context/center/menus\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eMenus\x3c/a\x3e\x3ca href=\"/test/?q=panels/ajax/editor/select-content/panel_context%3Apage-home%3Apage_home_panel_context/center/page-elements\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3ePage elements\x3c/a\x3e\x3ca href=\"/test/?q=panels/ajax/editor/select-content/panel_context%3Apage-home%3Apage_home_panel_context/center/views\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eViews\x3c/a\x3e\x3ca href=\"/test/?q=panels/ajax/editor/select-content/panel_context%3Apage-home%3Apage_home_panel_context/center/widgets\" class=\"ctools-use-ajax panels-modal-add-category\" title=\"\"\x3eWidgets\x3c/a\x3e\x3c/div\x3e\x3cdiv class=\"content-type-button clear-block\"\x3e\x3ca href=\"/test/?q=panels/ajax/editor/add-pane/panel_context%3Apage-home%3Apage_home_panel_context/center/node/node\" class=\"ctools-use-ajax panels-modal-add-config\" title=\"Add a node from your site as content.\"\x3e\x3cimg src=\"/test/modules/ctools/plugins/content_types/node/icon_node.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" /\x3e\x3c/a\x3e\x3cdiv\x3e\x3ca href=\"/test/?q=panels/ajax/editor/add-pane/panel_context%3Apage-home%3Apage_home_panel_context/center/node/node\" class=\"ctools-use-ajax panels-modal-add-config\" title=\"Add a node from your site as content.\"\x3eExisting node\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"content-type-button clear-block\"\x3e\x3ca href=\"/test/?q=panels/ajax/editor/add-pane/panel_context%3Apage-home%3Apage_home_panel_context/center/custom/custom\" class=\"ctools-use-ajax panels-modal-add-config\" title=\"Create a completely custom piece of HTML content.\"\x3e\x3cimg src=\"/test/modules/ctools/images/no-icon.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" /\x3e\x3c/a\x3e\x3cdiv\x3e\x3ca href=\"/test/?q=panels/ajax/editor/add-pane/panel_context%3Apage-home%3Apage_home_panel_context/center/custom/custom\" class=\"ctools-use-ajax panels-modal-add-config\" title=\"Create a completely custom piece of HTML content.\"\x3eNew custom content\x3c/a\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class=\"panels-categories-description\"\x3eContent options are divided by category. Please select a category from the left to proceed.\x3c/div\x3e\x3c/div\x3e" } ]

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Almost always when you see this, there should be a javascript error message of some flavor on the console.

Usually this has to do with conflicting javascript from some other module, or something I'm not quite taking into account properly in systems that are set up differently than any of the systems I'm more familiar with.

I can't help much without that info.

merlinofchaos’s picture

#6 and #8 are not related to this issue. They cannot be addressed here.

cj-cj’s picture

any idea where we can get help with this then?

As the problem is you can not add content to a panel region, as there is nowhere for you to add it, just code when you click on the cog to add content

Itangalo’s picture

What other modules are activated?

cj-cj’s picture

Ok problem solved for me I have updated to drupal 6.19 this evening and all is working as it should. I have also uploaded the basic themes that come with drupal and now i have no problem, i can see and add content.

Thanks for all you help

sparky_s’s picture

I'm having this issue as well. Cannot add any content to any panes. I get the message below.

Drupal 6.17 (just upgraded tonight)
CTools 6.x-1.7
Panels 6.x-3.7

An error occurred at http://www.troutu.com/panels/ajax/editor/add-pane/panel_context%253Apage....

Error Description: 0:

Any tips on how to get more info on the Javascript error? I'd prefer not to upgrade Drupal to 6.19 unless I understand why that will fix this...

thanks

MVR’s picture

Issue tags: +panel json error
FileSize
82.88 KB

Hi!
I'm having the same problem.
I click on button "add content" and have errors in post 6 and 8.
Tried on Drupal 6.17 and Drupal 6.19.
I think that syntax error in json-line.
http://drupalbin.com/12956
But why the problem does not occur in all users?

MVR’s picture

Drupal 6.14, Ctools 6.1, Panels 6.3 work.
This problem is not compatible versions.

Mirakolous’s picture

I have the same problem as #14. There is no Ctools 6.1 and panels 6.3. What version of Ctools 1 and Panels 3 do you have? I am kind of in a hurry so I am thinking of downgrading until this issue is resolved.

merlinofchaos’s picture

One thing I've noticed is that themes that do not properly contain $closure in their page.tpl.php file are causing things to break by not containing some necessary javascript. This is one thing to check.

jimmynash’s picture

I started running into the same issue with Drupal 6.19, Ctools 6.x-17, Panels 6.x-3.7.

The issues listed in #6 and #8 were the same thing I was seeing.

When editing the content of a Panel, if I clicked on the Gear for a Pane and clicked Add Content, no modal would appear and I would get JSON on a white screen. There were no errors in the console and no errors in any logs that I could see.
I also was unable to add Selection Rules because no modal would appear. Clicking the Add button just refreshed the screen without actually adding the Selection Rule chosen.

I made sure all modules were upgraded to their most current recommended versions and then began shutting them off one by one. Nothing seemed to be making any difference. So I decided to try themes.

I was using the Marvin core theme as an administrative theme. I switched the administrative theme to garland and the problem went away.

I don't know what it was about that theme that was causing the issue. But If I switch back to that theme for administration I can't use some very important pieces of Panels.

esmerel’s picture

@19 - you saw comments 6 and 8, but not comment 10 apparently. 6 and 8 are unrelated to this issue

DiegoFRoldan’s picture

I was having this same issue and realized that a lot of javascript files I used for the main pages where being called on the admin pages as well, so it was probably causing a conflict with the ctools and panels JS files.

So basically wherever I had a drupal_add_js I wrapped it with a condition to not include those files on the admin pages.

e.g.
if(arg(0) != 'admin') {
drupal_add_js(.....);
}

leisurman’s picture

Post #1 Simple Menu Module, gave me a Panel error ...[ { "command": "settings", "argument": { "basePath": ......much more............I think another module could do the same thing?

devereux’s picture

I also have this error.

Drupal 6.19
CTools 6.x-1.7
Panels 6.x-3.7

Everything else works fine and I've made few other changes to the system nor had any other error. Tried in both Chrome and IE

It happens whatever admin theme I'm on.

sparky_s’s picture

We are experiencing the same problem.

Drupal 6.17
CTools 6.x-1.7
Panels 6.x-3.7

Besides occurring when adding content, it also occurs when adding Selection Criteria to a variant of the Taxonomy Term Template. The Add Criteria screen comes up, no problem, but then when I select my options and click Save I get "error occured at ..../ctools/context/ajax/access/add/page_manager_task_handler-term_view%252Aterm_view_panel_context_3/term." Error Description: 0

russelljtdyer’s picture

I had as well problems with adding content and my whole site was sluggish. I upgraded to Drupal 6.19 (rel 5.23). Now I can add content to panels again and the site is fairly peppy--at least it is for now. Hopefully, it will continue to run smoothly and I'll be able to make changes with out barriers. Before this Drupal was a drag--emotionally on me and performance wise on my entire server. It was particularly choking MySQL, which is used by other sites on the same server which are not running Drupal. So, well done to Dries and all those who worked on this latest version and release. Thanks.

sparky_s’s picture

I've upgraded to Drupal 6.19 and still having the same problem when I try to add any content. (NOTE: I can move a pane from one area to another without a problem.)

Drupal 6.19
CTools 6.x-1.7
Panels 6.x-3.7

When I go to add a new pane to include a view, I choose my view, then on the "Select Display" page I click "Continue", then I get the following:

"An error occured at http://www.mysite.com/panels/ajax/editor/add-pane/panel_context%253Anode...."

Error Description: 0

Anybody have any suggestions? I've been 3 weeks now without being able to update my panel pages...

thanks,
Tom

sparky_s’s picture

FileSize
29.61 KB

Update from Sparky:

We were suspecting that maybe something got corrupted during one of our numerous Drupal / CTools / Panels upgrades.

We disabled Ctools, Panels, and Views, then completely removed these modules.

Then we reinstalled the modules and re-enabled them.

Same error.

Attached is the error I got tonight-- I was trying to add a custom panel pane.

TS

merlinofchaos’s picture

Almost always when you get that kind of message, there should be a corresponding error in your php/apache/watchdog log that says what actually happened on the server to cause it. You need to check into that.

ace911’s picture

Component: Panel nodes » Panel pages

I am not sure if this is related, but I upgraded from panels 3.2 to 3.7 and ctools 1.2 to 1.7, and most of the custom content in my panels simply said n/a. I am unable to edit the n/a content, any attempt to add new content does not save. I am currently using panels 3.5 and ctools 1.6, and the problems are gone, but if I try install ctools 1.7 they return. So I assume it is something with interaction between panels and ctools 1.7?

merlinofchaos’s picture

That's not related; you should probably file a new issue for this one. It's also very strange. Clearly there is something odd in the update but I cannot think what would be causing that.

For reference, the n/a usually occurs when a NULL value is sent to check_markup which suggests that somehow the custom content is getting lost. I cannot think how it would be disappearing, though. In any case, file a new issue. One thing that might help is providing an export of a panel that is exhibiting that behavior.

mrP’s picture

I had the same problem as sparky_s. disabled securepages and I can now add content to panels.

UPDATE:
ctools 1.3 / panels 3.3 / securepages 1.8 -- there is no problem adding content to panels with securepages is enabled
ctools 1.7 / panels 3.7 / securepages 1.8 -- securepages must be disabled for admin pages in order to add content to panels

sparky_s’s picture

Disabling secure pages did make my problem go away.

However, I was able to re-enable Secure pages and just make sure admin/build/panels/* is not secured.

So now my site is working with Secure pages, but my Panels are working again.

Thanks!

rootical’s picture

Status: Postponed (maintainer needs more info) » Fixed

I have fixed the problem (An error occured while trying to add any kind of content) for myself by upgrading the Php version (from 4.9 to 5.2)
Now everything works just fine

tinhoang’s picture

No fix for this issue? I can't add any content to my views. The little timer next to the finish button just spins.

If i can close out that window, i see the block i'm trying to add is there, but there is no info in it.

There doesn't seem to be an error. The little blue circle just keeps spinning.

merlinofchaos’s picture

No fix for this issue?

Ugh. I'm not sure if you've failed to read or simply failed to provide any amount of detail. There seem to be a lot of possible causes for this kind of behavior.

Across several issues this has been discussed. There are known problems with some modules and some themes, particularly things like simplemenu (there's a patch, or try the -dev) version. You failed to state what modules you're using, nor did you suggest that you've checked these against any of the known issues already discussed in the issue.

Another thing that you should try is to open the javascript console (ctrl-shift-J when using firefox) and see if there's some kind of error given by the javascript. If there is, installing firebug and checking the firebug console to see what is happening during the post request can be valuable.

Finally...did you even try the -dev version? If you did not, you have no business even posting, particularly with such a sparse report.

tinhoang’s picture

I figured the main poster answered any relevant questions as I seemed to have the same set up. Was really asking him if his problem was fixed or not as it seemed he dropped out of the thread a few posts down but didn't post if problem was fixed.

If he did fix his issues, it'd be nice to know what he did.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gmasky’s picture

I am using the latest dev versions of ctools and panels. When I try to add content to a panel or change the style of the panel I get a blank window and I cannot add any content.

Firebug console gives me the following error:
POST http://aloysiusbandra.in/aloysius/panels/ajax/editor/select-content/pane...

and the error in firebub console

link.indexOf is not a function http://aloysiusbandra.in/aloysius/sites/default/file/js/js_35d3f0a10d415...
Line 1030

Any pointers will be appreciated

merlinofchaos’s picture

That javascript error is probably your culprit. Because you have .js aggregation and compression on, it's hard to tell whose error that is. Can you turn off javascript compression and see what actual file that javascript error happens in?

gmasky’s picture

Adding Content Error:
The error occurs in http://aloysiusbandra.in/aloysius/sites/all/modules/ctools/js/ajax-respo...

Change Style:
No error is showing in the firebug console but the blank window with the rotating blue thingy
POST http://aloysiusbandra.in/aloysius/panels/ajax/editor/style-type/panel_co...

and the js file location http://aloysiusbandra.in/aloysius/sites/all/modules/jquery_update/replac...

When I close the blank window and click update firebug throws up this error
Drupal.flexible.splitters[i].fixHeight is not a function Line 13

gmasky’s picture

Update: It seems when first I add a view or any other element or change style etc I have no problem.

However if I try to add an existing node I get the following error
Drupal.flexible.splitters[i].fixHeight is not a function
[Break on this error] Drupal.flexible.splitters[i].fixHeight();

at this location http://aloysiusbandra.in/aloysius/sites/all/modules/panels/plugins/layou...

After this I cannot add new content to panel or edit existing panels

gmasky’s picture

merlinofchaos,

I have posted the errors above. Any idea what is causing the error?

Gerry

Greg Varga’s picture

Same issue here. "link.indexOf is not a function" when trying to add new content to the panel
in /ctools/js/ajax-responder.js line 350.

I got jQuery UI (6.x-1.4) & jQuery Update (6.x-2.x-dev) modules.

EDIT:
-- apparently the error is not caused by the jQuery update module. It was a type in one of the custom JS files.

Cheers, egyember

ptaff’s picture

FileSize
291 bytes

Had the same issue with undefined indexOf(); here is a patch that does an additional sanity check; it seems to fix the symptoms though I guess it does not solve the core problem.

kundu’s picture

Thanks for this patch. it works for me.

adanelova’s picture

the same error as in #6 and #8
im getting this javascript error:

Drupal.CTools.Modal.modalContent is not a function

in file modal.js line 48

Where is the definiton of this function??
Thanks

meetlg’s picture

Project: Panels » Voting API
Version: 6.x-3.7 » 6.x-2.0-rc1
Component: Panel pages » Documentation

Thanks for this patch. it works for me.

gb2world’s picture

Usually this has to do with conflicting javascript from some other module,

Thank you for the tip - I looked at what modules were adding javascript and enabled/disabled them until I found the conflict.

I am using:
Drupal core 6.26
Panels 6.x-3.10
Chaos tool suite (ctools) 6.x-1.9

And the Drupal for Facebook module (6.x-3.3) adds javascript which causes the add content functionality in the panels to become unstable.

sucithra_shanu’s picture

I got this same kind of issue.. i don't have the module name jquery update , help me to fix this problem.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /drupal-7.22/panels/ajax/editor/add-pane/panel_context%3Apage-panel_title%3Apage_panel_title_panel_context/top/block/system-main-menu
StatusText: OK
ResponseText: [{"command":"settings","settings":{"basePath":"\/drupal-7.22\/","pathPrefix":"","ajaxPageState":{"theme":"seven","theme_token":"RojAzJvXyJXGm57CgXisN8t7CIIlR1i9uaLYDSem_dY"},"overlay":{"paths":{"admin":"node\/*\/webform\nnode\/*\/webform\/*\nnode\/*\/webform-results\nnode\/*\/webform-results\/*\nnode\/*\/submission\/*\nnode\/*\/edit\nnode\/*\/delete\nnode\/*\/revisions\nnode\/*\/revisions\/*\/revert\nnode\/*\/revisions\/*\/delete\nnode\/add\nnode\/add\/*\noverlay\/dismiss-message\nuser\/*\/shortcuts\nadmin\nadmin\/*\nbatch\ntaxonomy\/term\/*\/edit\nuser\/*\/cancel\nuser\/*\/edit\nuser\/*\/edit\/*","non_admin":"admin\/structure\/block\/demo\/*\nadmin\/reports\/status\/php"},"pathPrefixes":[],"ajaxCallback":"overlay-ajax"},"CTools":{"dependent":{"override-title-textfield":{"values":{"override-title-checkbox":[1]},"num":1,"type":"disable"}}}},"merge":true},{"command":"modal_display","title":"Configure new Main menu","output":"\u003Cform action=\u0022\/drupal-7.22\/panels\/ajax\/editor\/add-pane\/panel_context%3Apage-panel_title%3Apage_panel_title_panel_context\/top\/block\/system-main-menu\/form\u0022 method=\u0022post\u0022 id=\u0022ctools-block-content-type-edit-form\u0022 accept-charset=\u0022UTF-8\u0022\u003E\u003Cdiv\u003E\u003Cdiv class=\u0022option-text-aligner clearfix\u0022\u003E\u003Cdiv class=\u0022form-item form-type-checkbox form-item-override-title\u0022\u003E\n \u003Cinput type=\u0022checkbox\u0022 id=\u0022override-title-checkbox\u0022 name=\u0022override_title\u0022 value=\u00221\u0022 class=\u0022form-checkbox\u0022 \/\u003E \u003Clabel class=\u0022option\u0022 for=\u0022override-title-checkbox\u0022\u003EOverride title \u003C\/label\u003E\n\n\u003C\/div\u003E\n\u003Cdiv class=\u0022form-item form-type-textfield form-item-override-title-text\u0022\u003E\n \u003Cinput type=\u0022text\u0022 id=\u0022override-title-textfield\u0022 name=\u0022override_title_text\u0022 value=\u0022\u0022 size=\u002235\u0022 maxlength=\u0022128\u0022 class=\u0022form-text\u0022 \/\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003Cdiv class=\u0022description\u0022\u003EYou may use %keywords from contexts, as well as %title to contain the original title.\u003C\/div\u003E\u003Cinput type=\u0022hidden\u0022 name=\u0022form_build_id\u0022 value=\u0022form-NHkr3pUhS0xAnJ_VQKWvsKEg0sljXCWWZq2zDf1ennQ\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_token\u0022 value=\u0022TE9QOsadpw8NdkDNWdk87OrGJYOjRUxe0CDZ8cdAWXs\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_id\u0022 value=\u0022ctools_block_content_type_edit_form\u0022 \/\u003E\n\u003Cdiv class=\u0022form-actions form-wrapper\u0022 id=\u0022edit-buttons--2\u0022\u003E\u003Cinput type=\u0022submit\u0022 id=\u0022edit-return--2\u0022 name=\u0022op\u0022 value=\u0022Finish\u0022 class=\u0022form-submit\u0022 \/\u003E\u003Cinput type=\u0022submit\u0022 id=\u0022edit-cancel\u0022 name=\u0022op\u0022 value=\u0022Cancel\u0022 class=\u0022form-submit\u0022 \/\u003E\u003C\/div\u003E\u003C\/div\u003E\u003C\/form\u003E"}]

Thanks