Skip to content
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

Adding entity leads to white screen #10572

Closed
2 tasks done
DaviidMM opened this issue Feb 7, 2022 · 10 comments
Closed
2 tasks done

Adding entity leads to white screen #10572

DaviidMM opened this issue Feb 7, 2022 · 10 comments
Assignees

Comments

@DaviidMM
Copy link

DaviidMM commented Feb 7, 2022

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.0-rc1

Bug description

Creating a new entity leads to a white screen where nothing happens.

Relevant log output

[2022-02-07 16:55:56] glpiphplog.CRITICAL:   *** Uncaught Exception TypeError: Argument 1 passed to Entity::handleConfigStrategyFields() must be of the type array, bool given, called in /var/www/glpi/src/Entity.php on line 324 in /var/www/glpi/src/Entity.php at line 360
  Backtrace :
  src/Entity.php:324                                 Entity->handleConfigStrategyFields()
  src/CommonDBTM.php:1507                            Entity->prepareInputForUpdate()
  front/dropdown.common.form.php:134                 CommonDBTM->update()
  front/entity.form.php:50                           include()

Page URL

No response

Steps To reproduce

  1. Go to Administration > Entities
  2. Click + Add button
  3. Enter desired entity name
  4. Click Save button

Your GLPI setup information

  • Ubuntu 20.04 LTS
  • PHP 7.4.3 (all of the modules required and optional are enabled)
  • Apache 2.4.41 (Ubuntu)
  • Node version 10.19.0
  • Browsers tested: Chrome, Firefox and Safari. All of them in their last releases.

Anything else?

No response

@cconard96 cconard96 self-assigned this Feb 7, 2022
@cconard96
Copy link
Contributor

This should be fixed by #10549 (Entity is a dropdown type). Can you confirm these changes fix the issue for you too?

@DaviidMM
Copy link
Author

DaviidMM commented Feb 7, 2022

I can create a new entity now as a child of the Root entity entity.

Now I would like to rename de Root entity to a custom name, but I get the white screen again.

Log output:

[2022-02-07 17:30:10] glpiphplog.CRITICAL:   *** Uncaught Exception TypeError: Argument 1 passed to Entity::handleConfigStrategyFields() must be of the type array, bool given, called in /var/www/glpi/src/Entity.php on line 324 in /var/www/glpi/src/Entity.php at line 360
  Backtrace :
  src/Entity.php:324                                 Entity->handleConfigStrategyFields()
  src/CommonDBTM.php:1507                            Entity->prepareInputForUpdate()
  front/dropdown.common.form.php:134                 CommonDBTM->update()
  front/entity.form.php:50                           include()

@cconard96
Copy link
Contributor

This should also be fixed. #10543

@DaviidMM
Copy link
Author

DaviidMM commented Feb 7, 2022

I made the changes described in that PR but I still get the same white screen and log error

@arthurrschaefer
Copy link

#10549 Worked fine to add new entities.
#10543 seemed not to work properly. I get the same blank screen as @DaviidMM

But just when changing the root entity name

glpiphplog.CRITICAL: *** Uncaught Exception TypeError: Argument 1 passed to Entity::handleConfigStrategyFields() must be of the type array, bool given, called in /var/www/html/glpi10/src/Entity.php on line 324 in /var/www/html/glpicurrent/src/Entity.php at line 360
Backtrace :
src/Entity.php:324 Entity->handleConfigStrategyFields()
src/CommonDBTM.php:1507 Entity->prepareInputForUpdate()
front/dropdown.common.form.php:134 CommonDBTM->update()
front/entity.form.php:50 include()

@cedric-anne
Copy link
Member

I was not able to reproduce this issue on current state of master branch.

#10658 should prevent this kind of errors on edge cases, but it is not related to root entity edition.

@cconard96
Copy link
Contributor

@DaviidMM or @arthurrschaefer can you re-test this on the latest nightly "master" release?
https://nightly.glpi-project.org/glpi/

@cedric-anne
Copy link
Member

I close this issue due to lack of feedback. Feel free to reopen.

@Faizal-Hdn
Copy link

Hello everyone

how to fix blank to add entities??

@DaviidMM
Copy link
Author

@DaviidMM or @arthurrschaefer can you re-test this on the latest nightly "master" release? https://nightly.glpi-project.org/glpi/

Sorry about the lack of feedback. Installing the last update of GLPI solved the problem for me. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants