Fix for 'Not a survey owner'

Fix for 'Not a survey owner'

by Mike Churchward -
Number of replies: 6
Picture of Core developers Picture of Plugin developers Picture of Testers
First let me apologize to all of you who have had a problem with this. That's what happens when I try to work too quickly.

There were two problems causing this - one a PHP5 problem; the other a stupid mistake (mine).

Please update your '/mod/questionnaire' directory with the files in the attached zip. This should fix everything.

mike
Average of ratings: -
In reply to Mike Churchward

Re: Fix for 'Not a survey owner'

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
I've updated the version in CVS with the posted fixes and some others. I've also added a cron task that will periodically run and clean up any orphaned questionnaires.

mike
In reply to Mike Churchward

Re: Fix for 'Not a survey owner'

by Ken Gibson -

Mike,

No need to apologize....without you , we wouldn't have this wink
These patches fixed both the library and ownserhip errors for me.

10,000 thanks.

Ken

In reply to Mike Churchward

Re: Fix for 'Not a survey owner'

by Matt Cromwell -
I updated the questionnaire mod from CVS and now I'm getting these errors

After updating survey from mod.php recieve :
Warning: Invalid argument supplied for foreach() in "our_server"\mod\questionnaire\locallib.php on line 915
on manage_survey.php

After clicking "Edit Questions" on page manage_survey.php
Fatal error: Call to undefined function _() in "our_server"\mod\questionnaire\questions.inc on line 153
This error appears below the New Field button and the Field Name box
on manage_survey.php











(of course "our_server" is our server, changed just for privacy, but the path is correct)

I then applied the patches from the .zip file attached in your post above, with the same results.

I love the questionnaire! I appreciate your work!

Sincerely,
MC
In reply to Matt Cromwell

Re: Fix for 'Not a survey owner'

by Matthias Makowsky -
After updating the questionnaire today (15.02) I'm getting the same errors as Matt.

In detail you can see the errors after clicking "Edit Questions" in the appended picture.
Attachment Bild1.png
In reply to Matt Cromwell

Re: Fix for 'Not a survey owner'

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
If you updated from CVS, don't apply the patch. You may undo some things.

I have just commited more fixes to CVS to get rid of the error. I'll look into the warnings.

mike
In reply to Mike Churchward

Re: Fix for 'Not a survey owner'

by Ken Gibson -

To reiterate how I fixed the errors I was having,

  1. Downloaded the questionnaire module (zipped)
  2. copied/Unzipped that to  in my moodle "mod" directory on server
  3. Download the patch zip file from above post
  4. upzipped that patch file locally
  5. Copy those two patched php files into my mod/questionaire directory on server
  6. Good as Beans  big grin  no more errors

Thanks again Mike.

Average of ratings: Useful (1)