Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.10
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2009 at 16:11 UTC
Updated:
29 Nov 2010 at 14:01 UTC
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
Comment #1
jcnventuraSomething 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
Comment #2
Grinch2171 commentedIt was fine until I updated to the latest version this morning. The error message is verbatim.
Comment #3
jcnventuraWell, 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
Comment #4
Grinch2171 commentedI 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.
Comment #5
Grinch2171 commentedIf I disable pdf version under modules the error message goes away.
Comment #6
jcnventuraSorry 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
Comment #7
jcnventuraNo further info in more than two weeks. Closing the issue.
Comment #8
picandoespuelas commentedToday 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.
Comment #9
alexmoreno commentedi have the same error. Disabling pdf and email stopped the messages.