Project

General

Profile

Bug #5836

surveys not tracking

Added by Alexander Hu about 9 years ago. Updated about 9 years ago.

Status:
Bug resolved
Priority:
High
Assignee:
Category:
Survey
Target version:
Start date:
19/12/2012
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

When creating a survey, all invited mailaccounts get their emails.
All mails have different hashes at the end of the link.

Unfortunately, the tracking, who answered and what does not work.

Associated revisions

Revision 70889e4b (diff)
Added by Julio Montoya about 9 years ago

Fixing SQL error : "DELETE FROM $table_class_user WHERE user_id = '".$user_id."" see #5836

Revision 747d7781 (diff)
Added by Yannick Warnier about 9 years ago

Updated order of headers and not-allowed message - refs #5836

History

#1

Updated by Alexander Hu about 9 years ago

Tested version: Chamilo 1.9.4 latest nightly, also tested on campus.chamilo.org

On the campus.chamilo.org, when i am not logged in and copy the survey url:
http://campus.chamilo.org/main/survey/fillsurvey.php?course=WC0099&invitationcode=auto&scode=wc001

i get:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/campus.chamilo.org/www/main/inc/lib/template.lib.php:742) in /var/www/campus.chamilo.org/www/main/inc/lib/system/web/header.class.php on line 27 Call Stack: 0.0243 668740 1. {main}() /var/www/campus.chamilo.org/www/main/survey/fillsurvey.php:0 6.2672 11980456 2. api_not_allowed() /var/www/campus.chamilo.org/www/main/survey/fillsurvey.php:77 6.2674 11985308 3. Header::response_code() /var/www/campus.chamilo.org/www/main/inc/lib/main_api.lib.php:2765 6.2674 11985444 4. header() /var/www/campus.chamilo.org/www/main/inc/lib/system/web/header.class.php:27 Warning: Cannot modify header information - headers already sent by (output started at /var/www/campus.chamilo.org/www/main/inc/lib/template.lib.php:742) in /var/www/campus.chamilo.org/www/main/inc/lib/system/web/header.class.php on line 29 Call Stack: 0.0243 668740 1. {main}() /var/www/campus.chamilo.org/www/main/survey/fillsurvey.php:0 6.2672 11980456 2. api_not_allowed() /var/www/campus.chamilo.org/www/main/survey/fillsurvey.php:77 6.2674 11985308 3. Header::response_code() /var/www/campus.chamilo.org/www/main/inc/lib/main_api.lib.php:2765 6.2675 11985444 4. header() /var/www/campus.chamilo.org/www/main/inc/lib/system/web/header.class.php:29 Warning: Cannot modify header information - headers already sent by (output started at /var/www/campus.chamilo.org/www/main/inc/lib/template.lib.php:742) in /var/www/campus.chamilo.org/www/main/inc/lib/system/web/header.class.php on line 31 Call Stack: 0.0243 668740 1. {main}() /var/www/campus.chamilo.org/www/main/survey/fillsurvey.php:0 6.2672 11980456 2. api_not_allowed() /var/www/campus.chamilo.org/www/main/survey/fillsurvey.php:77 6.2674 11985308 3. Header::response_code() /var/www/campus.chamilo.org/www/main/inc/lib/main_api.lib.php:2765 6.2676 11985436 4. header() /var/www/campus.chamilo.org/www/main/inc/lib/system/web/header.class.php:31

When logged in, everything's fine, i get the question, but still no tracking :(

#2

Updated by Julio Montoya about 9 years ago

  • Status changed from New to Needs more info
  • % Done changed from 0 to 10

I tried to reproduced this error but it works for me.
Can you try to reproduce the error here http://stable.chamilo.org?

Probably this was already resolved yesterday I sent some fixes for the survey tool ...

#3

Updated by Alexander Hu about 9 years ago

Maybe somebody can upload/install the german language file ;-)

When selected "Deutsch" as portal language:

Parse error: syntax error, unexpected T_STRING in /var/www/stable.chamilo.org/www/main/lang/german/index.inc.php on line 75 Call Stack: 0.0013 377912 1. {main}() /var/www/stable.chamilo.org/www/index.php:0 0.0035 532608 2. require_once('/var/www/stable.chamilo.org/www/main/inc/global.inc.php') /var/www/stable.chamilo.org/www/index.php:19 

And when trying to recover my forgotten password for my user account lonesomewalker, where i was able to create courses:

This platform was unable to send the email. Please contact Eri Esc for more information.

Brr, seriously, i would test it, if i could :)

#4

Updated by Julio Montoya about 9 years ago

I fixed the fatal error and the translation variable

#5

Updated by Alexander Hu about 9 years ago

Well, but i still can't login as lonesomewalker, respective request a new password, so even if i register a new account, i can't subscribe as a course manager to test the survey things ;)

#6

Updated by Yannick Warnier about 9 years ago

On stable.chamilo.org you can login as admin/admin :-)
That doesn't mean it should be impossible to log as teacher, but at least this can unlock you (you can then "login as" any user from the users list).

#7

Updated by Alexander Hu about 9 years ago

Thanks, worked.

First, i deleted the other account i created.

Got this error message:
DATABASE ERROR #1146:
Table 'stablechamilo.class_user' doesn't exist
QUERY :
DELETE FROM `stablechamilo`.`class_user` WHERE user_id = '1146'
FILE :
/var/www/stable.chamilo.org/www/main/inc/lib/usermanager.lib.php
LINE :
285
CLASS :
UserManager
METHOD :
delete_user

Erm, i hope, this didn't mess something up. :)

Unfortunately, when i copy the shown URL from the survey manager:
http://stable.chamilo.org/main/survey/fillsurvey.php?course=PROJ0001&invitationcode=auto&scode=surveycheck0001

have a look for yourself...

The invited users indeed now are registered, means: 3 users invited, one done survey, shown as: 1 / 3 -> correct. :)

#8

Updated by Alexander Hu about 9 years ago

I forgot: this error is only happening when not logged in.
When a user is already logged in, no error is shown.

Seems, only the anonymous part of the surveys have some issues... :(

#9

Updated by Julio Montoya about 9 years ago

Alexander Hu wrote:

Thanks, worked.

First, i deleted the other account i created.

Got this error message:
DATABASE ERROR #1146:
Table 'stablechamilo.class_user' doesn't exist
QUERY :
DELETE FROM `stablechamilo`.`class_user` WHERE user_id = '1146'
FILE :
/var/www/stable.chamilo.org/www/main/inc/lib/usermanager.lib.php
LINE :
285
CLASS :
UserManager
METHOD :
delete_user

Erm, i hope, this didn't mess something up. :)

Unfortunately, when i copy the shown URL from the survey manager:
http://stable.chamilo.org/main/survey/fillsurvey.php?course=PROJ0001&invitationcode=auto&scode=surveycheck0001

have a look for yourself...

The invited users indeed now are registered, means: 3 users invited, one done survey, shown as: 1 / 3 -> correct. :)

I fixed that SQL error

#10

Updated by Yannick Warnier about 9 years ago

  • Status changed from Needs more info to Needs testing
  • % Done changed from 10 to 20

And I sent an additional fix because the order of the header printing and the not allowed message was wrong in this case, which ended up with a "Headers already sent" message.

#11

Updated by Yannick Warnier about 9 years ago

  • Status changed from Needs testing to Bug resolved
  • Assignee set to Julio Montoya
  • % Done changed from 20 to 100

I reviewed the feature now in 1.9.4dev and I can see who's answered what in a non-anonymous survey, and see the different answers in an anonymous one.

If you don't object, I'll consider this one fixed. Feel free to re-open if you can give us another test case with a failure.

Also available in: Atom PDF