New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined Offset php error in LoginController on login failure #25714

Closed
kontaxis opened this Issue Aug 6, 2016 · 1 comment

Comments

Projects
None yet
3 participants
@kontaxis

kontaxis commented Aug 6, 2016

Steps to reproduce

  1. Try to log in with an invalid password.
  2. Check owncloud.log

Expected behaviour

There should be no php errors in owncloud.log

Actual behaviour

Owncloud.log contains the following errors:
Error PHP Invalid argument supplied for foreach() at /var/www/owncloud/core/templates/login.php#23
Error PHP Undefined offset: 1 at /var/www/owncloud/core/Controller/LoginController.php#117
Warning core Login failed: 'someuser' (Remote IP: 'x.y.z.w')

Server configuration

Operating system:

Web server:

Database:

PHP version:

ownCloud version: 9.1.0

Updated from an older ownCloud or fresh install: Upgraded from 9.0.4

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

or 

Insert your config.php content here
(Without the database password, passwordsalt and secret)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
@scottysmart

This comment has been minimized.

Show comment
Hide comment
@scottysmart

scottysmart Aug 8, 2016

I'm also experiencing this issue from a clean deployment.

Version 9.1.0 of ownCloud. Exactly the same errors in the log file as mentioned in this article (in the Actual Behaviour section). Deployed either manually or via Softaculous with our web host. This only seems to have been an issue with ownCloud 9.1.0 in my experience with this so far.

The only difference is, after the initial setup, I cannot log in at all. I know I have the correct username and password for admin though am receiving the "Wrong Password" message when trying to sign in. This is what prompted me to look at the logs.

As I cannot log in, cannot provide signing status info. As is a new deployment, have not yet added any additional apps. Also, not using LDAP.

Hopefully this information helps in some way?

EDIT: Just got the login process working by removing config.php then reconfiguring. Seems it may have been a problem in the config file. Additionally, I have not seen the errors mentioned in the article reappear since in owncloud.log (I have tested even with invalid password).

scottysmart commented Aug 8, 2016

I'm also experiencing this issue from a clean deployment.

Version 9.1.0 of ownCloud. Exactly the same errors in the log file as mentioned in this article (in the Actual Behaviour section). Deployed either manually or via Softaculous with our web host. This only seems to have been an issue with ownCloud 9.1.0 in my experience with this so far.

The only difference is, after the initial setup, I cannot log in at all. I know I have the correct username and password for admin though am receiving the "Wrong Password" message when trying to sign in. This is what prompted me to look at the logs.

As I cannot log in, cannot provide signing status info. As is a new deployment, have not yet added any additional apps. Also, not using LDAP.

Hopefully this information helps in some way?

EDIT: Just got the login process working by removing config.php then reconfiguring. Seems it may have been a problem in the config file. Additionally, I have not seen the errors mentioned in the article reappear since in owncloud.log (I have tested even with invalid password).

@DeepDiver1975 DeepDiver1975 added this to the 9.1.1 milestone Aug 8, 2016

@DeepDiver1975 DeepDiver1975 added the bug label Aug 8, 2016

@DeepDiver1975 DeepDiver1975 self-assigned this Aug 8, 2016

DeepDiver1975 added a commit that referenced this issue Aug 8, 2016

@PVince81 PVince81 closed this in #25717 Aug 8, 2016

DeepDiver1975 added a commit that referenced this issue Aug 9, 2016

uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Sep 12, 2016

kevlo
Fix This issue that prevents most users from using Owncloud on a new …
…install.

Upstream bugreport for reference: owncloud/core#25714

Submitted by:	Kyle Kneisl <kylekneisl@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@421908 35697150-7ecd-e111-bb59-0022644237b5

uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Sep 12, 2016

kevlo kevlo
Fix This issue that prevents most users from using Owncloud on a new …
…install.

Upstream bugreport for reference: owncloud/core#25714

Submitted by:	Kyle Kneisl <kylekneisl@gmail.com>

mat813 pushed a commit to mat813/freebsd-ports that referenced this issue Sep 28, 2016

kevlo
Fix This issue that prevents most users from using Owncloud on a new …
…install.

Upstream bugreport for reference: owncloud/core#25714

Submitted by:	Kyle Kneisl <kylekneisl@gmail.com>


git-svn-id: svn+ssh://repo.freebsd.org/ports/head@421908 35697150-7ecd-e111-bb59-0022644237b5

mat813 pushed a commit to mat813/freebsd-ports that referenced this issue Oct 10, 2016

kevlo
Fix This issue that prevents most users from using Owncloud on a new …
…install.

Upstream bugreport for reference: owncloud/core#25714

Submitted by:	Kyle Kneisl <kylekneisl@gmail.com>


git-svn-id: https://svn.freebsd.org/ports/head@421908 35697150-7ecd-e111-bb59-0022644237b5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment