emoncms issue

Hello,

though git, friday 28.09, I downloaded a release but with that I have a problem: in my dashboard, when I add more than one graphical control (e.g. 1 dial and 1 graph) and I save it, the system write in the db an empty field (content = "")! If in the same dashboard, I add more than one control of the same type, it save correctly the dashboard (content!="").

Could you help me please?

Thank you in advance

Erica

ezen's picture

Re: emoncms issue

I done more some tests:

1) If I insert a dial control and a rawdata graph, it save correctly

2) If I insert a dial control and a multigraph, it save an empty string

3) If I insert a feedvalue control and a multigraph, it save correctly

4) If I add a dial control to the previous dashboard (3) and I save it... it save an empty string

Thank you

Erica

alco's picture

Re: emoncms issue

I confirm the same issue here. also with a new github emoncms from 29/09/2012 and older versions.

5) If I insert a dail control within an Iframe. it save an empty string (NO dashboard) to the database.

only multigraph is working with the new visuel editor...
 

ezen's picture

Re: emoncms issue

11) PHP Suhosin module configuration (Debian 6)

Dashboard editing needs to pass parameters through HTTP-GET mechanism and on Debian 6 the max
allowable length of a single parameter is very small (512 byte). This is a problem for designing of dashboard
and when you exceed this threshold all created dashboard are lost...

to overcame this problem modify "suhosin.get.max_value_length" in /etc/php5/conf.d/suhosin.ini" to large
value (8000, 16000 should be fine).

 

....this solve the problem!

Erica

TrystanLea's picture

Re: emoncms issue

Thanks ezen, alco for debuging this. Strange that I did come across this issue sooner (is the length different on Ubuntu debian?) I will move it to $_POST as a long term solution which is probably the best place for this data anyhow.

TrystanLea's picture

Re: emoncms issue

Checking the implementation more carefully I realize it already prioritizes POST over GET only using GET if there is not content in POST.

TrystanLea's picture

Re: emoncms issue

Ahh sorry, dashboard/edit is sending content in the URL as GET request, I have now changed it to POST 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.