Hello.

When I try and log in from the iPhone, I get "Oops - The request did not succeed."

I have 7.x-1.2 version installed.

I have tried the following

  • Given every permission to every user for Drupad in user permission
  • Each of the two ".htaccess" code snippet updates
  • I have tried accessing the site using /?q=drupad/check-config/1.2 (as suggested in another support ticket) and get a login box (a web-based login box - both code snippet 1 and 2 attempts) and then after logging in get an "Access denied" message from Drupal (its a nicely formatted page
  • I ensured the app was killed on the iPhone each time by double-tapping the home button and removing it

I'm running a fresh Drupal 7 install on a fresh CentOS machine.

Can you assist?

Comments

mattieo’s picture

Hello! :-) Anyone there?

jchatard’s picture

Hi mattieo,

Some users have reported the same kind of issue, they tried to uninstall completely the app from their iPhone/iPod. Re-download it (you won't pay again) and everything seemed to work again.

Can you try this?

Thanks,
Jérémy

iNik’s picture

I'm having the same problem. I have uninstalled and reinstalled both drupad module and the iPhone application. I am running v7 on Dreamhost.

jchatard’s picture

Hi iNik,

Did you try code snippets described in the install page?

iNik’s picture

Yes. Both. Cleared caches following each.

The one problem with the snippets is taht under D7, there is no rewrite rule for "...?q=..." as there is in 6, so I just put it at the end if the rewrite rules (just before the ""). Not sure whether there are other snippets for D7.

jchatard’s picture

Title: Oops message » Authentication problem (PHP-FCGI)

Hmm, yeah you're right.

This is extracted from .htaccess of Drupal 7:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]

This forwards clean URLs management to drupal_environment_initialize() in bootstrap.inc, which uses request_path() (also from boostrap.inc).

Can you try code snippet #2 just before this block (I don't have a (F)CGI PHP hosting)?

# -- CODE SNIPPET #2 --
RewriteCond %{HTTP:Authorization}  !^$
RewriteRule ^(.*)$ index.php?q=$1&login=%{HTTP:Authorization} [L,QSA]
# -- CODE SNIPPET #2 --

If this solves the problem with iOS app, can you check this has no incidence on other components of your Drupal instance?

I'm not an export in RewriteRules and CGI stuff, so if any guru could help us. That would be awesome.

Thanks,

iNik’s picture

This did not address it. However, I did move my site to a server that used mod_php, and it worked out of the box. Curious.

jchatard’s picture

@mattieo any news?

lp’s picture

I had login issues as well under PHP 5 FCGI. My shared domain manager control panel says PHP 5.3, php.info says 5.2.17, also w/mod_security.

I was seeing:
"Oops Login failed, please check your login and password."

I was confused by the apparently D6 specific directions in README.txt.
#6 fixed it up for me. I didn't even have to restart the app.
The site seems to be functioning fine elsewhere, unless there's a specific scenario I should be testing.

App looks fantastic, thanks!

simondoyle’s picture

#6 worked fine for me with an FGCI install of Drupal 7.8 on Ubuntu 10.04.

The app looks very useful... Thanks...

jozzhart’s picture

#6 worked fine for me too

jchatard’s picture

Status: Active » Closed (fixed)