This was happening with beta versions and is happing now that I upgraded to 7.x-3.0.

I disabled the 'Commons Like' module (as I won't use it) but the 'like' link (should it be a button?) is still there on group and content pages, except for the wikis (and that makes it even more confusing).

I can't understand why is there a module "working" when it's disabled. It even says 'You voted '1'.' when I click on it.

Comments

Dani_what’s picture

Title: The 'like' link appears whith the module disabled » The 'like' link appears with the module disabled
autolyst’s picture

Ok I was able to duplicate this behavior by disabling the Commons Like module.

I have a remedy that removed the leftover button, disable the Rate Module, it is a dependent module for Commons Like and provides the basic voting capability for the module.

Hope this helps

Dani_what’s picture

Status: Active » Fixed

Thank you very much autolyst, that worked for me.
I think it should work when just disabling the Commons Like module, though.

Status: Fixed » Closed (fixed)

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

Chimos’s picture

Version: 7.x-3.0 » 7.x-3.26
Issue summary: View changes
Status: Closed (fixed) » Active

This issue is present on my commons fresh install, version 7.x-3.26.

The like button never worked (it has hover state and pressed state but there's no reaction after click: the widget counter doesn't change, and the button state neither). The commons_answer widget ("up-down") doesn't react neither.

This is the HTML output of the commons_like widget:

<div class="form-item form-type-item">
  <label>Like </label>
 <div class="rate-widget-1 rate-widget clear-block rate-user rate-widget-commons_like rate-k4cpAfZYX0xIjYW-B_aT1QWcmfD1I rate-node-17-1-3 rate-processed" id="rate-node-17-1-3--2">
<span class="rate-button rate-commons-like-btn action-item-small action-item-merge" id="rate-button-2"><span class="element-invisible">like</span></span><span class="rate-commons-like-count action-item-small-append action-item-merge">0</span>
</div>
</div>

HTML output of the commons_answer widget:

<div class="rate-widget-2 rate-widget clear-block rate-average rate-widget-commons_thumbs_up_down rate-1POG8tuPLIi97RAtdGkCM1n6nNH5N-Ncq3G8HaG4x10 rate-node-17-2-3 rate-processed" id="rate-node-17-2-3--2">
<div class="commons-q-a-rate-up-down clearfix">
  <div class="rate-info"><span class="rate-info-value">0</span> <span class="rate-info-label">points</span></div><div class="rate-description">Rate widget description test</div>
  <div class="commons-q-a-rate-buttons">
    <div class="commons-q-a-rate-trigger commons-q-a-rate-up">
      <span class="rate-button rate-number-up-down-btn-up" id="rate-button-12">up</span>    </div>
    <div class="commons-q-a-rate-trigger commons-q-a-rate-down">
      <span class="rate-button rate-number-up-down-btn-down" id="rate-button-13">down</span>    </div>
  </div>
</div>
</div>

Is it designed to output a plain span instead a button or a link?

I created other rating widgets ("yes-no" "number up down" and "5 stars") for the same content types (questions and answers) and it looks that those work correctly.

Thanks