yandod / candycane

a port of Redmine to CakePHP from Ruby on Rails
http://my.candycane.jp
510 stars 127 forks source link

Internal Server Error appears when adding a new ticket #258

Closed DavidLambauer closed 9 years ago

DavidLambauer commented 9 years ago

Hey there, first of all, thanks for this great rebuild of redmine in php!

I just installed it and it works fine for me. But when i add a new ticket, i'll get an internal server error. The debug log is the following:

2015-07-27 23:20:37 Notice: Notice (8): Undefined index: custom_field_values in [/is/htdocs/wp1170705_JOTHUDWOQD/www/redmine/app/Controller/ProjectsController.php, line 372]
Trace:
ProjectsController::edit() - APP/Controller/ProjectsController.php, line 372
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 96

the error log is:

2015-07-27 23:20:41 Warning: Warning (2): Invalid argument supplied for foreach() in [/is/htdocs/wp1170705_JOTHUDWOQD/www/redmine/app/View/Projects/index.ctp, line 34]
Trace:
include - APP/View/Projects/index.ctp, line 34
View::_evaluate() - CORE/Cake/View/View.php, line 947
View::_render() - CORE/Cake/View/View.php, line 909
View::render() - CORE/Cake/View/View.php, line 471
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 194
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 96

Hope you can help me

DavidLambauer commented 9 years ago

I solved it on my own. The Admin E-Mail address was not valid. It would be better to validate the inserted email address to prevent this error