Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
Is there a problem if the first and final document for the function mergeDocx are the same file? Because in a local machine (slowly) multiple execution of merge run perfectly.
Instead the same code in production server (fast) give a error at the second execution of consecutive merge.
foreach ($this->lavdoc as $filename) {
$newDocx->mergeDocx($firstfile, $filename, $firstfile, $options);
}