Skip to content

An uncaught Exception was encountered #2166

@darshitpwtech

Description

@darshitpwtech

Describe the Bug

below error not a download documents, http works but https does't work anybody can help

Error

An uncaught Exception was encountered
Type: PhpOffice\PhpWord\Exception\CopyFileException

Message: Could not copy 'example.docx' file to 'public_html/tfile/PhpWordw71ExY'.

Filename: /home/demo/public_html/vendor/phpoffice/phpword/src/PhpWord/TemplateProcessor.php

Line Number: 113

Backtrace:

File: /home/demo/public_html/application/controllers/Reports.php
Line: 3018
Function: __construct

File: /home/demo/public_html/index.php
Line: 315
Function: require_once

Steps to Reproduce

<?php
$contentStr = base_url() . "report/docs/example.docx";
$phpword = new \PhpOffice\PhpWord\TemplateProcessor($contentStr);
  • PHP Version : 7.2
  • PHPWord Version : v0.18.*

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions