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.
Notice: Undefined index: base table in votingapi_views_data_alter() (line 282 of...
Does anyone knows why I get this error on the confirm page when I update a module?
Comments
Comment #1
Triumphent CreditAttribution: Triumphent commentedAny development on this?.
Comment #2
niranto CreditAttribution: niranto commentedHaving the same problem :(
Please kindly advice would be very appreciated.
Thank you.
Comment #3
timwee CreditAttribution: timwee commentedsame issue
Comment #4
mlanning CreditAttribution: mlanning commentedI'm experiencing the same notice. It started when I installed the renderable elements module. If I disable it, then the notice goes away. If I enable it, it comes back. I'm not sure if that's the only module that causes this, but that seems to be my experience so far.
Comment #5
mlanning CreditAttribution: mlanning commentedFound out a little more... Under the Renderable Elements module's settings tab, there is an option to uncheck the "Enable form registration". It also states, "when enabled, this option may conflict with other modules". In my case, unchecking this option seems to get rid of the undefined index notice that voting api keeps popping up with.
Comment #6
mlanning CreditAttribution: mlanning commentedWell, I guess I spoke too soon. This still comes up after I save a content type after editing...
Notice: Undefined index: base table in votingapi_views_data_alter() (line 282 of ... sites/all/modules/contrib/votingapi/views/votingapi.views.inc).
Notice: Undefined index: id in votingapi_views_data_alter() (line 283 of ... sites/all/modules/contrib/votingapi/views/votingapi.views.inc).
Comment #7
deanflory CreditAttribution: deanflory commentedVoting API is not alone, there are two others that are having the same issue:
I had reported these errors to the other modules' issue queues and adaddinsane @ Field Complete stated it could have to do with an upgrade in PHP version.
adaddinsane:
Looks like I did last time I updated, now on PHP 5.4.25. I was on 5.3.28.
Thanks maintainers for your time to look into this!
Feeling better now that this isn't some "unknown" issue with my installation that I've been working on for far too long. Having these errors show up on every page is pretty annoying though.
Comment #8
deanflory CreditAttribution: deanflory commentedI had opened a duplicate issue after this one here: https://drupal.org/node/2193259
adaddinsane provided a fixed version of Field Complete and here's what his fix was, whether that applies to Voting API code I don't know, but it might provide a hint and make the issue easier to resolve in Voting API:
Comment #9
deanflory CreditAttribution: deanflory commentedFYI, it is not an issue with PHP versions. I reverted back to PHP 5.3.28 and the error still exists.
I am getting this on two different Drupal installations on the same server. One has a lot of modules enabled and the other a minimal amount to fit under 128MB RAM.
Is this module being actively maintained torotil, eaton, moshe weitzman, or ChrisKennedy? I haven't seen any response from maintainers and this issue is more than 7 months old with a dev release 4 months ago that didn't take care of this issue. Seems pretty important with 53,335 current installs. Any help would be appreciated.
Comment #10
deanflory CreditAttribution: deanflory commentedComment #11
deanflory CreditAttribution: deanflory commentedComment #12
deanflory CreditAttribution: deanflory commentedClosed my duplicate issue:
https://drupal.org/node/2193259
Comment #13
torotil CreditAttribution: torotil commented@deanflory: I'm currently not using the views integration of this module in any of our sites. So it doesn't have a high priority for me. I'm happy to review any patches tackling this issue.
Thanks for taking the time to prune the issue queue of duplicates.
Comment #14
deanflory CreditAttribution: deanflory commentedWow. Okay. I'd think an error on every page load would have more priority but thanks for your honesty.
Are there plans for this module to make it to Drupal 8? The Rate module that has a dependency on Voting API has pledged a Drupal 8 release. With Views in core in D8 doesn't that make this issue a bit more important moving forward?
I'm just curious how much I should lean on this project for future sites and still I guess a little shocked by your "will not fix" reply since you're a maintainer.
Thanks for your time.
Comment #15
torotil CreditAttribution: torotil commented@deanflory: I've adopted this module because I am using it in a few currently in production sites. Back then not even issues with patches that were RTBC were committed for months. Except for those production sites I don't need voting functionality in ongoing projects and the time I'm able (or I want to) spend for Drupal in my free time is rather limited.
btw: we don't have this notice at all on our production-sites.
Comment #16
torotil CreditAttribution: torotil commentedI've just committed a fix in 7.x-2.x. Please test and reopen if the problem persists.
Thanks to deanflory for posting a fix and taking care of the duplicate issues.
Comment #17
deanflory CreditAttribution: deanflory commentedDownloaded the latest dev and ran update.php and received these two new errors:
I then disabled and uninstalled votingapi and all modules that require it. Enabling just votingapi and none of the modules like Rate that use votingapi still resulted in the above errors.
I'll leave this current issue closed but will create a new issue for these new errors.