Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Unable to edit

  • etutora
  • etutora's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago #144438 by etutora
Unable to edit was created by etutora
Dear Community,

I updated my LimeSurvey to the lasted version during the weekend. Now I'm not able to edit the survey. I get the following error:
Trying to get property of non-object
lime/application/helpers/admin/htmleditor_helper.php(28)

I would much appreciate your help. As it always is, I need to have the survey online till tomorrow.

Thanks so much.
Maria
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 4 months ago - 7 years 4 months ago #144440 by LouisGac
Replied by LouisGac on topic Unable to edit
It has been fixed recently but not released yet:
github.com/LimeSurvey/LimeSurvey/commit/...1bf30bcba963cf3084b1

Because it's an emergency, you must patch it yourself. Open this file:
application/helpers/admin/htmleditor_helper.php

Find the line 26:
Code:
if (Yii::app()->getRequest()->enableCsrfValidation && !empty(Yii::app()->getRequest()->csrfCookie))

and replace it by:
Code:
if (Yii::app()->getRequest()->enableCsrfValidation && !empty(Yii::app()->getRequest()->csrfCookie->domain))
Last edit: 7 years 4 months ago by LouisGac.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 4 months ago #144441 by LouisGac
Replied by LouisGac on topic Unable to edit
Also, I've just created a patch for it. If you feel uncomfortable with editing a file, just download this archive:
comfortupdate.limesurvey.org/patches/htmleditor_helper.zip

and unzip it at the root of your LimeSurvey installation.
The topic has been locked.
  • etutora
  • etutora's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago - 7 years 4 months ago #144442 by etutora
Replied by etutora on topic Unable to edit
LouisGac,
You are really my hero.
Thanks so much. It solved the problem.
Thanks, thanks, thanks.
Maria
Last edit: 7 years 4 months ago by etutora. Reason: typo
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 4 months ago #144443 by LouisGac
Replied by LouisGac on topic Unable to edit
You're welcome.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose