[wp-testers] plugin activation problem in 2.1

LCSV4 theape at thelittlechimpsociety.com
Mon Feb 19 08:24:45 GMT 2007


Hey Dan, I've just realise it's your plugin.

I sent you an email about this before, but for the comms plugin. If you 
can't resolve this problem for e-commerce.

Try this. In wp-shopping-cart.php

Line 857
<script src="<?php echo $siteurl; 
?>/wp-content/plugins/wp-shopping-cart/js/prototype.js" 
language='JavaScript' type="text/javascript"></script>

Switch for
<script src="<?php echo $siteurl; /wp-includes/js/prototype.js" 
language='JavaScript' type="text/javascript"></script>

You prototype JS 1.5.0_rc1 is different from the one used in WP 2.1 JS 
1.5.0_rc0 and may cause conflicts, with two prototype scripts being called 
at the same time. WP2xx didn't have a prototypy JS for it to conflict with.

----- Original Message ----- 
From: "azrin" <azrin at bbs.nu>
To: <wp-testers at lists.automattic.com>
Sent: Monday, February 19, 2007 4:26 AM
Subject: Re: [wp-testers] plugin activation problem in 2.1


> dAN,
> You might have to recode the plug in for a FF view...cos looks like the js 
> calls from timmorgan.org
>
> so get that JS in, copy and paste to your main site...and try it again.... 
> (base ajax.js)
>
> some plugins have a AJAX.JS installed....so watch out for conflicts
>
> Good luck
>
>
> Dr Azrin  ( www.azrin.net )
> iExploreAsia Medical Group UK
> part of the BBS.NU Community Websites.
> a member of BBS.NU-Info Perkahwinan-EbayTrust Alliance
> Promoting Better Family Values for all
> ----- Original Message ----- 
> From: "Dan Milward" <dan at instinct.co.nz>
> To: <wp-testers at lists.automattic.com>
> Sent: Monday, February 19, 2007 6:40 AM
> Subject: Re: [wp-testers] plugin activation problem in 2.1
>
>
>> Thanks for the reply.
>>
>> I'm using Firefox 2.0.0.1 on Windows and my work mate is using 2.0.0.1 on 
>> Linux and we both experience the same problem. Is it worth mentioning 
>> that this is an upgrade as well - not a fresh install. Now I have 
>> refreshed the page and get this garbage:
>>
>> //* base url */ var base_url = "http://sms.instinct.co.nz/blogshop"; /* 
>> LightBox Configuration start*/ var fileLoadingImage = 
>> "http://sms.instinct.co.nz/blogshop/wp-content/plugins/wp-shopping-cart/images/loading.gif"; 
>> var fileBottomNavCloseImage = 
>> "http://sms.instinct.co.nz/blogshop/wp-content/plugins/wp-shopping-cart/images/closelabel.gif"; 
>> var resizeSpeed = 9; var borderSize = 10; /* LightBox Configuration end*/ 
>> /* Ajax functions start*/ // Copyright (c) 2005 Timothy R. Morgan // // 
>> Permission is hereby granted, free of charge, to any person obtaining a 
>> copy // of this software and associated documentation files (the 
>> "Software"), to deal // in the Software without restriction, including 
>> without limitation the rights // to use, copy, modify, merge, publish, 
>> distribute, sublicense, and/or sell // copies of the Software, and to 
>> permit persons to whom the Software is // furnished to do so, subject to 
>> the following conditions: // // The above copyright notice and this 
>> permission notice shall be included in // all copies or substantial 
>> portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT 
>> WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO 
>> THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE 
>> AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT 
>> HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER 
>> IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR 
>> IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE 
>> SOFTWARE. // mini/ajax.js - http://timmorgan.org/mini function 
>> $(e){if(typeof e=='string')e=document.getElementById(e);return e}; 
>> function collect(a,f){var n=[];for(var i=0;i 0) && (image_height <= 
>> 1024)) && ((image_width > 0) && (image_width <= 1024))) { new_url = 
>> "index.php?productid="+prodid+"&height="+image_height+"&width="+image_width+""; 
>> document.getElementById("preview_link").setAttribute('href',new_url); } 
>> else { new_url = "index.php?productid="+prodid+""; 
>> document.getElementById("preview_link").setAttribute('href',new_url); } 
>> return false; } function checkimageresize() { 
>> document.getElementById('image_resize2').checked = true; } function 
>> add_variation_value(value_type) { container_id = 
>> value_type+"_variation_values"; //alert(container_id); last_element_id = 
>> document.getElementById(container_id).lastChild.id; last_element_id = 
>> last_element_id.split("_"); last_element_id = last_element_id.reverse(); 
>> new_element_id = "variation_value_"+(parseInt(last_element_id[0])+1); 
>> old_elements = document.getElementById(container_id).innerHTML; 
>> //new_element_contents = ""; new_element_contents = ""; if(value_type == 
>> "edit") { new_element_contents += ""; } else { new_element_contents += 
>> ""; } new_element_contents += " "+TXT_WPSC_DELETE+" 
>> <http://sms.instinct.co.nz/blogshop/wp-admin/plugins.php#>
>> "; //new_element_contents += ""; new_element = 
>> document.createElement('span'); new_element.id = new_element_id; 
>> document.getElementById(container_id).appendChild(new_element); 
>> document.getElementById(new_element_id).innerHTML = new_element_contents; 
>> return false; } // if(($_POST['ajax'] == "true") && 
>> ($_POST['remove_variation_value'] == "true") && 
>> is_numeric($_POST['variation_value_id'])) function 
>> remove_variation_value(id,variation_value) { var 
>> delete_variation_value=function(results) { } element_count = 
>> document.getElementById("add_variation_values").childNodes.length; 
>> if(element_count > 1) { 
>> ajax.post("index.php",delete_variation_value,"ajax=true&remove_variation_value=true&variation_value_id="+variation_value); 
>> target_element = document.getElementById(id); 
>> document.getElementById("add_variation_values").removeChild(target_element); 
>>  } } function remove_variation_value_field(id) { element_count = 
>> document.getElementById("add_variation_values").childNodes.length; 
>> if(element_count > 1) { target_element = document.getElementById(id); 
>> document.getElementById("add_variation_values").removeChild(target_element); 
>>  } } function variation_value_list(id) { var 
>> display_list=function(results) { eval(results); if(variation_value_html 
>> != '') { new_element_id = "product_variations_"+variation_value_id; 
>> if(document.getElementById(new_element_id) === null) { new_element = 
>> document.createElement('span'); new_element.id = new_element_id; 
>> document.getElementById("edit_product_variations").appendChild(new_element); 
>> document.getElementById(new_element_id).innerHTML = 
>> variation_value_html; } } } 
>> ajax.post("index.php",display_list,"ajax=true&list_variation_values=true&variation_id="+id+"&prefix=edit_product_variations"); 
>>  } function add_variation_value_list(id) { var 
>> display_list=function(results) { eval(results); if(variation_value_html 
>> != '') { new_element_id = "add_product_variations_"+variation_value_id; 
>> if(document.getElementById(new_element_id) === null) { new_element = 
>> document.createElement('span'); new_element.id = new_element_id; 
>> document.getElementById("add_product_variations").appendChild(new_element); 
>> document.getElementById(new_element_id).innerHTML = 
>> variation_value_html; } } } 
>> ajax.post("index.php",display_list,"ajax=true&list_variation_values=true&variation_id="+id+"&prefix=add_product_variations"); 
>>  } function remove_variation_value_list(prefix,id) { if(prefix == 
>> "edit_product_variations") { target_element_id = 
>> "product_variations_"+id; } else { target_element_id = prefix+"_"+id; } 
>> target_element = document.getElementById(target_element_id); 
>> document.getElementById(prefix).removeChild(target_element); return 
>> false; } function tick_active(target_id,input_value) { if(input_value != 
>> '') { document.getElementById(target_id).checked = true; } } function 
>> add_form_field() { time = new Date(); new_element_number = 
>> time.getTime(); new_element_id = "form_id_"+new_element_number; 
>> new_element_contents = ""; new_element_contents += " \n\r"; 
>> new_element_contents += "\n\r"; new_element_contents += "\n\r"; 
>> new_element_contents += "\n\r"; new_element_contents += "\n\r"; 
>> new_element_contents += "\n\r"; new_element_contents += "\n\r"; 
>> new_element_contents += "\n\r"; new_element_contents += "/
>> // / / // // // /"+TXT_WPSC_DELETE+" 
>> <http://sms.instinct.co.nz/blogshop/wp-admin/plugins.php#>/ /
>> /
>>
>> /"; new_element = document.createElement('div'); new_element.id = 
>> new_element_id; 
>> document.getElementById("form_field_form_container").appendChild(new_element); 
>> document.getElementById(new_element_id).innerHTML = new_element_contents; 
>> return false; } function remove_new_form_field(id) { element_count = 
>> document.getElementById("form_field_form_container").childNodes.length; 
>> if(element_count > 1) { target_element = document.getElementById(id); 
>> document.getElementById("form_field_form_container").removeChild(target_element); 
>>  } return false; } function remove_form_field(id,form_id) { var 
>> delete_variation_value=function(results) { } element_count = 
>> document.getElementById("form_field_form_container").childNodes.length; 
>> if(element_count > 1) { 
>> ajax.post("index.php",delete_variation_value,"ajax=true&remove_form_field=true&form_id="+form_id); 
>> target_element = document.getElementById(id); 
>> document.getElementById("form_field_form_container").removeChild(target_element); 
>>  } return false; } function show_status_box(id,image_id) { state = 
>> document.getElementById(id).style.display; if(state != 'block') { 
>> document.getElementById(id).style.display = 'block'; 
>> document.getElementById(image_id).src = 
>> '../wp-content/plugins/wp-shopping-cart/images/icon_window_collapse.gif'; 
>>   } else { document.getElementById(id).style.display = 'none'; 
>> document.getElementById(image_id).src = 
>> '../wp-content/plugins/wp-shopping-cart/images/icon_window_expand.gif'; } 
>>   } function submit_status_form(id) { 
>> document.getElementById(id).submit(); } // pe.{ var prevElement = null; 
>> var prevOption = null; function hideOptionElement(id, option) { if 
>> (prevOption == option) { return; }/
>>
>>
>> So it looks like it is lightbox related stuff but when we remove lightbox 
>> it still doest work - maybe if we delete the WP cache it will fix it?
>>
>> The plugins.php page doesn't show at all in IE7 (so none of the above 
>> garbage) which is even more strange to me.
>>
>> I've attached an image showing what happens when you click "any" link on 
>> the page when we activated the plugin... of course now we don't get this 
>> we just get the above garbage...
>>
>> Ciao,
>>
>> Dan
>>
>>
>>
>> LCSV4 wrote:
>>> BTW the exact thing you descrided happen with FF and not IE or Safari 
>>> when I activated the Communications by Instinct. I cleared the FF cache 
>>> and it went away. It came back again when I used the plugin for the 
>>> first time, but upgrading to Firefox/2.0.0.1 got rid of the problem 
>>> again.
>>>
>>> ----- Original Message ----- From: "LCSV4" 
>>> <theape at thelittlechimpsociety.com>
>>> To: <wp-testers at lists.automattic.com>
>>> Sent: Sunday, February 18, 2007 9:52 PM
>>> Subject: Re: [wp-testers] plugin activation problem in 2.1
>>>
>>>
>>>> Which browser are you using?
>>>>
>>>> I've had this problem before, but it was browser related.
>>>>
>>>> ----- Original Message ----- From: "Dan Milward" <dan at instinct.co.nz>
>>>> To: <wp-testers at lists.automattic.com>
>>>> Sent: Sunday, February 18, 2007 9:45 PM
>>>> Subject: [wp-testers] plugin activation problem in 2.1
>>>>
>>>>
>>>>> Hey Guys,
>>>>>
>>>>> I don't know where else to turn... other then the WP hard core code 
>>>>> heavies on the testers list.
>>>>>
>>>>> When we activate our plugin ( WP e-Commerce on a WP 2.1install ) the 
>>>>> plugin activates okay but it does something crazy to all the links on 
>>>>> the plugins.php page - whenever you click any link on the page from 
>>>>> that point onwards it asks whether or not you want to save or download 
>>>>> that link as a php file - be it a link in the navigation bar or one of 
>>>>> the other plugin links it does not matter.
>>>>>
>>>>> Essentially it opens up a download box as well as running the code - 
>>>>> does anybody have any idea why this might be happening?
>>>>>
>>>>> Ciao,
>>>>>
>>>>> Dan
>>>>>
>>>>>
>>>>> Lloyd Budd wrote:
>>>>>> ---------- Forwarded message ----------
>>>>>> From: Ryan Boren <ryan at boren.nu>
>>>>>> Date: Feb 17, 2007 12:28 PM
>>>>>> Subject: [wp-hackers] Re: 2.0.9 and 2.1.1
>>>>>> To: wp-hackers at lists.automattic.com
>>>>>>
>>>>>>
>>>>>> 2.0.9-RC1 and 2.1.1-RC1 are now up.
>>>>>>
>>>>>> http://wordpress.org/download/release-archive/
>>>>>>
>>>>>> 2.0.9-RC1 has one change since the beta.  #3574 went in.
>>>>>>
>>>>>> http://trac.wordpress.org/ticket/3574
>>>>>>
>>>>>> 2.1.1-RC1 has two changes.
>>>>>>
>>>>>> http://trac.wordpress.org/ticket/3757
>>>>>> http://trac.wordpress.org/ticket/3701
>>>>>> _______________________________________________
>>>>>> wp-hackers mailing list
>>>>>> wp-hackers at lists.automattic.com
>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>>> _______________________________________________
>>>>>> wp-testers mailing list
>>>>>> wp-testers at lists.automattic.com
>>>>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>>>
>>>>> -- 
>>>>> Instinct Entertainment Limited
>>>>> Level 3, Education House, 178 Willis Street
>>>>> PO Box 12-519, Wellington, New Zealand
>>>>> Ph. 64-4-385 8082
>>>>> Mobile. 021-449 901
>>>>> dan at instinct.co.nz
>>>>> http://www.instinct.co.nz
>>>>>
>>>>> _______________________________________________
>>>>> wp-testers mailing list
>>>>> wp-testers at lists.automattic.com
>>>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>> _______________________________________________
>>>> wp-testers mailing list
>>>> wp-testers at lists.automattic.com
>>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>>
>>> _______________________________________________
>>> wp-testers mailing list
>>> wp-testers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>
>> -- 
>> Instinct Entertainment Limited
>> Level 3, Education House, 178 Willis Street
>> PO Box 12-519, Wellington, New Zealand
>> Ph. 64-4-385 8082
>> Mobile. 021-449 901
>> dan at instinct.co.nz
>> http://www.instinct.co.nz
>>
>> _______________________________________________
>> wp-testers mailing list
>> wp-testers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-testers
>>
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers 



More information about the wp-testers mailing list