Strict warning: Declaration of votingapi_views_handler_field_value::element_type() should be compatible with that of views_handler_field::element_type() in require_once() (line 9 of sites\all\modules\votingapi\views\votingapi_views_handler_field_value.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #26 | votingapi_strict_warning-1110134-26.patch | 548 bytes | jaydub |
Comments
Comment #1
Leeteq commentedSubscribing.
Comment #2
helloworld2016 commentedHello,
Sorry but I didn't understand your comment :). What do you mean by "subscribing"?
Comment #3
Leeteq commented@bizzz12345: hello, welcome to the community :-)
When a person want to "watch" and be automatically informed about developments in a certain "issue", we need to post "something" so that we are "subscribed" to it. After that, it will pop up in the activity list on the user dashboard whenever someone is updating it with new comments, or changing its status, etc. So if we have nothing in particular to "say" or comment on, we just type "Subscribe" or the like. Some combine that by typing "+1" to show that they are in favor of whatever is the main suggestion. Many "+1" comments are actually just subscriptions...
This is not an ideal solution, as "subscribe" posts by themselves will make the topic pop up in the activity queue of all current "subscribers", stealing their attention even if nothing of interest has happened. Many of us are annoyed about this, but we have as of yet no other way to follow an issue easily when we have nothing of value to actually comment about.
Comment #4
helloworld2016 commentedOk ok :) now it's clear. Thank your for the explanation.
Comment #5
eglobal commentedI am getting a slightly different error (but probably the same cause):
Strict warning: Declaration of votingapi_views_handler_field_value::element_type() should be compatible with that of views_handler_field::element_type() in _registry_check_code() (line 2789 of D:\Collaboration\Apache Software Foundation\Apache2.2\htdocs\drupal7\includes\bootstrap.inc).
Comment #6
sigmax commentedJust change in votingapi_views_handler_field_value.inc
// function element_type() {
function element_type($none_supported = FALSE, $default_empty = FALSE) {
Cheers
Comment #7
sigmax commentedComment #8
mototribe commentedsubscribing
Comment #9
lawnmower528 commentedsolution did not work for me (testing with view that also filters content by feed item). made sure voting for comments was not supported as readme suggested that views integration for comment-votes was not supported.
Comment #10
lawnmower528 commentedalso i am using the stable 7.3.0-rc1
Comment #11
lawnmower528 commentedand the rate module as well but the problem is similar to eglobal's
Comment #12
jeefers commentedIm getting this along with a system/ajax error with the 'call' method being undefined whenever I add a new view.
Comment #13
hcmogensen commentedI got it to work when I changed it to:
// function element_type() {
function element_type($none_supported = FALSE, $default_empty = FALSE, $inline = FALSE) {
Comment #14
Anonymous (not verified) commentedThanks, that worked for me too!
For the record, this problem came up for me while using the rate module and using views to output a table showing the Fivestar widget.
Comment #15
nguyentran commentedThanks, that worked for me too!
Comment #16
geert commentedThx, did the trick for me. I was on 7.2.4
Comment #17
Leeteq commenteddoes this call for a new release? (critical/views related affects lots of sites)
Comment #18
mefisto75 commentedwhat did you guys do with /return 'div';/ part?
Comment #19
eaton commentedCommitted; this is in the dev snapshot and will be part of the next release.
Comment #21
nnevillthere is no this fix in dev or final release. pls add
Comment #22
perisdr commentedIndeed I still get the error.
Comment #23
oclaros1 commentedChanging from:
function element_type($none_supported = FALSE, $default_empty = FALSE) {
Changing to:
function element_type($none_supported = FALSE, $default_empty = FALSE, $inline = FALSE) {
Worked for me.
Comment #24
MGParisi commented#23 worked for me!
Comment #25
Anonymous (not verified) commentedHas this been committed yet? The fix in 23 worked for me, as well.
Comment #26
jaydub commentedPatch has been added to #1244850: No way to avoid this warning - Strict warning: Declaration of votingapi_views_handler_field_value. Posting the patch file here and marking the other issue as duplicate as this issue has more of the relevant details.
Comment #27
Leeteq commented@eaton: what was actually committed in #19?
Comment #28
AlessMascherpa commentedThe patch in #26 by @jaydub solves the error. Tests for views and votingAPI runed and passed.
Comment #29
torotil commentedFix committed and in the current dev-branch. I plan to make a bug-fix release that also contains other fixes within the next week.