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

ODPresentation.php fatal error - setSpacingBefore(): Argument #1 ($spacingBefore) must be of type int, float given #830

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

Comments

@xm74
Copy link

xm74 commented Dec 3, 2024

I encountered this issue in testing.
Here is a test file and an error dump.
Credit Card Number.odp

PHP Fatal error:  Uncaught TypeError: PhpOffice\PhpPresentation\Shape\RichText\Paragraph::setSpacingBefore(): Argument #1 ($spacingBefore) must be of type int, float given, called in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php on line 653 and defined in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Shape/RichText/Paragraph.php:356
Stack trace:
#0 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(653): PhpOffice\PhpPresentation\Shape\RichText\Paragraph->setSpacingBefore()
#1 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(627): PhpOffice\PhpPresentation\Reader\ODPresentation->readParagraph()
#2 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(542): PhpOffice\PhpPresentation\Reader\ODPresentation->loadShapeRichText()
#3 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(236): PhpOffice\PhpPresentation\Reader\ODPresentation->loadSlide()
#4 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(153): PhpOffice\PhpPresentation\Reader\ODPresentation->loadSlides()
#5 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(125): PhpOffice\PhpPresentation\Reader\ODPresentation->loadFile()
#6 {hidden}/presidio.php(413): PhpOffice\PhpPresentation\Reader\ODPresentation->load()
#7 {main}
  thrown in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Shape/RichText/Paragraph.php on line 356

Fatal error: Uncaught TypeError: PhpOffice\PhpPresentation\Shape\RichText\Paragraph::setSpacingBefore(): Argument #1 ($spacingBefore) must be of type int, float given, called in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php on line 653 and defined in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Shape/RichText/Paragraph.php:356
Stack trace:
#0 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(653): PhpOffice\PhpPresentation\Shape\RichText\Paragraph->setSpacingBefore()
#1 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(627): PhpOffice\PhpPresentation\Reader\ODPresentation->readParagraph()
#2 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(542): PhpOffice\PhpPresentation\Reader\ODPresentation->loadShapeRichText()
#3 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(236): PhpOffice\PhpPresentation\Reader\ODPresentation->loadSlide()
#4 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(153): PhpOffice\PhpPresentation\Reader\ODPresentation->loadSlides()
#5 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/ODPresentation.php(125): PhpOffice\PhpPresentation\Reader\ODPresentation->loadFile()
#6 {hidden}/presidio.php(413): PhpOffice\PhpPresentation\Reader\ODPresentation->load()
#7 {main}
  thrown in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Shape/RichText/Paragraph.php on line 356
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