Hello,

We are trying to achieve a Most Popular block but each time a content is a viewed, the energy field stays to 0 instead of incremeting.

We have configured Live storage and act as counter for the behaviour but it doesn't works.

We just want the module and the energy field to act as a counter so we can order by desc the view to show most viewed ( aka most popular ) content first.

Also in recent entry log we have the following error but we dont know how to fix it ?

Storage for field field_popularity not found for article. Please change it in the field configuration.

field_popularity is the field used to store energy
article is the content type

Could anyone help us on this ?

Here's an export of the configuration :

$radioactivity_decay_profile = new stdClass();
$radioactivity_decay_profile->disabled = FALSE; /* Edit this to true to make a default radioactivity_decay_profile disabled initially */
$radioactivity_decay_profile->api_version = 1;
$radioactivity_decay_profile->machine_name = 'increments_when_artic';
$radioactivity_decay_profile->name = 'Increments when article is being read';
$radioactivity_decay_profile->description = 'Each time an article is read, its counter increase by one.
There\'s no time factor to this.';
$radioactivity_decay_profile->enable_decay = 0;
$radioactivity_decay_profile->granularity = '60';
$radioactivity_decay_profile->half_life = 2160;
$radioactivity_decay_profile->cut_off = '10';
$radioactivity_decay_profile->storage = 'Live'; // File doesnt works as well

Comments

teammk’s picture

Issue summary: View changes
mmeldrem’s picture

I can second that I am having this exact same issue in 7.x-2.9. I am using a decay with the write immediately to database option.

teammk’s picture

Any news on this please ?
Should we use the dev version ?

teammk’s picture

The problem is fixed.

You must set a profile configuration in the edit table of the field of type "Radioactivity".

Choose a good field storage. Be sure to write the file radioactivity-bootstrap.cfg.inc in sites/all/modules/radioactivity

the radioactivity field must also be visible on your content's page to emit the correct value.

mmeldrem’s picture

the radioactivity field must also be visible on your content's page to emit the correct value.

This. I am using panels, and I had to add the radioactivity field to the node panel of every content-type I wanted to use Radioactivity with. Problem solved. No rules or any other changes necessary for me.

tcmug’s picture

Status: Active » Closed (works as designed)

Open up again if its anything other than not making sure the field is visible :)

hassan.farooq121’s picture

Status: Closed (works as designed) » Active

I am experiencing energy field is not getting updated for certain node types (not all). Popularity field configuration looks same as compared to node type where it works.