Forum


Replies: 3   Views: 1061
Basic example, getting error 500
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 lucaloda  · 09-06-2018 - 14:52

hello,

if i try the basic docx example

 

$docx = new CreateDocx();
$text = 'Phpdocx. Easily create Word and PDF documents online';

$docx->addText($text);

$docx->createDocx('tutorial_2');

 

i get error 500, with no message. if i use instead $docx->embedHTML()

everything goes fine. any hint? i have the basic version of phpdocx

 

Posted by admin  · 09-06-2018 - 15:17

Hello,

An error 500 is a generic error, maybe the target folder doesn't have write access or some PHP extension is missing.

Please check your server log to find the source of the problem.

Regards.

Posted by lucaloda  · 09-06-2018 - 17:18

i''ll check the log but the error occurs when i call the method addText(),

even if i don't create the file in the end with createDocx()

Posted by lucaloda  · 11-06-2018 - 14:46

ok, fixed. it was a problem related with the autoloader