[Plugin: WordPress Mobile Pack] iphone "handler could not be

Here we will discuss about Wordpress plugins development and their support
  • Ads

[Plugin: WordPress Mobile Pack] iphone "handler could not be

Postby albert » Tue Aug 10, 2010 11:17 pm

hello there. generally great plugin! running version 1.2 on wordpress 2.7.1. works great for me except for 1 thing. on my iphone 3g, every page load i get a popup message saying "<my website url> Handler could not be removed". Not sure what's causing it. Probably a conflict with a plugin? After i click "OK" the page loads fine... Any help is much appreciated.
albert
Jr. Member
Jr. Member
 
Posts: 120
Joined: Mon Jul 26, 2010 1:40 am

Re: [Plugin: WordPress Mobile Pack] iphone "handler could not be

Postby albert » Tue Aug 10, 2010 11:18 pm

Update: so it seems like it's this script that's responsible (see below). not sure if that script is from this mobile pack plugin or not. it should be noted that this popup message does not show up when viewing the desktop site on my iphone.

script:
Code: Select all
<script type="text/javascript"><!--

               function addEvent(elm, evType, fn, useCapture)
               // addEvent and removeEvent
               // cross-browser event handling for IE5+,  NS6 and Mozilla
               // By Scott Andrew
               {
                 if (elm.addEventListener){
                     elm.addEventListener(evType, fn, useCapture);
                     return true;
                 } else if (elm.attachEvent){
                     var r = elm.attachEvent("on"+evType, fn);
                     return r;
                 } else {
                     alert("Handler could not be removed");
                 }
               }
               function externalLinks() {
                if (!document.getElementsByTagName) return;
                var anchors = document.getElementsByTagName("a");
             var newwindows =0;
                for (var i=0; i<anchors.length; i++) {
                  var anchor = anchors[i];
                  if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
                           anchor.setAttribute("target","_blank");
                     newwindows++;
               }
                }
               }

               addEvent(window, "load", externalLinks);

               //-->
               </script>
albert
Jr. Member
Jr. Member
 
Posts: 120
Joined: Mon Jul 26, 2010 1:40 am

Re: [Plugin: WordPress Mobile Pack] iphone "handler could not be

Postby albert » Tue Aug 10, 2010 11:18 pm

after much researching and fiddling with plugins, i found the culprit. it was not this plugin! or, more specifically, it was the mobile version produced by this plugin and some script being called by the Feedlist plugin (which i had installed, but wasn't even using!!). deactivated feedlist and voila! working great on the iphone. psyched. great job guys!
albert
Jr. Member
Jr. Member
 
Posts: 120
Joined: Mon Jul 26, 2010 1:40 am

Re: [Plugin: WordPress Mobile Pack] iphone "handler could not be

Postby shenogerlin » Tue Aug 10, 2010 11:18 pm

Thanks I had the same problem here and deactivated feedlist to fix. Not sure why I was using feedlist either. hmm.
shenogerlin
Jr. Member
Jr. Member
 
Posts: 129
Joined: Fri Jul 30, 2010 12:53 am

  • Ads

Return to Wordpress Plugins

Who is online

Users browsing this forum: No registered users and 1 guest

cron