Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The constructor in the views handler for page counter is not happy when called without arguments.
Warning: Missing argument 1 for print_join_page_counter::construct(), called in /Users/ckj/Sites/inf/d7/sites/all/modules/views/includes/handlers.inc on line 120 and defined i print_join_page_counter->construct() (linje 14 af /Users/ckj/Sites/inf/d7/sites/all/modules/print/print_join_page_counter.inc).
Warning: Missing argument 2 for print_join_page_counter::construct(), called in /Users/ckj/Sites/inf/d7/sites/all/modules/views/includes/handlers.inc on line 120 and defined i print_join_page_counter->construct() (linje 14 af /Users/ckj/Sites/inf/d7/sites/all/modules/print/print_join_page_counter.inc).
Warning: Missing argument 3 for print_join_page_counter::construct(), called in /Users/ckj/Sites/inf/d7/sites/all/modules/views/includes/handlers.inc on line 120 and defined i print_join_page_counter->construct() (linje 14 af /Users/ckj/Sites/inf/d7/sites/all/modules/print/print_join_page_counter.inc).
Warning: Missing argument 4 for print_join_page_counter::construct(), called in
Views will sometimes call without arguments and that works well, so the constructor needs to have default arguments. Made a patch that does that.
Comment | File | Size | Author |
---|---|---|---|
default_arguments_constructor.patch | 767 bytes | naxoc | |
Comments
Comment #1
naxoc CreditAttribution: naxoc commentedAlso posted a patch in the views queue (where the bug kinda comes from) to fix the documentation. #1804448: Code from documentation is causing PHP notices
Comment #2
jcnventura CreditAttribution: jcnventura commentedThanks for the patch!!
http://drupalcode.org/project/print.git/commit/49b4199