Forum


Replies: 3   Views: 5986
Just throwing errors, even just using example code provided.
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 primux  · 12-03-2013 - 21:31

Hello everyone,

First time poster here, so please excuse me if I ask stupid questions, still getting to know the software.

I'm doing the PHP code for a startup company that's developing software for non-profit therapist organizations. We need PHPDOCX so that therapists can enter their therapy session information into an HTML form which will submit to a PHP page, then generate a .doc or .pdf form that they can submit to medicaid and various other government organizations that require that format.

We will be using the PRO+ version, but for right now, until we buy it, I'm trying to familiarize myself with the software using the Free/Basic version.

I'm currently using a wAMP server on Windows 7. I unzipped the file into the root directory on the server, and tried to run the first tutorial, but got errors on the page. I decided to try to just test one of the example pages, to verify those worked, but I'm still getting errors from that.
[code]
Strict standards: Declaration of CreateGraphic::generateLN() should be compatible with CreateElement::generateLN($w = '12700') in C:\wamp\www\phpdocx_free\classes\CreateGraphic.inc on line 30

Strict standards: Declaration of CreateStyle::generateB() should be compatible with CreateElement::generateB($strVal = 'single') in C:\wamp\www\phpdocx_free\classes\CreateStyle.inc on line 2643

Strict standards: Declaration of CreateStyle::generateRFONTS() should be compatible with CreateElement::generateRFONTS($font) in C:\wamp\www\phpdocx_free\classes\CreateStyle.inc on line 2643
[/code]

There are about 8 more errors similar to these. I've just posted the heading of the error, let me know if you guys need more information on the errors. One of the errors is that the folder is read only, which I'm fixing, but the rest of the errors are coming directly from the example code and shouldn't be affected by the folder being read only.

Thanks everyone,
-Primux

Posted by admin  · 11-04-2013 - 12:13

Hello,

Strict standards are not errors but notices/warnings that depends on your version of PHP. They are hidden in pro, pro+ and corporate versions of PHPDocX but when you fix write access the document must be generated fine.

Regards.

Posted by primux  · 11-04-2013 - 12:13

Sort of realized this myself, thank you though. Was able to suppress errors by adding [code]ini_set('display_errors', '0'); [/code]