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

PHP 7.4 excel with macrosTrying to access array offset on value of type bool #1685

Closed
ribehbl opened this issue Oct 20, 2020 · 2 comments
Closed

Comments

@ribehbl
Copy link

ribehbl commented Oct 20, 2020

hello,

In a symfony4 project, I generate an excel file with macros with spreadsheet.
with php7.2 it 's work fine. but when I try with a 7.4 php version I get this:
Notice: Trying to access array offset on value of type bool

my pfile is : "zip:///home/..../test.xlsm#xl/media/image62.wmf" & xl/media/image62.wmf is added automatically
getimagesize($pfile); ==> return false so return image_type_to_mime_type($image[2]); return this Notice
any help plz?

@nbulinski
Copy link

I'm having a similar issue. No macros but if there is an image in the spreadsheet it will throw this error. I have no idea what is wrong or how to fix it, please help.

hirossyi73 pushed a commit to kajitori-git/PhpSpreadsheet that referenced this issue Feb 12, 2021
@aoga88
Copy link

aoga88 commented Oct 7, 2021

I tried this fix with php 7.4 and it works fine

oleibman added a commit to oleibman/PhpSpreadsheet that referenced this issue Oct 16, 2021
See issue PHPOffice#1685. PR PHPOffice#1844 fixes it, but changes were requested. It has been almost 3 months and those changes have not been made. This PR replaces that one; it should be suitable for all supported releases of PHP through 8.1, and includes a formal unit test.
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

3 participants