Strict standard error

In PDFNewspaper script, v 2.4, give error: Strict Standards: Declaration of NewspaperPDF::Write() should be compatible with TCPDF::Write

Please, what can be done to avoid this error?

Hi Zeljiko, sorry for the late reply. Can you tell me which version of PHP you’re using? If you’re not sure, you can use our compatibility test file found here: http://fivefilters.org/pdf-newspaper/pdf_compatibility_test.zip - you will have to extract the zip, upload the PHP file to your server and access the file via your browser to see the information.

Just an update on this, please try making the following change to makepdf.php:

Replacing the following line (should appear near the top of the file - after the comments):

error_reporting(E_ALL ^ E_NOTICE);

with:

error_reporting(E_ALL ^ (E_NOTICE | E_STRICT));

Let me know if you still have trouble. It appears error reporting defaults have changed in newer version of PHP. We’ll try to address this in the next version.

Thank you for answer Keyvan. It’s PHP Version 5.4.19, but your suggestion solve problem.

Zeljko

Thanks for the update. Glad the solution worked. This should be fixed in the next version.