Glpi: Notice in planning export

Created on 16 Jun 2020  路  5Comments  路  Source: glpi-project/glpi

in debug mode, export planning shows
image

undefine index host in .../inc/planning.class.php at line 966

_Originally posted by @ladenree76000 in https://github.com/glpi-project/glpi/issues/7393#issuecomment-643649074_

RC feedback bug

Most helpful comment

Well, maybe we should add a check on config form submission to prevent this kind of issues.

All 5 comments

Hi @ladenree76000

What is your configured application URL ?
You can see this configurationv value in Setup > General > General setup.

Regards

my configured application URL is http://localhost/glpi95

Hi,

The only explaination I have is that you may have a leading space in your configuration. Can you check ?

$ php -r "var_dump(parse_url('http://localhost/glpi95'));"
array(3) {
  ["scheme"]=>
  string(4) "http"
  ["host"]=>
  string(9) "localhost"
  ["path"]=>
  string(7) "/glpi95"
}
$ php -r "var_dump(parse_url(' http://localhost/glpi95'));"
array(1) {
  ["path"]=>
  string(24) " http://localhost/glpi95"
}

you got it !
I checked twice url and instead of http://localhost/glpi95 i typed http;//localhost/glpi95 (semicolumn)

it's ok now

sorry for wasting your time...

Well, maybe we should add a check on config form submission to prevent this kind of issues.

Was this page helpful?
0 / 5 - 0 ratings