You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project is using CodeIgniter 3 and I tried to load template from docx file placed in assets folder but it gave me an error. I'm sure that the path is correct, because when I tried to directly access the link generated in "Current Behavior" section, I can access the file (downloaded to my browser).
Steps to Reproduce
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor(base_url('assets/templates/template_ba_adjust_absence.docx'));
Describe the Bug
My project is using CodeIgniter 3 and I tried to load template from docx file placed in assets folder but it gave me an error. I'm sure that the path is correct, because when I tried to directly access the link generated in "Current Behavior" section, I can access the file (downloaded to my browser).
Steps to Reproduce
Expected Behavior
Expected to load the docx file from defined path.
Current Behavior
A PHP Error was encountered
Severity: Warning
Message: copy(https://localhost:8080/assets/templates/template_ba_adjust_absence.docx): Failed to open stream: Cannot assign requested address
Filename: PhpWord/TemplateProcessor.php
Line Number: 115
Context
Please fill in your environment information:
The text was updated successfully, but these errors were encountered: