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

Bug with printing purchase orders of sub-entities #386

Closed
IP-V15 opened this issue Jul 31, 2024 · 3 comments
Closed

Bug with printing purchase orders of sub-entities #386

IP-V15 opened this issue Jul 31, 2024 · 3 comments

Comments

@IP-V15
Copy link

IP-V15 commented Jul 31, 2024

Hello
When I want to generate a purchase order in ODT on a sub-entity, I systematically have a crash.
I do not have the problem that the purchase order is assigned to the main entity.
Does anyone have the same problem?

The Error Message:
Deprecated: Return type of Odtphp\Segment::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\Segment.php on line 87

Deprecated: Return type of Odtphp\Segment::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\Segment.php on line 77

Deprecated: Return type of Odtphp\SegmentIterator::hasChildren() should either be compatible with RecursiveIterator::hasChildren(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 31

Deprecated: Return type of Odtphp\SegmentIterator::getChildren() should either be compatible with RecursiveIterator::getChildren(): ?RecursiveIterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 41

Deprecated: Return type of Odtphp\SegmentIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 36

Deprecated: Return type of Odtphp\SegmentIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 61

Deprecated: Return type of Odtphp\SegmentIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 46

Deprecated: Return type of Odtphp\SegmentIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 51

Deprecated: Return type of Odtphp\SegmentIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 56

Deprecated: Creation of dynamic property Odtphp\SegmentIterator::$keys is deprecated in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 28

Deprecated: Creation of dynamic property Odtphp\SegmentIterator::$keys is deprecated in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\SegmentIterator.php on line 28

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\Odf.php on line 377

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\Odf.php on line 377

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\Odf.php on line 377

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in C:\xampp\htdocs\glpi\marketplace\order\vendor\masnathan\odtphp\src\Odf.php on line 377

@trasher
Copy link
Contributor

trasher commented Jul 31, 2024

The ODT lib is not compliant with your PHP version (not specified). This library has not been update from years, it should certainly be considered as dead.
The only workaround would be to downgrade your PHP version, if you really need this feature right now.

I'm not the maintainer of the plugin, I have no idea how/when this will be fixed - and either if it will be.

@IP-V15
Copy link
Author

IP-V15 commented Aug 2, 2024

Ok. Thanks.
There is a another similar issue about this problem with a another "bad" solution :
[https://github.com//issues/385]

@trasher
Copy link
Contributor

trasher commented Aug 5, 2024

OK, so this is a duplicate of #385

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

2 participants