Closed (fixed)
Project:
Radioactivity
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2012 at 16:38 UTC
Updated:
8 Feb 2013 at 10:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
semei commentedAlso, I set the initial energy to 100, half life to 1800 (=30 minutes), decay granularity to 60, energy cut-off to 0.1 (using live storage).
But when I run cron after 2 minutes, the energy already drops down from 100 to 10.9534!
Comment #2
semei commentedIs anyone experiencing similar unexpected behaviors?
Comment #3
semei commentedComment #4
jaxxed commentedSemei, Can you please export your content-type so that we can see your field configuration.
Comment #5
DerTobi75 commentedDo you use the Entity Cache Modules?!
Regards,
Tobi
Comment #6
combicart commentedI have the same issue (7.x-2.x-dev). I've selected the default profile (default_now) and added it to the standard Articles node on a blank Drupal installation. The radioactivity value only decrease over time but does not add value when viewing the node.
It's a default Drupal installation with no other modules installed.
Comment #7
gkom commentedThis happens in my live installation but not in my local installation of the same site (v. 7.x-2.7).
I have checked all the settings multiple times but I can't pin point the problem.
I'm using the "live storage" type and the bootstrap configuration is pretty much the same with my local one:
Permissions for radioactivity-bootstrap.cfg.inc are currently 755.
Any ideas on what might be causing this?
Comment #8
donatasp commentedTo debug this further you could:
Comment #9
gkom commentedGreat, thank you.
OK, so, /sites/...../emit.php outputs the "Invalid post data" message.
In Firebug, I get a "400 bad request" on the live website whereas it works fine on the same site locally.
The post data on the live site is the same with the local site:
However the response is different.
Live site:
Local site:
Please advise. Thank you very much.
Comment #10
combicart commentedThanks,
Emit.php displays "Invalid post data"
I've also checked the XHR communication. I get the following error in Firebug on the response tab (with 7.x-2.x-dev) and the profile (default_now):
Comment #11
donatasp commented@gkom, unfortunately I don't have apache installed anywhere, but if I would allow myself to guess, I would say that your live site disallows POST requests on emit.php for some reason (I assume GET on live says "Invalid post data..."). Check your logs to see if emit.php is actually hit with POST request. My suspicion is on very strict rewrite rules.
@combicart, I was talking about version 2.7. -dev has changed some. Again, I will allow myself to guess and say that you have wrong ..._DRUPAL_ROOT path in your radioactivity-bootstrap.cfg.inc.
Unfortunately, all I can offer now is speculations.
Comment #12
gkom commentedI confirm that the request is Post and that a Get request outputs the "invalid post data" message.
The Post data seems to be correct and as a result I assume that everything runs smoothly through radioactivity-bootstrap.inc.
Post data is:
There no incidents in the logs, neither in Drupal's nor the server's. The rewrite rules used are Drupal's default ones. I tested this exact installation on another server (Apache again) and I'm getting the exact same problem.
Is there a more specific test I can run?
Your help is greatly appreciated, thank you.
Comment #13
gkom commentedI added a call to
stripslashesbefore generating the checksum in _radioactivity_checksum_generate (radioactivity-bootrstrap.inc) as suggested in Payload validation fails due to escaped quotes and the Post request is now successful.However, the energy does not increase.
Comment #14
pwolanin commentedI am getting with the latest 7.x-2.x the same fatal error mentioned in #10.
Comment #15
pwolanin commentedThe logic in function _radioactivity_light_initialization() seems to be broken - it doesn't actually bootstrap if the config file exists.
Comment #16
pwolanin commentedHere's a minimal patch that fixes the fatal for me.
Comment #17
gkom commentedI upgraded to the current 7.x-2.x-dev release and I was getting the error mentioned in #10.
The patch provided by pwolanin in #16 took care of the error and the module now works properly.
This patch should be reviewed and committed asap.
Big thanks and happy new year to you all!
Comment #18
tcmug commentedPatch #16 is a performance killer - it'll lead to doing a drupal bootstrap every emit.
Real fault lies within emit.php which did not check if the storage class required drupal bootstrap - fixed in latest commit, please give it a go! (As a sidenote emit.php was rewritten about a month ago for the dev branch to support emitter accuracies).
Comment #19
pwolanin commentedSounds like the better fix - I was wondering why the bootstrap required param of each class was not being used.
Comment #20
gkom commentedLatest .dev is working nicely. Your quick response is truly appreciated tcmug. Thank you.
Comment #21
rv0 commentedseems to be working so "fixed" is more appropriate