I have clean installation of Drupal 5.1 and two contribute modules: Print Friendly Pages and Taxonomy context. When active only one of these modules, I have no error on site, but if these modules active both, I have error:

warning: Missing argument 3 for print_link() in /usr/local/www/virtual/www012/www/sites/all/modules/print/print.module on line 47.

This error show only when I try to see taxonomy terms: http://example.com/taxonomy/term/1
On full node view I have no error and I see correctly Print Friendly Page-link.

Line 47: function print_link($type, $node = 0, $main) {

Can somebody help me? Thanks.

Comments

drewish’s picture

Status: Active » Closed (duplicate)
dicreat’s picture

Problem still won't solve.

bryanpflug’s picture

subscribe - I'm having this problem, too!

chaos21in’s picture

Status: Closed (duplicate) » Needs work

I think this happening with taxonomy term pages only. Any way if i give default value to $main its not giving error.

changing line 47 from

function print_link($type, $node = 0, $main ) {

to

function print_link($type, $node = 0, $main = 0) {

I am sure it is only a temporary solution to get rid of error message, a proper fix is needed.

--rafi

jcnventura’s picture

Status: Needs work » Closed (fixed)

Actually, that's the fix. And it's now in the latest dev release.