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

PowerPoint97.php fatal error - getStream(): Argument #1 ($stream) must be of type int, null given #831

Open
xm74 opened this issue Dec 5, 2024 · 0 comments

Comments

@xm74
Copy link

xm74 commented Dec 5, 2024

One more issue found with the MS PowerPoint presentation.
Here is a test file to download and an error dump.

PHP Fatal error:  Uncaught TypeError: PhpOffice\Common\Microsoft\OLERead::getStream(): Argument #1 ($stream) must be of type int, null given, called in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php on line 478 and defined in {hidden}/vendor/phpoffice/common/src/Common/Microsoft/OLERead.php:203
Stack trace:
#0 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(478): PhpOffice\Common\Microsoft\OLERead->getStream()
#1 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(451): PhpOffice\PhpPresentation\Reader\PowerPoint97->loadOLE()
#2 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(439): PhpOffice\PhpPresentation\Reader\PowerPoint97->loadFile()
#3 {hidden}/presidio.php(413): PhpOffice\PhpPresentation\Reader\PowerPoint97->load()
#4 {main}
  thrown in {hidden}/vendor/phpoffice/common/src/Common/Microsoft/OLERead.php on line 203

Fatal error: Uncaught TypeError: PhpOffice\Common\Microsoft\OLERead::getStream(): Argument #1 ($stream) must be of type int, null given, called in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php on line 478 and defined in {hidden}/vendor/phpoffice/common/src/Common/Microsoft/OLERead.php:203
Stack trace:
#0 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(478): PhpOffice\Common\Microsoft\OLERead->getStream()
#1 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(451): PhpOffice\PhpPresentation\Reader\PowerPoint97->loadOLE()
#2 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(439): PhpOffice\PhpPresentation\Reader\PowerPoint97->loadFile()
#3 {hidden}/presidio.php(413): PhpOffice\PhpPresentation\Reader\PowerPoint97->load()
#4 {main}
  thrown in {hidden}/vendor/phpoffice/common/src/Common/Microsoft/OLERead.php on line 203
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant