-
Notifications
You must be signed in to change notification settings - Fork 127
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
[ GLPI 10 rc2 ] [Formcreator 2.13.0-alpha.4] - "Properties" load indefinitely #2682
Comments
Hi Open the browser developer tools, then refresh the page. Open the *targets tab and check in the networking tab of the dev tools if you have HTTP response codes >= 300 |
Hi There is a HTTP 500 response code when calling targetticket.form.php. You should find an error message and its backtrace in the HTTP server's log (by default /var/log/apache2/errors.log for Apache) |
Hello In fact I have one log in the SQL errors.logs
|
It is possible that this error leads to an PHP error some lines later in the code. IS there really nothing in the HTTP server logs ? |
I have something ! :) [2022-04-06 16:47:31] glpiphplog.NOTICE: *** PHP Deprecated function (8192): json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in C:\inetpub\wwwroot\glpi\plugins\formcreator\inc\abstractitiltarget.class.php at line 1307 [2022-04-06 16:48:01] glpiphplog.NOTICE: *** PHP Deprecated function (8192): json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in C:\inetpub\wwwroot\glpi\plugins\formcreator\inc\abstractitiltarget.class.php at line 1307 |
This is a deprecation warning. I think it is not related to your problem, but I'll search a solution for it. I need to find a way to reproduce without much clues. Stay tuned |
Thx I try to found something tommorow morning |
Hi Please check the table glpi_plugin_formcreator_targettickets. Do you have a column named commonitil_validation_question ? |
You show the wrong table: this is glpi_plugin_formcreator_targets_actors SHOW CREATE TABLE `glpi_plugin_formcreator_targettickets` |
@btry hello sorry, I have only two lines on this table |
Hi The fix above should solve the SQL query error with bad column display |
Please execute the following query in mysql, and show the result You show the wrong table: this is glpi_plugin_formcreator_targets_actors SHOW CREATE TABLE `glpi_plugin_formcreator_targettickets` |
Well, the output contains several lines. I don't see the the information I need. Let's do an other way. Browse in phpmyadmin to show the structure of the table. I want to see all columns and their type to check if the table has the expected columns. |
Is the SQL error solved with the fix ? |
Can you check my PDF here ? https://we.tl/t-bNhNi1sSn0 For the SQL let me 1 hour I test to navigate on GLPI and check the logs again. |
The column is here. For the SQL query bug, you just need to edit a target ticket having some composition with other tickets. |
@btry seems to be fixed with the SQL query ! I tried to check forms from a basic user (simplified interface) if I click on a form I have this error :
|
Thank you, the fix has been merged. Now try #2696 and feedback. Itr should solve this problem as well |
problem with users fixed with this fix thx |
Hi I think we can close this issue now. Thank you for your feedbacks ! |
@btry sorry for the missunderstanding the problem with the SQL errors is fixed. But, the menu properties is always "loading" see here for example. thx |
I have this in the php logs
|
Hi Open again the developer tools of the browser, reproduce the problem, then show the content of the console tab. Do you have JS errors ? |
Hi We are back (or we are still) facing a fatal error. If your HTTP server is Apache, you have probably a backtrace in /var/log/apache2/errors.log. If your HTTP server is nginx you have probably a backtrace in /var/log/nginx/errors.log. With more specific configurations of those HTTP servers the logs may be actually elsewhere. Check your config if needed. |
The above fix should solve the deprecation notice related to json_decode (#2682 (comment)) I don't expect it will solve the HTTP 500. I need the backtrace to have more clues. |
@btry good news ! problem solved :) i'm able to access to properties now. |
The fix #2699 solved the problem ? |
Yes just after apply this fix I tried to go to "target then "properties" and now it's functional. I had nothing in the PHP errors, just the "Json_decode" error in php_errors in GLPI folders.
|
I think that your log entry comes from glpi/files/_log/php-errors.log, am I right ? |
yes Nothing on log about Php manager |
OK, then we can close. Thank you for your feedback. |
Hello @btry
I'm dealing with this bug
After creating one form
Going to the paramater "Targets" for a exemple : form to a ticket
if I click on properties it loads indefinitely (seems to have no logs)
The text was updated successfully, but these errors were encountered: