I am getting the following error in version 6.x-1.10

warning: Missing argument 3 for _print_page_match(), called in /home3/toddsand/public_html/tpc/sites/all/modules/print/print_pdf.module on line 298 and defined in /home3/toddsand/public_html/tpc/sites/all/modules/print/print.module on line 678.

Any ideas?

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Something is strange.. There's no such function call in line 298 of the print_pdf.module.. There's one in line 490 and another in line 533. Also, the normal install of the module places that file in print/print_pdf (and has always done so).

Can you please confirm the line number? Maybe it's 490...

João

Grinch2171’s picture

Status: Postponed (maintainer needs more info) » Active

It was fine until I updated to the latest version this morning. The error message is verbatim.

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Well, if it is verbatim, then something is seriously wrong with your install, as there's a file in the wrong place and with code in the wrong lines.. In short, I have no ideia what you've just installed. Can you please re-download the module and re-install it?

João

Grinch2171’s picture

Status: Postponed (maintainer needs more info) » Active

I would agree that there is something wrong.

All I did was download 6.x-1.10, uploaded it and then ran update.php. Since then the error message has appeared.

I will try and redo it later.

Grinch2171’s picture

If I disable pdf version under modules the error message goes away.

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry for taking so long to answer.

I've checked the code and it is correct. There should never be a missing 3rd parameter, as each time that function is called, that parameter is passed. If you had a correct version of the module, there would never be a call to that function in line 298, and as such I am unable to help you.

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info in more than two weeks. Closing the issue.

picandoespuelas’s picture

Today I obtain this error:

warning: Missing argument 3 for _print_page_match(), called in /home/.../drupal/modules/print/print_pdf.module on line 318 and defined in /home/.../drupal/modules/print/print.module on line 734.

I understand that $pages is the missing argument?
It's a clean installation.

alexmoreno’s picture

i have the same error. Disabling pdf and email stopped the messages.