pluginsGLPI / formcreator

GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
http://www.teclib-edition.com
GNU General Public License v3.0
174 stars 125 forks source link

Problem loading calls #3361

Open Cainho opened 1 year ago

Cainho commented 1 year ago

Describe the bug After the last plugin update, I started having problems loading user tickets. It only takes one screen loading and never completes, as shown in the image below. image

GLPI / Plugins (please complete the following information):

Desktop (please complete the following information):

btry commented 1 year ago

Hi

Open browser's developer tools, reproduce then inspect JS console and http requests.

Check also glpi's pho-errors.log and sql-errors.log.

Report here what you found, and only what is relevant to the issue.

Cainho commented 1 year ago

Upon inspection I found the following errors displayed: `Uncaught ReferenceError: GLPIDashboard is not defined

https://mysite.com.br/marketplace/formcreator/front/issue.php:1309 u https://mysite.com.br/public/lib/base.min.js?v=da99328487098c37675464865a7f65db468a5726:25 c https://mysite.com.br/public/lib/base.min.js?v=da99328487098c37675464865a7f65db468a5726:25 setTimeout handler*e https://mysite.com.br/public/lib/base.min.js?v=da99328487098c37675464865a7f65db468a5726:257 https://mysite.com.br/public/lib/base.min.js?v=da99328487098c37675464865a7f65db468a5726:257 https://mysite.com.br/public/lib/base.min.js?v=da99328487098c37675464865a7f65db468a5726:257` error.log: `[Wed Aug 30 06:50:02.600093 2023] [php7:notice] [pid 223057] [client 10.0.0.254:20174] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://mysite.com.br/marketplace/formcreator/front/formdisplay.php?id=3 [Wed Aug 30 06:50:02.715284 2023] [php7:notice] [pid 223057] [client 10.0.0.254:20174] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://mysite.com.br/marketplace/formcreator/front/formdisplay.php?id=3 [Wed Aug 30 06:50:02.786348 2023] [php7:notice] [pid 218311] [client 10.0.0.254:20183] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://mysite.com.br/marketplace/formcreator/front/formdisplay.php?id=3 [Wed Aug 30 06:50:02.889898 2023] [php7:notice] [pid 215778] [client 10.0.0.254:47300] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://mysite.com.br/marketplace/formcreator/front/formdisplay.php?id=3 [Wed Aug 30 06:50:02.974559 2023] [php7:notice] [pid 223057] [client 10.0.0.254:20174] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://mysite.com.br/marketplace/formcreator/front/formdisplay.php?id=3 [Wed Aug 30 06:50:03.782623 2023] [php7:notice] [pid 223057] [client 10.0.0.254:20174] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://mysite.com.br/marketplace/formcreator/front/formdisplay.php?id=3 [Wed Aug 30 06:50:03.907318 2023] [php7:notice] [pid 215778] [client 10.0.0.254:47300] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://mysite.com.br/marketplace/formcreator/front/formdisplay.php?id=3 [Wed Aug 30 06:50:06.782939 2023] [php7:notice] [pid 215778] [client 10.0.0.254:47300] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://mysite.com.br/marketplace/formcreator/front/formdisplay.php?id=3` I didn't find any more logs.
btry commented 1 year ago

The log is spammed by a small problem in escalade plugin. You should report it.

Try to disable all plugins, except Formcreator and see if the problem persists, then check if php-errors.log and sql-errors.log contain something useful.

stonebuzz commented 1 year ago

GLPI version: 10.0.6

You need to update your GLPI to the latest version of GLPI (10.0.9)

Cainho commented 1 year ago

Debug only with active formcreator: <anonymous> https://suporte.grupomaricondi.com.br/marketplace/formcreator/front/issue.php:1201 u https://suporte.grupomaricondi.com.br/public/lib/base.min.js?v=da99328487098c37675464865a7f65db468a5726:25 c https://suporte.grupomaricondi.com.br/public/lib/base.min.js?v=da99328487098c37675464865a7f65db468a5726:25

Error.log still shows the error actually on escalade even inactive. [Wed Aug 30 13:07:56.525587 2023] [php7:notice] [pid 231981] [client 10.0.0.254:52337] PHP Notice: Undefined index: use_filter_assign_group in /var/www/html/glpi/marketplace/escalade/setup.php on line 142, referer: https://suporte.grupomaricondi.com.br/front/marketplace.php

I will test to update the GLPI version.

ju-derijke commented 1 year ago

Hi !

do you have find solution for this problem ?

btry commented 1 year ago

Hi

Not yet.

Is it possible to completely remove the escalade plugin from marketplace or plugins folder to see if it's php warning is the cause of the bug ?

ju-derijke commented 1 year ago

i have a similary problem and i have disable the escalade plugin but doesnt work. if i disable the formcreator plugin i do not have the issu

ju-derijke commented 1 year ago

@Cainho do you have find solution ?

ju-derijke commented 1 year ago

in debug mode i have this msg

image

btry commented 1 year ago

Hi

in debug mode i have this msg

Upgrade GLPI to the latest stable version. The red message should disappear. Next, tell if the initial problem persists.