Welcome, Guest
Username: Password: Remember me

TOPIC: Warning: htmlspecialchars() limesurvey/classes/eval/ExpressionManager.php

Warning: htmlspecialchars() limesurvey/classes/eval/Expres​sionManager.php 2 years 9 months ago #73423

  • sammy
  • sammy's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 25
  • Karma: 0
May warning in httpd error log and web page display, while test 1.92RC3. Is any config missing or setting OFF?

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1473

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1461

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1473

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1461

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1473
The administrator has disabled public write access.

Re: Warning: htmlspecialchars() limesurvey/classes/eval/Expres​sionManager.php 2 years 9 months ago #73428

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
What version of PHP are you using?

From the manual here (php.net/manual/en/function.htmlspecialchars.php), htmlspecialchars does accept 4 parameters as of PHP version 5.2.3, so I'm guessing that you are using a version of PHP that predates 5.2.3

/Tom
The administrator has disabled public write access.

Re: Warning: htmlspecialchars() limesurvey/classes/eval/Expres​sionManager.php 2 years 9 months ago #73430

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
This is fixed in 1.92 RC4 - it will check PHP version and use the appropriate htmlspecialchars() syntax for pre 5.2.3 versions of PHP.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.109 seconds
Donation Image