[SOLVED] Dashboard saved incorrectly : backslashes are present in content field of dashboard tables

Hello,

I have had a problem with new (or modified) dashboards : each tile I save a dashboard, emoncms saves it with backslashes :

<div id=\"1\" class=\"jgauge\" style=\"position: absolute; margin: 0px; top: 0px; left: 40px; width: 160px; height: 160px;\" feed=\"humidityKitchen\" max=\"100\" units=\"%\"><canvas id=\"can-1\" width=\"160\" height=\"160\"></canvas></div><div id=\"2\" class=\"jgauge\" style=\"position: absolute; margin: 0px; top: 20px; left: 300px; width: 160px; height: 160px;\" feed=\"tempKitchen\" max=\"\" units=\"\"><canvas id=\"can-2\" width=\"160\" height=\"160\"></canvas></div>

Then dashboards are not displayed any more.

If I remove backslashes, dashaboard is then dispayed.

I don't know exactly when this happened and I can't remember what I changed that may have caused that.

Could this be a php configuration problem ? language related ?

Any idea ?

Thanks.

JS

jsroques's picture

Re: [SOLVED] Dashboard saved incorrectly : backslashes are present in content field of dashboard tables

Ok... found out

I added a php.ini file with 

   magic_quotes_gpc = Off

It solved my problem. Still don't understand why it suddenly stopped working though...

JS

Comment viewing options

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