This problem:
SAFE MODE Restriction in effect. The script whose uid is 512 is not allowed to access app/temp owned by uid 99 in app/phpdocx/classes/CreateDocx.inc on line 1091
is related to safe mode option that you have in your PHP config. It's a deprecated feature that will be remove in future versions of PHP. As you can see the user uid 512 is not allowed to access temp file due to safe mode owne by user uid 99.
To solve it just desactivate safe mode in your server config and restart it or change user owner to uid 99 for all files of phpdocx.
Regards.