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

Fields 1.21.17 | undefined array key and blank page #894

Closed
2 tasks done
mic6061 opened this issue Jan 8, 2025 · 6 comments
Closed
2 tasks done

Fields 1.21.17 | undefined array key and blank page #894

mic6061 opened this issue Jan 8, 2025 · 6 comments

Comments

@mic6061
Copy link

mic6061 commented Jan 8, 2025

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

GLPI Version

10.0.17

Plugin version

1.21.17

Bug description

Hello,

Since the update we are facing an issue with the creation of ticket and the plugin.

When we validate the creation of a ticket, we have got a blank page with this url https:///front/ticket.form.php

I saw this recent issue fixed in the earlier verison but sadly it remains with the new one.
#765

Could you take a look ?
Regards
Michael

Relevant log output

PHP message: PHP Warning:  Undefined array key "_plugin_fields_data" in /var/www/glpi/marketplace/fields/inc/container.class.php on line 1728;
PHP message: PHP Warning:  Undefined array key "_plugin_fields_data" in /var/www/glpi/marketplace/fields/inc/container.class.php on line 1728;
PHP message: PHP Warning:  Undefined array key "plugin_fields_containers_id" in /var/www/glpi/marketplace/fields/inc/container.class.php on line 1447;
PHP message: PHP Warning:  Undefined array key "plugin_fields_containers_id" in /var/www/glpi/marketplace/fields/inc/container.class.php on line 1451;
PHP message: PHP Warning:  Undefined array key "type" in /var/www/glpi/marketplace/fields/inc/container.class.php on line 1456;
PHP message: PHP Warning:  Undefined array key "plugin_fields_containers_id" in /var/www/glpi/marketplace/fields/inc/container.class.php on line 1212;
PHP message: PHP Warning:  Undefined array key "plugin_fields_containers_id" in /var/www/glpi/marketplace/fields/inc/container.class.php on line 1228;
PHP message: PHP Warning:  Undefined array key "name" in /var/www/glpi/marketplace/fields/inc/container.class.php on line 1231,

Page URL

https:///front/ticket.form.php

Steps To reproduce

When we create a ticket we got a blank page after the validation
With a refresh of the ticket.form.php page the ticket is correctly created and we return into the interface.
We had disable the plugin and we are not facing the issue
We tried also to delete/recreate all the fields sadly with no success.

All fields are Text (single line)

Your GLPI setup information

GLPI 10.0.17 ( => /var/www/glpi)
Installation mode: TARBALL
Current language:en_GB

PHP 8.2.26 fpm-fcgi (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apcu, bz2, calendar, cgi-fcgi, ctype, curl,
date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mcrypt, mysqli,
mysqlnd, openssl, pcre, pdo_mysql, posix, random, readline, session, shmop, sockets, sodium, standard, sysvmsg, sysvsem,
sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
upload_max_filesize="2M" disable_functions=""
Software: Apache/2.4.62 (Debian) (Apache/2.4.62 (Debian) Server
Debian 12

Anything else?

No response

@mic6061 mic6061 changed the title Fields 1.21.17 | undefined array key and blank parge Fields 1.21.17 | undefined array key and blank page Jan 9, 2025
@stonebuzz
Copy link
Contributor

Hi @mic6061

Could you please verify your containers? The plugin is attempting to load a container that does not exist.

Best regards

@CorentinS6
Copy link

Hello,
Same pb here. Containers are well in /var/lib/glpi/_plugins/fieds/inc
I delete and re-generate to check, same result.
I dump $data in inc/container.class.php -> validateValues() :

array(5) { ["plugin_fields_containers_id"]=> int(3) ["status"]=> int(1) ["typedepicedidentitfield"]=> string(3) "688" ["testfindepagefield"]=> string(0) "" ["numrodedossierfield"]=> string(3) "dsq" }
array(2) { [0]=> array(5) { ["plugin_fields_containers_id"]=> string(1) "3" ["status"]=> string(1) "1" ["typedepicedidentitfield"]=> string(3) "688" ["testfindepagefield"]=> string(0) "" ["numrodedossierfield"]=> string(3) "dsq" } ["items_id"]=> int(2501150014) } 

Regards

@stonebuzz
Copy link
Contributor

Can you retry by applying this -> #893

or with the new version (1.21.18)

Best regards

@CorentinS6
Copy link

seem's better 👍

@stonebuzz
Copy link
Contributor

@mic6061

Have you noticed an improvement with the latest version (1.21.18)?

Best regards

@mic6061
Copy link
Author

mic6061 commented Jan 17, 2025

Hi @stonebuzz
Allright with the new one : no more warning in the log and no more blank page after the creation of a ticket
We can close this issue
Thank you for your investigation.
Regards

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

No branches or pull requests

3 participants