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

Forms are not displayed correctly v.2.9.0 #1594

Closed
jonaigringo opened this issue Dec 27, 2019 · 10 comments
Closed

Forms are not displayed correctly v.2.9.0 #1594

jonaigringo opened this issue Dec 27, 2019 · 10 comments
Assignees
Labels
Milestone

Comments

@jonaigringo
Copy link

Describe the bug
Forms that require group validation are not displayed correctly. Fields do not carry information

To Reproduce
Steps to reproduce the behavior:

  1. Go to home page
  2. Click on any form
  3. fields do not carry information

Expected behavior
Fields on forms that need validation should load fields correctly

Desktop (please complete the following information):

  • OS: Win 10
  • Browser Chrome and Opera
  • Version 79.0.3945.88 and 65.0.3467.78

Additional context
The problem only happens with formcreator version 2.9.0

btry added a commit to btry/formcreator that referenced this issue Dec 27, 2019
close: pluginsGLPI#1594

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
@btry
Copy link
Collaborator

btry commented Dec 27, 2019

Hi

please test this fix and feedback

@btry btry self-assigned this Dec 27, 2019
@btry btry added this to the 2.9.1 milestone Dec 27, 2019
@jonaigringo
Copy link
Author

jonaigringo commented Jan 3, 2020

Solved! Thanks

However, open forms are not displayed correctly for validation, as printscreen

image

@btry
Copy link
Collaborator

btry commented Jan 3, 2020

Please check the logs of your http server for an error 500 (you might check for its existence in the developper tools of your browser).

Which version of GLPI are you using ?

@btry btry closed this as completed in 39822d0 Jan 6, 2020
@btry btry reopened this Jan 6, 2020
btry added a commit that referenced this issue Jan 7, 2020
close: #1594

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
@jonaigringo
Copy link
Author

v9.4.4

image

@btry
Copy link
Collaborator

btry commented Jan 7, 2020

Hi

Ok, You have a fatal error. Please check the logs of your http server. You should find the a backtrace for this error.

I'm not sure yet, but you may be impacted by a bug in GLPI 9.4.4 in the search engine.

Have a look here : #1575

@jansenarruda
Copy link

jansenarruda commented Jan 9, 2020

Hi
I´m facing same error @jonaigringo facing when viewing form answers. Here my http server log:

2020/01/09 11:34:15 [error] 1845#1845: *304 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to PluginFormcreatorFields::isVisible() must implement interface PluginFormcreatorConditionnableInterface, instance of PluginFormcreatorTextField given, called in /var/www/glpi/plugins/formcreator/inc/formanswer.class.php on line 587 and defined in /var/www/glpi/plugins/formcreator/inc/fields.class.php:113
Stack trace:
#0 /var/www/glpi/plugins/formcreator/inc/formanswer.class.php(587): PluginFormcreatorFields::isVisible(Object(PluginFormcreatorTextField), Array)
#1 /var/www/glpi/inc/commonglpi.class.php(475): PluginFormcreatorFormAnswer->showForm('3', Array)
#2 /var/www/glpi/ajax/common.tabs.php(92): CommonGLPI::displayStandardTab(Object(PluginFormcreatorFormAnswer), 'PluginFormcreat...', '', Array)
#3 {main}
thrown in /var/www/glpi/plugins/formcreator/inc/fields.class.php on line 113" while reading response header from upstream, client: GLPI_CLIENT, server: GLPI_Server, request: "GET /ajax/common.tabs.php?_target=/plugins/formcreator/front/formanswer.form.php&_itemtype=PluginFormcreatorFormAnswer&_glpi_tab=PluginFormcreatorFormAnswer$main&id=3& HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "GLPI_Server", referrer: "http://GLPI_Server/plugins/formcreator/front/formanswer.form.php?id=3"

@btry btry added the bug label Jan 9, 2020
@btry
Copy link
Collaborator

btry commented Jan 9, 2020

Thank you @jansenarruda With this backtrace i could find what happened

Please try this fix 5453a92

@jansenarruda
Copy link

Hi @btry

Works like a charm here!!!!

Thank you!!!!!

Only a detail: In 'Print this form', don´t show the icon ...

image

@btry
Copy link
Collaborator

btry commented Jan 9, 2020

Thanks, the print button should be fixed now:

2d871a3

@btry btry closed this as completed Jan 9, 2020
@jansenarruda
Copy link

@btry working now!!!!

thanks!!!

btry added a commit that referenced this issue Jan 5, 2021
close: #1594

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants