Too much Text in Exit Page Causes Coding Error

Too much Text in Exit Page Causes Coding Error

by Deborah Delin -
Number of replies: 7

Hi Gordon,

I am creating TaskChain Exit Pages for my exercises.  (Happily now they are displaying a link to the next activity - thank you for fixing that.)

The Exit Pages are about 8 sentences long plus some graphics and a media player.  I am able to save a certain amount of text in the Exit Page but then I seem to hit a limit and nothing I do will make TaskChain accept more text.  This is the error I get :

Coding error detected, it must be fixed by a programmer: Invalid value in set_user_preference() call, value is is too long for the value column

More information about this error

Debug info: 
Error code: codingerror
Stack trace:
  • line 1838 of /lib/moodlelib.php: coding_exception thrown
  • line 1897 of /lib/moodlelib.php: call to set_user_preference()
  • line 632 of /mod/taskchain/edit/form/helper/base.php: call to set_user_preferences()
  • line 85 of /mod/taskchain/mod_form.php: call to taskchain_form_helper_base->set_preferences()
  • line 153 of /mod/taskchain/lib.php: call to mod_taskchain_mod_form->data_postprocessing()
  • line 118 of /mod/taskchain/lib.php: call to taskchain_process_formdata()
  • line 478 of /course/modlib.php: call to taskchain_update_instance()
  • line 268 of /course/modedit.php: call to update_moduleinfo()

With thanks in advance for your help.

Deborah

Average of ratings: -
In reply to Deborah Delin

Re: Too much Text in Exit Page Causes Coding Error

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Thanks Deborah,
the message is very clear approve

I will fix the "set_user_preference()" error later today.

regards
Gordon

In reply to Gordon Bateson

Re: Too much Text in Exit Page Causes Coding Error

by Deborah Delin -

Glad it's clear to you!! 

Thank you for seeing to it.

Deborah

In reply to Deborah Delin

Re: Too much Text in Exit Page Causes Coding Error

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Deborah,

this issue is fixed now but I won't release a new version of TaskChain yet, because I am just finishing off the backup/restore. I expect to finish this tomorrow.

regards

Gordon

In reply to Gordon Bateson

Re: Too much Text in Exit Page Causes Coding Error

by Deborah Delin -

Greattt!!  Please could you let me know when the new version is ready?

Thank you,

Deborah

In reply to Deborah Delin

Re: Too much Text in Exit Page Causes Coding Error

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Deborah,
probably I'll release it (TaskChain) tomorrow (Sat) if I can get up early enough
Gordon

In reply to Gordon Bateson

Re: Too much Text in Exit Page Causes Coding Error

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Deborah,

the new version of TaskChain is available now. Please update and confirm this issue is fixed when you have a chance.

regards
Gordon

In reply to Gordon Bateson

Re: Too much Text in Exit Page Causes Coding Error

by Deborah Delin -

Hi Gordon!

I uploaded the new version of TaskChain and I can confirm that I am now able to add content to my Exit Pages to my heart's content!  And my Exit pages display a beautiful link to the next activity!  So my Exit Page woes are all fixed!

Thanks so much for sorting this all out.

Deborah

Average of ratings: Useful (1)