Welcome, Guest
Username: Password: Remember me

TOPIC: 1.92RC2

1.92RC2 2 years 10 months ago #71887

  • fransmarcelissen
  • fransmarcelissen's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 169
  • Thank you received: 31
  • Karma: 10
I just installed 1.92RC2. Again an old error occurred, when running a survey:
Warning: usort() [function.usort]: Invalid comparison function in /var/www/vhosts/digipsy.nl/httpdocs/survey192/classes/eval/ExpressionManager.php on line 1312
This problem also occurred in 1.92RC1, and Tom said it was solved.
Frans
The administrator has disabled public write access.

Re: 1.92RC2 2 years 10 months ago #71892

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
fransmarcelissen-

As best I can tell, this is a PHP 5.2 issue. I only have access to 5.3, so I can't reproduce the bug myself. The fix I added was supposed to work for 5.2, but without a 5.2 stack, I can't test t to confirm.

Can you report a bug ticket so we can have someone work on this?

/Tom
Last Edit: 2 years 10 months ago by TMSWhite.
The administrator has disabled public write access.

Re: 1.92RC2 2 years 10 months ago #71896

  • fransmarcelissen
  • fransmarcelissen's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 169
  • Thank you received: 31
  • Karma: 10
Indeed, my local system with php 5.3 does'nt report this problem. I cannot change php, however, so I hope the problem can be solved.
Frans
The administrator has disabled public write access.

Re: 1.92RC2 2 years 10 months ago #71897

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
Frans-

Should have looked before replying. That was a different error (different class), but same root cause. It is fixed in revision 12017 (or should be - I don't have 5.2 to test - can you use SVN to try revision 12017 and confirm it is fixed?)

/Tom
The administrator has disabled public write access.

Re: 1.92RC2 2 years 10 months ago #71914

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
Hello,

I had/have the same problem with 1.92RC1 and as both of you mentioned it seems to be a PHP 5.2 issue. I have PHP 5.2.17 installed on our server and PHP 5.3.8 installed on my XAMPP localhost installation. Perhaps it would be an idea to download an old XAMPP version with PHP 5.2.X and try testing it with the old XAMPP. I don't thnik I will finish it today but I hope I'll install 1.92RC2 on our server and open the access from the internet (currently I have installed 1.92RC1 on our server which is only available from our company intranet and 1.92RC2 on my localhost). I don't know if it will help to test it because I can't grant you any access to our server, just to our LimeSurvey software.
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.

Re: 1.92RC2 2 years 10 months ago #71938

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
Tom, that was a good catch. Can you check the source code if the problematic part is used elsewhere, too?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: 1.92RC2 2 years 10 months ago #71941

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
Mazi-

\admin\scripts\kcfinder\lib\helper_dir.php::content() uses usort($files, "dir::fileSort"), so might have the same problem. I don't know how that is used, so I'd rather not patch it until we see a reproducable problem with it. That's the only other place in 1.92 that uses usort() in that fashion.

/Tom
The administrator has disabled public write access.

Re: 1.92RC2 2 years 10 months ago #71943

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
Tom, please get in touch with Carsten about this.

Maybe vierundzwanzig can help us reproducing the problem?!

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: 1.92RC2 2 years 10 months ago #72038

  • Steve
  • Steve's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 494
  • Thank you received: 46
  • Karma: 17
Hello,

I installed 1.92RC2 and added the changes up to build 12033. If someone wants access to it, just write me a PN, I'll give you the url and username + password.

1.92RC2 Build 12033 seems to work good, I looked araound a bit and didn't see any usort() errors/hints. If I'm correct kcfinder is something that hanldes files and directories. I tried adding/sorting/deleting files, tried to upload files using the upload question type, adding and deleting files in the template editor and deleted the whole survey. For me there was no error/warning. Though I'm not sure where the functions content() or prune() are called in the LimeSurvey source ode.
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.133 seconds
Donation Image