Replies: 4   Views: 2483
Docx sign not work
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.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by edol.fuchs  · 17-08-2017 - 17:34

I am using the following code:

require_once 'classes/';

$sign = new SignDocx();

$sign->setPrivateKey('Test.pem', 'mypass');

$sign->setSignatureComments('This document has been signed by me');


I can not sign the docx document. The following message appears:

sort() expects parameter 1 to be array, null given in [.../vendor/phpdocx/phpdocx/Classes/Phpdocx/Sign/ 462]

Does anyone know what this error can be?