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
Comment #1
theamoeba commentedOk. 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?
Comment #2
m.lebedev commentedMaybe 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.
Comment #3
theamoeba commentedOk. I will apply the change :). Thanks.
Comment #4
theamoeba commentedFixed in release 7.x-1.1 - https://drupal.org/node/2048303