phpBMS

Ticket #393 (closed defect: fixed)

Opened 2 years ago

Last modified 21 months ago

PDF report does not print

Reported by: a.tangemann@… Owned by: brieb
Priority: critical Milestone: 0.98
Component: phpbms Version: trunk
Keywords: Cc:

Description

Hello,

all PDF reports do not print. Error message: Deprecated: Assigning the return value of new by reference is deprecated in D:\install\htdocs\www\trunk\phpbms\fpdf\fpdi.php on line 85

Deprecated: Assigning the return value of new by reference is deprecated in D:\install\htdocs\www\trunk\phpbms\fpdf\fpdi_pdf_parser.php on line 239

Deprecated: Assigning the return value of new by reference is deprecated in D:\install\htdocs\www\trunk\phpbms\fpdf\fpdi_pdf_parser.php on line 244

Deprecated: Assigning the return value of new by reference is deprecated in D:\install\htdocs\www\trunk\phpbms\fpdf\pdf_parser.php on line 106

Deprecated: Assigning the return value of new by reference is deprecated in D:\install\htdocs\www\trunk\phpbms\fpdf\pdf_parser.php on line 221

Deprecated: Assigning the return value of new by reference is deprecated in D:\install\htdocs\www\trunk\phpbms\fpdf\pdf_parser.php on line 301

Deprecated: Assigning the return value of new by reference is deprecated in D:\install\htdocs\www\trunk\phpbms\fpdf\pdf_parser.php on line 452

Change History

Changed 2 years ago by brieb

  • status changed from new to assigned

Looks like there is a problem with FPDI and PHP 5.3 If this were my code, I would make sure it's was fully compatible with php5.3 alas it is FPDI, and it's accomplice pdf_parser.

Try adding this line:

ini_set("display_errors","1");

to the top of the fpdf/fpdi.php file. If it doesn't work try adding it after line 43 of include/session.php

Fortunately, this is just a warning, and we can disable the displaying of such things. I will also check the FPDI site to see if the have any news.

Let me know if that line works and I will fold it into the trunk.

Changed 2 years ago by brieb

Doing some more research on this subject suggests we can look for all lines of code in the FPDI stuff that follow this format:

$foo = & new barClass();

and simply replace it with this:

$foo = new barClass();

I am not entirely sure I know all the ramifications but this:

 http://pl.php.net/references#57550

suggests that by default it passes the reference anyway. Thoughts anyone?

Changed 2 years ago by brieb

Just got e-mail from the programmer of FPDI. He said:

"just remove the &-signs in the code or change your error-reporting to E_ALL E_DEPRECATED."

Changed 2 years ago by brieb

  • status changed from assigned to closed
  • resolution set to fixed

Fixed by [712]

Changed 21 months ago by forex robot

Terrific work! This is the type of information that should be shared around the web. Shame on the search engines for not positioning this post higher!

Note: See TracTickets for help on using tickets.
Scanned by Orvant Copyright © 2010 Kreotek, LLC. All Rights reserved.