When I put in my site's address into the drupal garden's app, "Please wait" shows up and then disappears, but that's it. If I put in another site where I haven't installed the module, then it says, "There was an error connecting. The URL entered does not appear to be a Drupal site configured to support this application." So, my setup has made it past some sort of test, but I don't get any feedback about what is failing. I also don't have the foggiest clue how to get more information about what's going wrong.

Any suggestions?

Thanks,
-Joseph

Comments

DamienMcKenna’s picture

Version: 7.x-1.0-beta1 » 7.x-1.0-rc1

Running into the same problem with my site hosted at site5 using rc1 and the latest versions of all dependencies.

jtbayly’s picture

Component: Miscellaneous » Code
Category: support » bug

Ok, I'm going to switch this to a bug report since I'm not the only one seeing it.

Just out of curiosity does this app try to communicate with the site via anything other than port 80? If so, I could see that causing an issue like this.

My site is hosted on omega8.cc.

-Joseph

DamienMcKenna’s picture

FYI dblog records the following error:

Notice: Undefined index: Auth in OAuthUtil::get_headers() (line 843 of oauth/lib/OAuth.php).

DamienMcKenna’s picture

The error is occurring in this part of the Oauth library:

      // The "Authorization" header may get turned into "Auth".
      if ($out['Auth']) {
        $out['Authorization'] = $out['Auth'];
      }

It should be doing an isset($out['Auth']), but that's a symptom and not the core problem.

jprstoney’s picture

Getting the same issue. Any further thoughts?

jtbayly’s picture

Unfortunately, I just gave up.
-Joseph

jbrauer’s picture

I had exactly the same symptoms, still do actually.

Every so often I try (say a few hours since the last attempt and I get "oauth/request_token" with a access denied error. It seems as though something in the Drupal Gardens app is caching this as it only shows up on my site once in a long while. On a whim the last time I tried a different name for the same server .net instead of .com and it worked.

Then I looked at cache_page and noticed these cache keys

http://www.example.net/mast/login?destination=/oauth/authorize[...]
http://www.example.net/oauth/request_token
http://www.example.com/oauth/request_token

Now a telling part of tis is that the site is set to only use example.me and example.com and .htaccess redirects to these. I never put a www in the Drupal Gardens app but somewhere along the line it was added before the page cache.

When I went back to the .com site same thing .. app flashes please wait and nothing. But the .net address worked fine.

jbrauer’s picture

It would appear that at least part of the challenge is for sites that are domainame.tld ... at least in Drupal Create (code) there is a function which appears to try to always add www if there is only one '.' in the site url.

- (NSString*) getURL {
  NSString *url = [siteUrl text];
  NSArray *periods = [url componentsSeparatedByString:@"."];
  NSUInteger periodCount = [periods count] - 1;
  NSRange rangeOfURL = [url rangeOfString:@"http://"];
  if (rangeOfURL.location == NSNotFound) {
    if (periodCount == 1) {
      url = [NSString stringWithFormat:@"%@%@", @"http://www.", url];
    } else {
      url = [NSString stringWithFormat:@"%@%@", @"http://", url];
    }
  } else {
    if (periodCount == 1) {
      url = [url stringByReplacingOccurrencesOfString:@"http://" withString:@""];
      url = [NSString stringWithFormat:@"%@%@", @"http://www.", url];
    }
  }
  return url;
jbrauer’s picture

Status: Active » Needs review

I confirmed that fixing the handling in the Drupal Create app allows it to work with urls that don't have three parts and ssl instead of requiring http connections.

https://github.com/acquia/drupal-create/pull/4

Marking this as needs review because I think the MASt module is fine here and that it's a problem on the Application side.

kylebrowning’s picture

Status: Needs review » Closed (fixed)

This was merged on the Drupal Create project, not sure what you want to do with this ticket, but nothing more needs to be done AFAIK.