Coder Social home page Coder Social logo

Error on Document.xml about docxmustache HOT 5 CLOSED

wrklst avatar wrklst commented on May 19, 2024
Error on Document.xml

from docxmustache.

Comments (5)

tobiasvielmetter avatar tobiasvielmetter commented on May 19, 2024

@aramirez92 this is not a error report. If you whant to report something please do your debugging and explain what the actual issue is.

from docxmustache.

agoalofalife avatar agoalofalife commented on May 19, 2024

@tobiasvielmetter I have same error for Laravel 7.12.0
I a little deep dig in code and saw that
https://github.com/wrklst/docxmustache/blob/master/src/WrkLst/DocxMustache/DocxMustache.php#L196

        $this->word_doc = $this->ReadOpenXmlFile('word/document.xml', 'file');

that error happened when try to find word/document.xml in storage, what it that and for what?
I didn't see in an example
Is error /DocxMustache/example_template.docx5ec7809e01839/word/document.xml

from docxmustache.

tobiasvielmetter avatar tobiasvielmetter commented on May 19, 2024

@agoalofalife Hi there, this opens the main file of the document. According to the standards of a DOCX file the word/document.xml is there. You would have to debug what is actually there. Either the file has not properly unarchived to the new folder '/DocxMustache/example_template.docx5ec7809e01839/' or your DOCX file is broken and has not the proper 'word/document.xml' file. As stated above, if you have this issue, you need to debug it. Meaning you need to see why the error is reported and trace back what is actually there and what not and why there is a File not Found error.
To assure you: I use this class in production and I do not have this issue. It is likely that the issue is with your setup, but if I get some actual information what is going wrong and it poses and issue with the class, I'd be happy to work on the class.
Thank you!

from docxmustache.

agoalofalife avatar agoalofalife commented on May 19, 2024

@tobiasvielmetter in really I haven't that file in storage, maybe it depends on OS. I use MAC OS
Anyway, I didn't look for the cause of the error, I just use another package.

from docxmustache.

tobiasvielmetter avatar tobiasvielmetter commented on May 19, 2024

@agoalofalife ok, good luck

from docxmustache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.