Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   Bug discovered from plugin - TimeZoneCalculator (http://forum.bytesforall.com/showthread.php?t=8505)

scrollpost Jul 25, 2010 04:34 AM

Bug discovered from plugin - TimeZoneCalculator
 
When this plugin is installed, all my customizations - for example "Add HTML/CSS Inserts" disappeared from the entry box although they still worked.

From the developer of the plugin:

Quote:

I've found the bug, but it is not related to TimeZoneCalculator. - I mean it is in a way, because TimeZoneCalculator uses a standard JavaScript-library, called Prototype: http://www.prototypejs.org/ This library is included in the WordPress default JavaScript libraries and many plugins (including WordPress itself) make use of its functions.

Anyway, it seems like Atahualpa has some kind of conflict with this library.

There are for sure a lot of plugins out there which rely on the usage of prototype. Maybe you should get in contact with the author of Atahualpa and report this bug to him.

uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLTextAreaElement.selectionStart]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/test1/wp-content/th...or-textarea.js :: anonymous :: line 54" data: no]

Here's the code, I've used to reproduce the bug without enabled TimeZoneCalculator

function test_scripts() {
wp_enqueue_script('prototype');
}

add_action('admin_print_scripts', 'test_scripts');


All times are GMT -6. The time now is 06:16 PM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.