Did you try to enable the log - tool for phpdocx?
Navigate to the phpdocx folder, open "classes/conf" and edit the file "log4php.properties". You can there insert following code:
[code]
#log4php.rootLogger = WARN, phpdocx_error
#log4php.appender.phpdocx_error = LoggerAppenderConsole
#log4php.appender.phpdocx_error.layout = LoggerLayoutPattern
#log4php.appender.phpdocx_error.layout.ConversionPattern = %d %p - %m%n
log4php.rootLogger = DEBUG, phpdocx_error
log4php.appender.phpdocx_error = LoggerAppenderRollingFile
log4php.appender.phpdocx_error.file = /tmp/phpdocx.log
log4php.appender.phpdocx_error.layout = LoggerLayoutTTCC
log4php.appender.phpdocx_error.MaxFileSize = 2MB
log4php.appender.phpdocx_error.MaxBackupIndex = 3
[/code]
After you call your script, it should write stuff in the logfile "/tmp/phpdocx.log". Perhaps there you find more information about the problem.
Greetings