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

Error calling execute function #34

Closed
rmundel opened this issue Apr 14, 2020 · 2 comments
Closed

Error calling execute function #34

rmundel opened this issue Apr 14, 2020 · 2 comments

Comments

@rmundel
Copy link

rmundel commented Apr 14, 2020

I'm getting this when calling for ->execute()

"message": "Trying to access array offset on value of type null",
    "exception": "ErrorException",
    "file": "vendor/wrklst/docxmustache/src/WrkLst/DocxMustache/DocxMustache.php",
    "line": 224,

I'm using laravel 6.x and docxmustache dev-master (the latest release 0.0.33 have lots of messed up paths)

Also would be nice to have the creating taking place at 'temp/' subfolder.
Now, the storagePathPrefix set the pathing for the whole instance.

The project looks promising, great work!

@rmundel
Copy link
Author

rmundel commented Apr 14, 2020

Just found out the problem happens when the function ImageReplacer calls $this->AddContentType('jpeg');

@rmundel rmundel changed the title Error calling execute class Error calling execute function Apr 14, 2020
@tobiasvielmetter
Copy link
Member

Hi @rmundel, not sure what the jpeg conversion has to do with this error. The error you are receiving seems to have something to do with

if ((string) $ct_file->Default[$i]['Extension'] == $imageCt) {
not having the offset that the function is calling for some reason. I wont be able to debug your circumstances, so you'll have to check for yourself what is actually happening in your environment. Feel free to reopen this debugging and error analysis, in case there is an issue with the class and not with your setup. Thanks for participating.

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