Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#10394 closed defect (bug) (invalid)

Widgets-Context plugin breaks drag/drop in IE7 and IE8

Reported by: svandomelen's profile svandomelen Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

I have installed WP 2.8.1 on CentOS 5.3 with Apache 2.2.3-22 and PHP 5.1.6. After config, I installed the Widgets-Context plugin from http://konstruktors.com/blog/projects-services/wordpress-plugins/widget-context/.

Once installed, drag/drop of widgets from the wp-admin page no longer functions on IE7 or IE8, but it does work in Chrome/Firefox.

Also note that the plugin should highlight selections in green, but it does not; and option selections from the user are not saved when the "Save" button is pushed. Again, this functionality works in Chrome/Firefox. I was testing with Firefox 3.0.11.

I talked with the developer, Kaspars Dambis, (kaspars@…) via E-mail and it was his opinion that this was a bug in Wordpress, so I decided to follow-up here.

If the plugin is deactivated, drag/drop functionality returns.

I also tested on WP 2.8 and got the same results.

Change History (8)

#1 in reply to: ↑ description @azaozz
15 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Replying to svandomelen:

... If the plugin is deactivated, drag/drop functionality returns.

This answers the question, the plugin includes a tiny js file that has at least two errors in it...

#2 @Denis-de-Bernardy
15 years ago

  • Milestone Unassigned deleted

#3 @svandomelen
15 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

The plugin does not use javascript. The file is a leftover from a previous version. If you noticed, line 108 of the widget-context.php file commented out the call to that code.

#4 follow-up: @svandomelen
15 years ago

BTW: During the drap/drop on IE7/8, I also see the following error

Message: 'this.helper.0.style' is null or not an object
Line: 39
Char: 1983
Code: 0
URI: http://my_test_site.com/wp-admin/load-scripts.php?c=1&load=hoverIntent,common,jquery-color,jquery-ui-core,jquery-ui-sortable,jquery-ui-draggable,jquery-ui-droppable,admin-widgets&ver=2203e0189e7d540d81024839750b0838

#5 @Denis-de-Bernardy
15 years ago

the fact of the matter remains: disabling the plugin fixes things. so, unless/until a WP bug is identified explicitly, the ticket should remain closed.

#6 @Denis-de-Bernardy
15 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

Based on what I'm reading of the plugin, btw, I'm not surprised at all that it's broken. My own widget contexts plugin used a very similar approach, and it worked fine until WP 2.7.1. I had to rewrite it entirely, using a completely different approach, with 2.8.

#7 in reply to: ↑ 4 @azaozz
15 years ago

Replying to svandomelen:

BTW: During the drap/drop on IE7/8, I also see the following error

Message: 'this.helper.0.style' is null or not an object
Line: 39
Char: 1983

To be able to debug js you'll have to add define('SCRIPT_DEBUG', true) to wp-config and probably install the old MS debugger and enable it in IE so it shows the exact code causing the problem.

#8 @svandomelen
15 years ago

Worked more with the author and tested a rewrite of the plugin. Found a missing "</label>" tag as well. Everything is up and running. Thanks to everyone for the assist and info.

Note: See TracTickets for help on using tickets.