dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 441 forks source link

Undefined index: user #1308

Open frimdo opened 7 years ago

frimdo commented 7 years ago

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

Brief issue explanation

When trying to edit project, I get error message. This happens only when in Where is your project hosted? is Gitlab and Repository Name / URL (Remote) or Path (Local) is https://gitlab.com/...

Expected behaviour

After clicking on Edit project button, I expect some form where I could edit the project.

Actual behaviour

After clicking on Edit project button, I get page with thiss error message

Sorry, there was a problem
Notice: Undefined index: user in /var/www/html/PHPCI/Controller/ProjectController.php line 261

Steps to reproduce

  1. Add a new project
  2. Try to edit it

Environment info

Operating System:

Debian GNU/Linux 8 

PHP Version:

PHP 7.1.2 (cli) (built: Feb 28 2017 17:47:07) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

MySQL Version:

mysql  Ver 14.14 Distrib 5.7.17, for Linux (x86_64) using  EditLine wrapper
frimdo commented 7 years ago

Update: This issue happends when the project is misconfigured. The biggest problem is, that the project is undeletable. Delete button sends me to URL javascript:confirmDelete('http://89.36.221.90/project/delete/1', 'Project', true) which looks something like this:

[object Object]
wired00 commented 5 years ago

@frimdo I know very old post, but i don't suppose you can remember what you meant by "project is misconfigured"? I'm experiencing this issue trying to get PHPCI going. I think i should abandon it, but i'm stubborn! We need to install a CI pipeline on prem. gocd/jenkins don't cut it

ptejada commented 5 years ago

@wired00 If you must use this. Try PHP Censor, a fork of this project.

frimdo commented 5 years ago

Hi, I am sorry, but I have no idea. I left this project years ago :/