Drush not working.
With the help of debugging found a mistake. String - № 33.
if (arg (0) == 'user' &&! arg (1)) {
missing checks - (php_sapi_name ()! == 'cli')

- if (arg (0) == 'user' &&! arg (1)) {
+ if (arg (0) == 'user' &&! arg (1) && php_sapi_name ()! == 'cli') {

Comments

theamoeba’s picture

Ok. Thanks. Though is that really an issue? On line 27 I do that, but only because when the variable betterlogin_private is set every page a non logged in user lands on redirects to the login form (this feature is not completely implemented yet).

On line 33, though, the module is only redirecting if the user is not logged in and goes to /user instead of /user/login. I have not had any problems with Drush.

I am happy to apply your change but I am not sure if it is strictly necessary?

m.lebedev’s picture

Maybe my version of the patch is not true, but on my new site an error occurs in this line. Error does not occur at a different site. I think you know better how is best fix.

theamoeba’s picture

Ok. I will apply the change :). Thanks.

theamoeba’s picture

Status: Needs work » Closed (fixed)

Fixed in release 7.x-1.1 - https://drupal.org/node/2048303