WordPress.org

Ready to get started?Download WordPress

Forums

WPGPlus
"A valid URL was not provided." (9 posts)

  1. ian-dp
    Member
    Posted 2 years ago #

    Since v 0.8.3 this plugin caused this error to appear when hitting "post" in wordpress. The post is still published, but the author is shown an otherwise blank error page. I turned off all plugins and tested one by one to confirm it was WPG+.

    I have had this plugin installed for some time and it has never pushed a single post to G+, so maybe it is just me.

    http://wordpress.org/extend/plugins/wpgplus/

  2. ian-dp
    Member
    Posted 2 years ago #

    A little extra info. I saved a debug log (can post if you say it's safe), and it ends abruptly with:


    Writing cookies from login get

    POSTing username and pass to: https://accounts.google.com/ServiceLoginAuth

    Line 120, My Redirect was https://accounts.google.com/CheckCookie?btmpl=mobile_tier2&continue=https%3A%2F%2Fplus.google.com%2Fapp%2Fplus%2Fx%2F%3Flogin%3D1&followup=https%3A%2F%2Fplus.google.com%2Fapp%2Fplus%2Fx%2F%3Flogin%3D1&service=webupdates&chtml=LoginDoneHtml

    Line 154, My Redirect was

  3. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    @ian-dp Have you ever visited the Google+ page from your mobile, or from a browser with a mobile user agent?

    What's happening is that the sequence of redirects you are getting don't match the ones the plugin is expecting - "a valid url was not provided" because we were expecting to get a redirect but didn't.

    This may be happening because Google wants you to accept a mobile terms of service?

    You could add a line to gplus.php right after line 154 which adds:
    wpgplus_debug("\nResponse was ". print_r($buf,true) ."\n");

    Then your debug file will actually include the full response from google at that moment.

    Not sure if this also might be some regional variation in Google+ for different language users?

  4. NLwriter
    Member
    Posted 2 years ago #

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still - use the pastebin ]

    Got the same error on german version of WP and Google+

    Writing cookies from login get

    POSTing username and pass to: https://accounts.google.com/ServiceLoginAuth

    Line 120, My Redirect was https://accounts.google.com/CheckCookie?btmpl=mobile_tier2&continue=https%3A%2F%2Fplus.google.com%2Fapp%2Fplus%2Fx%2F%3Flogin%3D1&followup=https%3A%2F%2Fplus.google.com%2Fapp%2Fplus%2Fx%2F%3Flogin%3D1&service=webupdates&chtml=LoginDoneHtml

    Line 154, My Redirect was

    The mobile terms are acceptet with my phone
    Developer Version of Plugin
    WP 3.4.1

    Added your debug in line 154, result is:

    Response was Array
    (
        [headers] => Array
            (
                [content-type] => text/html; charset=UTF-8
                [strict-transport-security] => max-age=2592000; includeSubDomains
                [p3p] => CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
                [cache-control] => no-cache, no-store
                [pragma] => no-cache
                [expires] => Mon, 01-Jan-1990 00:00:00 GMT
                [set-cookie] => Array
                    (
                        [0] => GAPS=1:ryco6LpmIpZa-ZtvjTcQm8Kf9gpRTg29:aH7C8Gad03smxVZJ;Path=/;Expires=Sat, 19-Jul-2014 09:16:14 GMT;Secure;HttpOnly
                        [1] => SID=DQAAAMEAAABvQEbozOSK5fUxVsCMkZ22LLe-E6bXwzMhsdhAb33uYj59oV9NpIrf-okC8gMsPd8vpEOsv0rIyG_uv6UeAoHlna15hvVwiHyNA7lKIKJjC5RLCIuhuH-GowPHS_V9yUIFyqN85R5RhZU_U7FX4fvKZydan-QU5hC5x0KkRV_I06rRF1L47FXLnz6zODtzy6l8knsUBKU-7VD4ovWghGNxSSfDw7MXy-hKfP-ScDqhNOOM789K9X4UCATkMoxLAlbauYefdL2QW0iveOM7x0wk;Domain=.google.com;Path=/;Expires=Sun, 17-Jul-2022 09:16:14 GMT
                        [2] => LSID=s.DE:DQAAAMEAAABe5jWySoWq2bpHQ83ViBDe2daR66ORpwlYZ5glc_rwU1O-JeebkJuR1pjfdqfADBkS-1EpnJo6kypFlR_GFJRjGtsH7aGC2H5MHKMVHgRgBv48z0i4GeFPkmkjqJBhdj6dWorTqCA4q8TaOpcuBwWjv_ieSDhZeWoC-mGiT-gnZt7o8btqWosJ1fWe39UFQXrjagQHaKhEA7PEklkicAzo2Ykjf0BqGp6uGT8drn7wgAb2pKOBWfeqls0nx6_q20CgQ_GF-gtlqVFQ1wmxTOcA;Path=/;Expires=Sun, 17-Jul-2022 09:16:14 GMT;HttpOnly
                    )
    
                [content-encoding] => deflate
                [date] => Thu, 19 Jul 2012 09:16:14 GMT
                [x-content-type-options] => nosniff
                [x-xss-protection] => 1; mode=block
                [content-length] => 686
                [server] => GSE
            )
    
        [body] => <?xml version="1.0" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Google</title>
    <meta http-equiv="refresh" content="0; url='http://www.google.de/accounts/SetSID?ssdc=1&sidt=ALWU2cuHx%2F3zCv%2BnUuUE5%2FYnnANqCNPqj1XpJicjXL%2BD18E8KblYzM5ytMTi%2BkyDePcH6SIpZGM1Aab74q3mmRr1eryTmxWkqJb%2FgovhnNJwi%2BgOacowcpEamzlOQ14Ykb%2FHwEcNLS2NTvcYpiBN6Vn2TJgWzy8CqQ0MWSSGLSQuzIujsmClQNupAVntF27hjHJP4xyl6dwY%2FkwHZtvPRFq8x05PRbDw8eGyKvpdyy6BphpeNUpGQKiHTuROazoJ7peulZQdasUs1pt2tTVypgop2FKBpGr7xg%3D%3D&continue=https%3A%2F%2Faccounts.google.com%2FServiceLogin%3Fpassive%3Dtrue%26go%3Dtrue%26btmpl%3Dmobile_tier2%26continue%3Dhttps%253A%252F%252Fplus.google.com%252Fapp%252Fplus%252Fx%252F%253Flogin%253D1%26followup%3Dhttps%253A%252F%252Fplus.google.com%252Fapp%252Fplus%252Fx%252F%253Flogin%253D1%26service%3Dwebupdates%26fss%3D1'" /></head>
    <body> <a href="http://www.google.de/accounts/SetSID?ssdc=1&sidt=ALWU2cuHx%2F3zCv%2BnUuUE5%2FYnnANqCNPqj1XpJicjXL%2BD18E8KblYzM5ytMTi%2BkyDePcH6SIpZGM1Aab74q3mmRr1eryTmxWkqJb%2FgovhnNJwi%2BgOacowcpEamzlOQ14Ykb%2FHwEcNLS2NTvcYpiBN6Vn2TJgWzy8CqQ0MWSSGLSQuzIujsmClQNupAVntF27hjHJP4xyl6dwY%2FkwHZtvPRFq8x05PRbDw8eGyKvpdyy6BphpeNUpGQKiHTuROazoJ7peulZQdasUs1pt2tTVypgop2FKBpGr7xg%3D%3D&continue=https%3A%2F%2Faccounts.google.com%2FServiceLogin%3Fpassive%3Dtrue%26go%3Dtrue%26btmpl%3Dmobile_tier2%26continue%3Dhttps%253A%252F%252Fplus.google.com%252Fapp%252Fplus%252Fx%252F%253Flogin%253D1%26followup%3Dhttps%253A%252F%252Fplus.google.com%252Fapp%252Fplus%252Fx%252F%253Flogin%253D1%26service%3Dwebupdates%26fss%3D1"> Click here</a> to continue.</body></html>
        [response] => Array
            (
                [code] => 200
                [message] => OK
            )
    
        [cookies] => Array
            (
                [0] => WP_Http_Cookie Object
                    (
                        [name] => GAPS
                        [value] => 1:ryco6LpmIpZa-ZtvjTcQm8Kf9gpRTg29:aH7C8Gad03smxVZJ
                        [expires] => 1405761374
                        [path] => /
                        [domain] =>
                        [secure] =>
                        [httponly] =>
                    )
    
                [1] => WP_Http_Cookie Object
                    (
                        [name] => SID
                        [value] => DQAAAMEAAABvQEbozOSK5fUxVsCMkZ22LLe-E6bXwzMhsdhAb33uYj59oV9NpIrf-okC8gMsPd8vpEOsv0rIyG_uv6UeAoHlna15hvVwiHyNA7lKIKJjC5RLCIuhuH-GowPHS_V9yUIFyqN85R5RhZU_U7FX4fvKZydan-QU5hC5x0KkRV_I06rRF1L47FXLnz6zODtzy6l8knsUBKU-7VD4ovWghGNxSSfDw7MXy-hKfP-ScDqhNOOM789K9X4UCATkMoxLAlbauYefdL2QW0iveOM7x0wk
                        [expires] => 1658049374
                        [path] => /
                        [domain] => .google.com
                    )
    
                [2] => WP_Http_Cookie Object
                    (
                        [name] => LSID
                        [value] => s.DE:DQAAAMEAAABe5jWySoWq2bpHQ83ViBDe2daR66ORpwlYZ5glc_rwU1O-JeebkJuR1pjfdqfADBkS-1EpnJo6kypFlR_GFJRjGtsH7aGC2H5MHKMVHgRgBv48z0i4GeFPkmkjqJBhdj6dWorTqCA4q8TaOpcuBwWjv_ieSDhZeWoC-mGiT-gnZt7o8btqWosJ1fWe39UFQXrjagQHaKhEA7PEklkicAzo2Ykjf0BqGp6uGT8drn7wgAb2pKOBWfeqls0nx6_q20CgQ_GF-gtlqVFQ1wmxTOcA
                        [expires] => 1658049374
                        [path] => /
                        [domain] =>
                        [httponly] =>
                    )
    
            )
    
        [filename] =>
    )

    Seems like there ist no ['headers']['location'].

    Anny idea?

  5. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    Interestingly, it looks like they are not returning a 301 or 302 redirect, with a location in the headers, but instead an http-equiv="refresh" which is handled by the client.

    Thanks for providing - I've got some ideas how to handle this but it will take some time. (We'll have to check for a 200 status code and then if one is found look for http-equiv refresh and follow that url).

    It may be that we can just stop redirecting at that point, but we'll have to experiment a bit - not sure all the necessary cookies have been set yet.

  6. oh_franck
    Member
    Posted 1 year ago #

    Is this bug being fixed, I have the exact same problem: "A valid URL was not provided."
    Nothing is never posted to Google Plus...
    Any update coming soon?

  7. johneckman
    Member
    Plugin Author

    Posted 1 year ago #

    oh_franck - honestly I've not been actively working on this plugin lately - day job and all.

    Anyone interested in contributing? See https://github.com/jeckman/wpgplus

    It's hard for me to test all the different country combinations for Google+, and since they don't offer a read/write API, I have to fake mobile browser access, which works differently in different regions.

    It is on my list of todos to fix: https://github.com/jeckman/wpgplus/issues/1

    But I've no idea when I may get the time

  8. oh_franck
    Member
    Posted 1 year ago #

    I understand, thanks for replying. We just have to hope you can find some time :-)

  9. Plug n' Test
    Member
    Posted 1 year ago #

    Hello John!
    I also have the same problem: receiving "A valid URL was not provided."
    I don't use mobile browser, but my home PC.
    I tried debugging the problem and what I got was this:

    Writing cookies from login get
    
    POSTing username and pass to: https://accounts.google.com/ServiceLoginAuth
    
    Line 120, My Redirect was https://accounts.google.com/SmsAuth?btmpl=mobile_tier2&continue=https%3A%2F%2Fplus.google.com%2Fapp%2Fbasic%2Fstream%3Fgpsrc%3Dgplp0%26partnerid%3Dgplp0&followup=https%3A%2F%2Fplus.google.com%2Fapp%2Fbasic%2Fstream%3Fgpsrc%3Dgplp0%26partnerid%3Dgplp0&service=oz&ltmpl=tier2gplus&persistent=yes
    
    Line 154, My Redirect was 
    
    Response was Array
    (
        [headers] => Array
            (
                [content-type] => text/html; charset=UTF-8
                [strict-transport-security] => max-age=2592000; includeSubDomains
                [cache-control] => no-cache, no-store
                [pragma] => no-cache
                [expires] => Mon, 01-Jan-1990 00:00:00 GMT
                [x-frame-options] => Deny
                [date] => Mon, 06 May 2013 14:03:54 GMT
                [x-content-type-options] => nosniff
                [x-xss-protection] => 1; mode=block
                [server] => GSE
            )
    
        [body] => <!DOCTYPE html>
    <html lang="en">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <head>
      <meta charset="utf-8">
      <title>Google Accounts</title>
    <style type="text/css">
      html, body, div, h1, h2, h3, h4, h5, h6, p, img, dl,
      dt, dd, ol, ul, li, table, tr, td, form, object, embed,
      article, aside, canvas, command, details, fieldset,
      figcaption, figure, footer, group, header, hgroup, legend,
      mark, menu, meter, nav, output, progress, section, summary,
      time, audio, video {
      margin: 0;
      padding: 0;
      border: 0;
      }
      article, aside, details, figcaption, figure, footer,
      header, hgroup, menu, nav, section {
      display: block;
      }
      html {
      font: 81.25% arial, helvetica, sans-serif;
      background: #fff;
      color: #333;
      line-height: 1;
      direction: ltr;
      }
      a {
      color: #15c;
      text-decoration: none;
      }
      a:active {
      color: #d14836;
      }
    
    ............
    .........
    trimmed
    ...........
    ...........
    
    tc=function(a,b){var c=sc(a),d=sc(b);return new D(c.x-d.x,c.y-d.y)},vc=function(a){var b;if(a.getBoundingClientRect)b=nc(a),b=new D(b.left,b.top);else{b=wb(M(a));var c=pc(a);b=new D(c.x-b.x,c.y-b.y)}if(I&&!K(12)){var d;H?d="-ms-transform":J?d="-webkit-transform":F?d="-o-transform":I&&(d="-moz-transform");var e;d&&(e=X(a,d));e||(e=X(a,"transform"));e?(a=e.match(uc),a=!a?new D(0,0):new D(parseFloat(a[1]),parseFloat(a[2]))):a=new D(0,0);a=new D(b.x+a.x,b.y+a.y)}else a=b;return a},sc=function(a){B(a);
    if(1==a.nodeType)return vc(a);var b="function"==ba(a.c),c=a;a.targetTouches?c=a.targetTouches[0]:b&&a.c().targetTouches&&(c=a.c().targetTouches[0]);return new D(c.clientX,c.clientY)},lc=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a},xc=function(a){if("none"!=X(a,"display"))return wc(a);var b=a.style,c=b.display,d=b.visibility,e=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";a=wc(a);b.display=c;b.position=e;b.visibility=d;return a},wc=function(a){var b=
    a.offsetWidth,c=a.offsetHeight,d=J&&!b&&!c;return(b===m||d)&&a.getBoundingClientRect?(a=nc(a),new E(a.right-a.left,a.bottom-a.top)):new E(b,c)},yc=function(a){var b=pc(a);a=xc(a);return new hc(b.x,b.y,a.width,a.height)},zc=function(a,b){a.style.display=b?"":"none"},qc=function(a){return"rtl"==X(a,"direction")},Ac=function(a,b){if(/^\d+px?$/.test(b))return parseInt(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=
    c;a.runtimeStyle.left=d;return e},Cc=function(a,b){var c=a.currentStyle?a.currentStyle[b]:p;return c?Ac(a,c):0},Dc={thin:2,medium:4,thick:6},Ec=function(a,b){if("none"==(a.currentStyle?a.currentStyle[b+"Style"]:p))return 0;var c=a.currentStyle?a.currentStyle[b+"Width"]:p;return c in Dc?Dc[c]:Ac(a,c)},uc=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;var Fc,Gc=function(a,b){v(b)||(b=[b]);B(0<b.length,"At least one Css3Property should be specified.");var c=Da(b,function(a){if(x(a))return a;za(a,"Expected css3 property to be an object.");var b=a.aa+" "+a.duration+"s "+a.timing+" "+a.$+"s";B(a.aa&&ca(a.duration)&&a.timing&&ca(a.$),"Unexpected css3 property value: %s",b);return b});jc(a,"transition",c.join(","))};var Hc=function(a,b,c){if("function"==ba(a))c&&(a=y(a,c));else if(a&&"function"==typeof a.handleEvent)a=y(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:u.setTimeout(a,b||0)};var Ic=function(a,b,c,d,e){gc.call(this);this.b=a;this.H=b;this.ga=c;this.e=d;this.J=v(e)?e:[e]};A(Ic,gc);
    var Jc=function(a){if(1!=a.c){U(a,"begin");U(a,"play");ka();a.c=1;if(Fc===m)if(H)Fc=K("10.0");else{var b=document.createElement("div"),c=J?"-webkit":I?"-moz":H?"-ms":F?"-o":p;b.innerHTML='<div style="'+(c?c+"-transition:opacity 1s linear;":"")+'transition:opacity 1s linear;">';b=b.firstChild;B(b.nodeType==Node.ELEMENT_NODE);c=b.style[ta("transition")];Fc=""!=("undefined"!==typeof c?c:b.style[kc(b,"transition")]||"")}Fc?(jc(a.b,a.ga),a.l=Hc(a.ha,m,a)):a.d(q)}};
    Ic.prototype.ha=function(){Gc(this.b,this.J);jc(this.b,this.e);this.l=Hc(y(this.d,this,q),1E3*this.H)};var Kc=function(a){1==a.c&&a.d(n)};Ic.prototype.d=function(a){jc(this.b,"transition","");u.clearTimeout(this.l);jc(this.b,this.e);ka();this.c=0;a?U(this,"stop"):U(this,"finish");U(this,"end")};Ic.prototype.h=function(){Kc(this);Ic.p.h.call(this)};var Lc=function(a,b,c,d){return new Ic(a,0.218,{opacity:c},{opacity:d},{aa:"opacity",duration:0.218,timing:b,$:0})};var Mc={ta:n},Nc={ua:n},Oc={la:Mc,ma:{pa:n},na:{pa:n},oa:{va:n},ja:{sa:n},ka:{ra:n},qa:Nc},Y=function(){throw Error("Do not instantiate directly");};Y.prototype.toString=function(){return this.content};var Pc=function(a){if(!da(a))return String(a);if(a instanceof Y){if(a.a===Mc)return ya(a.content);if(a.a===Nc)return a=a.content,sa.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(oa,"&")),-1!=a.indexOf("<")&&(a=a.replace(pa,"<")),-1!=a.indexOf(">")&&(a=a.replace(qa,">")),-1!=a.indexOf('"')&&(a=a.replace(ra,"&quot;"))),a}xa("Soy template output is unsafe for use as HTML: "+a);return"zSoyz"},Qc={};var Rc=function(){};Rc.a=function(){Rc.b||(Rc.b=new Rc)};Rc.a();var Z=function(a){T.call(this);this.c=a||M()};A(Z,T);t=Z.prototype;t.m=q;t.f=p;t.I=p;t.N=p;t.i=function(){return this.f};var Sc=function(a){return a.d||(a.d=new Zb(a))};Z.prototype.R=function(){this.f=this.c.a.createElement("div")};Z.prototype.D=function(){this.m=n;Tc(this,function(a){!a.m&&a.i()&&a.D()})};var Uc=function(a){Tc(a,function(a){a.m&&Uc(a)});a.d&&bc(a.d);a.m=q};
    Z.prototype.h=function(){this.m&&Uc(this);this.d&&(this.d.t(),delete this.d);Tc(this,function(a){a.t()});this.f&&tb(this.f);this.I=this.f=this.N=p;Z.p.h.call(this)};Z.prototype.ba=function(){return this.f};var Tc=function(a,b){a.N&&Ba(a.N,b,m)};var Vc=function(){};Vc.prototype.Y=function(){};var Xc=function(a,b){T.call(this);this.b=new Zb(this);var c=a||p;Wc(this);this.g=c;b&&(this.w=b)};A(Xc,T);t=Xc.prototype;t.g=p;t.k=q;t.O=-1;t.w="toggle_display";t.i=function(){return this.g};var Wc=function(a){if(a.k)throw Error("Can not change this state of the popup while showing.");};Xc.prototype.c=aa;var Yc=function(a,b){a.k&&U(a,{type:"beforehide",target:b})&&(a.b&&bc(a.b),a.k=q,ka(),a.u?(Pb(a.u,"end",ja(a.Z,b),q,a),Jc(a.u)):a.Z(b))};t=Xc.prototype;
    t.Z=function(a){"toggle_display"==this.w?this.ia():"move_offscreen"==this.w&&(this.g.style.top="-10000px");U(this,{type:"hide",target:a})};t.ia=function(){this.g.style.visibility="hidden";zc(this.g,q)};t.V=function(){this.O=ka();U(this,"show")};t.U=function(a){a=a.target;!ub(this.g,a)&&!(150>ka()-this.O)&&Yc(this,a)};t.T=function(a){var b=L(this.g);if(H||F){if(a=b.activeElement,!a||ub(this.g,a)||"BODY"==a.tagName)return}else if(a.target!=b)return;150>ka()-this.O||Yc(this)};
    t.h=function(){Xc.p.h.call(this);this.b.t();Ia(this.v);Ia(this.u);delete this.g;delete this.b};var Zc=function(a,b){this.d=b||m;Xc.call(this,a)};A(Zc,Xc);Zc.prototype.c=function(){if(this.d){var a=!this.k&&"move_offscreen"!=this.w,b=this.i();a&&(b.style.visibility="hidden",zc(b,n));this.d.Y(b,4,this.e);a&&zc(b,q)}};var $c=function(a,b){this.c=a;this.q=!!b;this.d={0:this.c+"-arrowright",1:this.c+"-arrowup",2:this.c+"-arrowdown",3:this.c+"-arrowleft"}};A($c,Vc);t=$c.prototype;t.K=2;t.Q=20;t.L=3;t.M=-5;
    t.Y=function(a,b,c){B(this.e,"Must call setElements first.");b=this.K;2==b&&(b=0);a=this.L;var d=2==this.K?ad(this.L)?this.a.offsetHeight/2:this.a.offsetWidth/2:this.Q;if(this.b){var e=bd(a,b),f,g=this.b,h=xc(g);h=(ad(a)?h.height/2:h.width/2)-d;f=(e&4&&qc(g)?e^2:e)&-5;var k;if(k=rc(g))g=yc(g),g=new V(g.top,g.left+g.width,g.top+g.height,g.left),ad(a)?g.top<k.top&&!(f&1)?h-=k.top-g.top:g.bottom>k.bottom&&f&1&&(h-=g.bottom-k.bottom):g.left<k.left&&!(f&2)?h-=k.left-g.left:g.right>k.right&&f&2&&(h-=g.right-
    k.right);f=h;k=this.b;g=bd(a^3,b);h=this.a;f=ad(a)?new D(this.M,f):new D(f,this.M);B(h);var s,l=h.offsetParent;if(l){var r="HTML"==l.tagName||"BODY"==l.tagName;if(!r||"static"!=X(l,"position"))s=pc(l),r||(r=(r=qc(l))&&I?-l.scrollLeft:r&&(!H||!K("8"))&&"visible"!=X(l,"overflowX")?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft,s=Ja(s,new D(r,l.scrollTop)))}s=s||new D;l=yc(k);if(r=rc(k)){var w=new hc(r.left,r.top,r.right-r.left,r.bottom-r.top),r=Math.max(l.left,w.left),G=Math.min(l.left+l.width,
    w.left+w.width);if(r<=G){var Q=Math.max(l.top,w.top),w=Math.min(l.top+l.height,w.top+w.height);Q<=w&&(l.left=r,l.top=Q,l.width=G-r,l.height=w-Q)}}r=M(k);Q=M(h);if(r.a!=Q.a){var G=r.a.body,Q=Q.a.parentWindow||Q.a.defaultView,w=new D(0,0),ma=L(G)?L(G).parentWindow||L(G).defaultView:window,rb=G;do{var Bc=ma==Q?pc(rb):vc(B(rb));w.x+=Bc.x;w.y+=Bc.y}while(ma&&ma!=Q&&(rb=ma.frameElement)&&(ma=ma.parent));G=Ja(w,pc(G));H&&!vb(r)&&(G=Ja(G,wb(r)));l.left+=G.x;l.top+=G.y}k=(g&4&&qc(k)?g^2:g)&-5;g=new D(k&2?
    l.left+l.width:l.left,k&1?l.top+l.height:l.top);g=Ja(g,s);f&&(g.x+=(k&2?-1:1)*f.x,g.y+=(k&1?-1:1)*f.y);f=g.a();k=(e&4&&qc(h)?e^2:e)&-5;g=xc(h);e=g.a();if(c||0!=k)k&2?f.x-=e.width+(c?c.right:0):c&&(f.x+=c.left),k&1?f.y-=e.height+(c?c.bottom:0):c&&(f.y+=c.top);mc(h,f);if(!(g==e||(!g||!e?0:g.width==e.width&&g.height==e.height)))f=vb(M(L(h))),H&&(!f||!K("8"))?(c=h.style,f?(H?(f=Cc(h,"paddingLeft"),k=Cc(h,"paddingRight"),g=Cc(h,"paddingTop"),s=Cc(h,"paddingBottom"),f=new V(g,k,s,f)):(f=W(h,"paddingLeft"),
    k=W(h,"paddingRight"),g=W(h,"paddingTop"),s=W(h,"paddingBottom"),f=new V(parseFloat(g),parseFloat(k),parseFloat(s),parseFloat(f))),H?(k=Ec(h,"borderLeft"),g=Ec(h,"borderRight"),s=Ec(h,"borderTop"),h=Ec(h,"borderBottom"),h=new V(s,g,h,k)):(k=W(h,"borderLeftWidth"),g=W(h,"borderRightWidth"),s=W(h,"borderTopWidth"),h=W(h,"borderBottomWidth"),h=new V(parseFloat(s),parseFloat(g),parseFloat(h),parseFloat(k))),c.pixelWidth=e.width-h.left-f.left-f.right-h.right,c.pixelHeight=e.height-h.top-f.top-f.bottom-
    h.bottom):(c.pixelWidth=e.width,c.pixelHeight=e.height)):(c=h.style,I?c.MozBoxSizing="border-box":J?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(e.width,0)+"px",c.height=Math.max(e.height,0)+"px");this.q&&(c=parseFloat(this.a.style.left),h=parseFloat(this.a.style.top),B(!isNaN(c)&&!isNaN(h),"Could not parse position."),(!(isFinite(c)&&0==c%1)||!(isFinite(h)&&0==h%1))&&mc(this.a,Math.round(c),Math.round(h)))}cd(this,a,b,d)};
    var cd=function(a,b,c,d){var e=a.e;Ka(a.d,function(a){ob(e,a)},a);mb(e,a.d[b]);e.style.top=e.style.left=e.style.right=e.style.bottom="";a.b?(c=tc(a.b,a.a),d=dd(a.b,b),ad(b)?(a=15>a.a.offsetHeight-15?15:Math.min(Math.max(c.y+d.y,15),a.a.offsetHeight-15),e.style.top=a+"px"):(a=15>a.a.offsetWidth-15?15:Math.min(Math.max(c.x+d.x,15),a.a.offsetWidth-15),e.style.left=a+"px")):e.style[0==c?ad(b)?"top":"left":ad(b)?"bottom":"right"]=d+"px"},bd=function(a,b){switch(a){case 2:return 0==b?1:3;case 1:return 0==
    b?0:2;case 0:return 0==b?6:7;default:return 0==b?4:5}},dd=function(a,b){var c=0,d=0,e=xc(a);switch(b){case 2:c=e.width/2;break;case 1:c=e.width/2;d=e.height;break;case 0:d=e.height/2;break;case 3:c=e.width,d=e.height/2}return new D(c,d)},ad=function(a){return 0==a||3==a};H&&K(8);var ed=function(){Y.call(this)};A(ed,Y);ed.prototype.a=Oc.la;var fd=function(){Y.call(this)};A(fd,Y);fd.prototype.a=Oc.ma;var gd=function(){Y.call(this)};A(gd,Y);gd.prototype.a=Oc.na;var hd=function(){Y.call(this)};A(hd,Y);hd.prototype.a=Oc.oa;var id=function(){Y.call(this)};A(id,Y);id.prototype.a=Oc.ja;var jd=function(){Y.call(this)};A(jd,Y);jd.prototype.a=Oc.ka;var kd=function(a){function b(){}b.prototype=a.prototype;return function(a){var d=new b;d.content=String(a);return d}},ld=kd(ed);kd(fd);
    kd(gd);kd(hd);kd(id);kd(jd);var md=function(a){var b='<div class="jfk-bubble"><div class="jfk-bubble-content-id"></div>';a.ea&&(b+='<div class="jfk-bubble-closebtn-id jfk-bubble-closebtn" aria-label="Close" role=button tabindex=0></div>');return ld(b+'<div class="jfk-bubble-arrow-id jfk-bubble-arrow"><div class="jfk-bubble-arrowimplbefore"></div><div class="jfk-bubble-arrowimplafter"></div></div></div>')};md.a="jfk.templates.bubble.main";var nd=function(a){Z.call(this,a);this.e=new $c("jfk-bubble",n);this.b=new Zc;this.J=[]};A(nd,Z);nd.prototype.l=n;var od=function(a,b){var c=a.ba();b&&c&&(x(b)?c.innerHTML=b:(c.innerHTML="",c.appendChild(b)))};t=nd.prototype;t.ba=function(){return this.f?sb("jfk-bubble-content-id",this.f||this.c.a):p};
    t.R=function(){var a;t:{var b={ea:this.l};a=(this.c||M()).a.createElement("DIV");a.innerHTML=Pc(md(b||Qc));if(1==a.childNodes.length&&(b=a.firstChild,1==b.nodeType)){a=b;break t}}this.f=a;od(this,this.H);zc(this.i(),q);a=this.b;b=this.i();Wc(a);a.g=b;if(!Xa){a=this.b;var b=Lc(this.i(),"ease-out",0,1),c=Lc(this.i(),"ease-in",1,0);a.v=b;a.u=c}mb.apply(p,Fa(this.i(),this.J))};
    t.D=function(){nd.p.D.call(this);S(Sc(this),this.b,["beforeshow","show","beforehide","hide"],this.da);if(this.l){var a=Sc(this),b=this.f?sb("jfk-bubble-closebtn-id",this.f||this.c.a):p,c=ja(this.P,q);dc(b,c,a.b||a,a)}a=this.i();B(a,"getElement() returns null.");b=this.f?sb("jfk-bubble-arrow-id",this.f||this.c.a):p;B(b,"No arrow element is found!");c=this.e;c.a=a;c.e=b;a=this.b;a.d=this.e||m;a.k&&a.c()};
    t.P=function(a){var b=this.b;b.v&&Kc(b.v);b.u&&Kc(b.u);if(a){if(!b.k&&U(b,"beforeshow")){if(!b.g)throw Error("Caller must call setElement before trying to show the popup");b.c();a=L(b.g);S(b.b,a,"mousedown",b.U,n);if(H){var c;try{c=a.activeElement}catch(d){}for(;c&&"IFRAME"==c.nodeName;){try{var e=c.contentDocument||c.contentWindow.document}catch(f){break}a=e;c=a.activeElement}S(b.b,a,"mousedown",b.U,n);S(b.b,a,"deactivate",b.T)}else S(b.b,a,"blur",b.T);"toggle_display"==b.w?(b.g.style.visibility=
    "visible",zc(b.g,n)):"move_offscreen"==b.w&&b.c();b.k=n;b.v?(Pb(b.v,"end",b.V,q,b),Jc(b.v)):b.V()}}else Yc(b)};t.h=function(){this.b.t();delete this.b;nd.p.h.call(this)};t.X=function(){sc(this.i());return q};t.da=function(a){if("show"==a.type||"hide"==a.type){var b=Sc(this),c=this.c,c=H?c.a.parentWindow||c.a.defaultView:c.a;"show"==a.type?S(b,c,"scroll",this.X):ac(b,c,"scroll",this.X)}return U(this,a.type)};var $=function(a){this.a=p;a&&this.q(Da(a,function(a){return[a]}))};z("gaia.Bubble",$);
    $.prototype.d=function(a,b,c,d,e){b||(b="string"==typeof a?a+"-infomessage":a.id+"-infomessage");c||(c=a);a=x(a)?document.getElementById(a):a;b=x(b)?document.getElementById(b):b;c=x(c)?document.getElementById(c):c;a&&(b&&b.innerHTML.replace(/\s+/g,""))&&(b.style.display="none",0==b.getElementsByTagName("a").length?(R(a,"click",y(this.b,this,c,b.innerHTML,d,e)),R(a,"focus",y(this.b,this,c,b.innerHTML,d,e)),R(a,"blur",this.e,q,this)):(R(a,"click",y(this.b,this,c,b.innerHTML,d,e)),R(a,"keyup",y(this.l,
    this,c,b.innerHTML,d,e)),R(a,"focus",y(this.l,this,c,b.innerHTML,d,e))))};$.prototype.init=$.prototype.d;$.prototype.q=function(a){for(var b=0;b<a.length;b++)this.d.apply(this,a[b])};$.prototype.initAll=$.prototype.q;
    $.prototype.b=function(a,b,c,d){this.a&&Ia(this.a);this.c=a;var e=this.a=new nd;e.e.b=a;e.b.k&&e.b.c();a=this.a;B(!a.m,"Must call setShowClosebox() before rendering");a.l=q;a=this.a;B(x(b)||b.nodeType,"Content must be a string or HTML.");a.H=b;od(a,b);b=c!==m?c:3;c=this.a;d=d!==m?d:0==b?0:m;B(!c.m,"Must call setPosition() before rendering");c=c.e;b!=p&&(c.L=b);d!=p&&(c.K=d);ca(m)&&(c.Q=Math.max(m,15));ca(-15)&&(c.M=-15);d=this.a;if(d.m)throw Error("Component already rendered");d.f||d.R();d.c.a.body.appendChild(d.f);
    (!d.I||d.I.m)&&d.D();this.a.P(n)};$.prototype.l=function(a,b,c,d){(!this.a||!this.a.b.k||this.c!=a)&&this.b(a,b,c,d)};$.prototype.e=function(){this.a&&(Ia(this.a),this.a=p)};$.prototype.hideInfoBubble=$.prototype.e;$.prototype.G=function(){if(this.a){var a=this.a;a.b.k&&a.b.c()}};$.prototype.reposition=$.prototype.G;$.prototype.c=p;z("jfk.ArrowAlignment.LEFT_OR_TOP",0);z("jfk.ArrowAlignment.RIGHT_OR_BOTTOM",1);z("jfk.ArrowAlignment.CENTER",2);z("jfk.PopupPosition.RIGHT",3);
    z("jfk.PopupPosition.LEFT",0);z("jfk.PopupPosition.BOTTOM",1);z("jfk.PopupPosition.TOP",2);
    
      var bubbles = new gaia.Bubble();
      bubbles.init('smsauth-persistentcookiebubble-anchor',
                   'smsauth-persistentcookiebubble-content',
                   'smsauth-persistentcookiebubble-anchor',
                   jfk.PopupPosition.BOTTOM,
                   jfk.ArrowAlignment.LEFT_OR_TOP);
    
    </script>
    <script>
    </script>
    </body>
    </html>
    
        [response] => Array
            (
                [code] => 200
                [message] => OK
            )
    
        [cookies] => Array
            (
            )
    
        [filename] =>
    )

    I saw that you wrote you don't have much time now, but if you could please try to see what's the problem, I'm sure not only me, but A LOT of people will be grateful to you!
    There are many people wishing for this plugin to work, so I guess if you ask for donation in order to fix the problem, you would get them!
    I don't mind donating some $ to help you find the time :)
    Looking forward to hear from you!
    p

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic