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

Uncaught Exception Error: Call to a member function xpath() on null in /var/www/html/glpi/src/RichText/UserMention.php at line 207 #17731

Closed
2 tasks done
SilvaFernando opened this issue Aug 27, 2024 · 3 comments
Assignees

Comments

@SilvaFernando
Copy link

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.16

Bug description

Hi Team.

I have this error when my mail collector tries to import emails:
Uncaught Exception Error: Call to a member function xpath() on null in /var/www/html/glpi/src/RichText/UserMention.php at line 207

I've checked this issue #16694 and mbstring is right.

Relevant log output

Uncaught Exception Error: Call to a member function xpath() on null in /var/www/html/glpi/src/RichText/UserMention.php at line 207

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

@cconard96
Copy link
Contributor

This should have been fixed in GLPI 10.0.11 by #15962. The fix still seems to be in place in 10.0.16. Although, the line number in your error message doesn't correspond to one that actually calls the xpath function in 10.0.16. Instead it matches the file from version 10.0.10 (and maybe some earlier versions).

@cconard96
Copy link
Contributor

Please verify your GLPI is upgraded properly to 10.0.16 and then test again.

@cconard96 cconard96 self-assigned this Aug 27, 2024
@trasher
Copy link
Contributor

trasher commented Aug 28, 2024

As @cconard96 said, this is exactly the issue that was fixed in #15962, with the exact same line, that is not the one in GLPI 10.0.16. Double check files in your instance.

@trasher trasher closed this as not planned Won't fix, can't repro, duplicate, stale Aug 28, 2024
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

3 participants