Closed (fixed)
Project:
Printer, email and PDF versions
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2012 at 11:30 UTC
Updated:
26 Mar 2013 at 18:50 UTC
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 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
jcnventuraThanks for the patch!!
http://drupalcode.org/project/print.git/commit/49b4199