We can also not reproduce this problem on an other environemt, but i have managed to get some more information. If i disable the PayPal Add-On we see the following changes on the admin page:
-<script type='text/javascript' src='http://www.domainname.tld/wp-content/plugins/gravityforms/js/jquery.qtip-1.0.0-rc2.min.js?ver=1.6.11'></script>
-<script type='text/javascript' src='http://www.domainname.tld/wp-content/plugins/gravityforms/js/qtip_init.js?ver=1.6.11'></script>
-<link rel='stylesheet' id='gf_tooltip-css' href='http://www.domainname.tld/wp-content/plugins/gravityforms/css/tooltip.css?ver=1.6.11' type='text/css' media='all' />
Also if i comment the following line in te PayPal Add-On this problem is fixed:
//loading Gravity Forms tooltips
require_once(GFCommon::get_base_path() . "/tooltips.php");
If you just can make sure the tooltip scripts are only loaded on the Gravity Forms and PayPal Add-On pages it would be fixed.
//loading Gravity Forms tooltips
require_once(GFCommon::get_base_path() . "/tooltips.php");
add_filter('gform_tooltips', array('GFPayPal', 'tooltips'));
if(self::is_paypal_page()){
//enqueueing sack for AJAX requests
wp_enqueue_script(array("sack"));
//loading data lib
require_once(self::get_base_path() . "/data.php");
//loading upgrade lib
if(!class_exists("RGPayPalUpgrade"))
require_once("plugin-upgrade.php");
//runs the setup when version changes
self::setup();
}
I have changed this to:
if(self::is_paypal_page()){
//loading Gravity Forms tooltips
require_once(GFCommon::get_base_path() . "/tooltips.php");
add_filter('gform_tooltips', array('GFPayPal', 'tooltips'));
//enqueueing sack for AJAX requests
wp_enqueue_script(array("sack"));
//loading data lib
require_once(self::get_base_path() . "/data.php");
//loading upgrade lib
if(!class_exists("RGPayPalUpgrade"))
require_once("plugin-upgrade.php");
//runs the setup when version changes
self::setup();
}
This seems to fix the issue....
Posted 11 years ago on Tuesday February 5, 2013 |
Permalink