Despite it seems to work using thumb up/down rating prduces following messages in my system log:

The first message I got 6 times (I think it was produce by viewing the page)

Warning: Division by zero in template_preprocess_rate_template_thumbs_up_down() (line 267 of modules/rate/rate.module)

The second one only 3 times, maybe only after licking the rating link

Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() (line 227 of /core/lib/Drupal/Core/Entity/EntityStorageBase.php) #0 /core/includes/bootstrap.inc(548): _drupal_error_handler_real(2, 'array_flip(): C...', '/medjxcwh/drupa...', 227, Array)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MartinMa created an issue. See original summary.

alex_optim’s picture

Status: Active » Needs review
FileSize
892 bytes

Fixed and create patch.

krina.addweb’s picture

@alex_optim,Thanks! for the patch it works for me.

krina.addweb’s picture

Status: Needs review » Reviewed & tested by the community

  • brenk28 committed 65e9cc2 on 8.x-1.x
    Issue #2834501 by alex_optim, krina.addweb, MartinMa: Fix Warnings at...
brenk28’s picture

Status: Reviewed & tested by the community » Fixed

Patch committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.