Dataform (plugin)

PSA: Do NOT upgrade to PHP 7! Stay on 5.6 to keep using this plugin.

 
My profile picture
PSA: Do NOT upgrade to PHP 7! Stay on 5.6 to keep using this plugin.
 

Was pulling my hair out for hours trying to figure out why none of the fields on my activity could be edited.

Turns out that there is an open bug with PHP7 that the Dataform plugin just doesn't play nicely with. I resolved my issue by rolling back to PHP 5.6.

 
Average of ratings: Useful (2)
Picture of Hartmut Scherer
Re: PSA: Do NOT upgrade to PHP 7! Stay on 5.6 to keep using this plugin.
 

Thanks for the warning. Today I saw that Moodle 3.4 requires at least PHP 7.0. I like to use the Dataform module. Since I don't know when the updated version of Dataform will be released, I won't migrate to Moodle 3.4. We are now on Moodle 3.3 and hope that the Dataform module will be updated with Moodle 3.5.

 
Average of ratings: -
Picture of Andrew Earley
Re: PSA: Do NOT upgrade to PHP 7! Stay on 5.6 to keep using this plugin.
 

Dear TJ 

Do you have a link to this tracker? I am struggling to find it.

 
Average of ratings: -
Picture of Rachel Martin
Re: PSA: Do NOT upgrade to PHP 7! Stay on 5.6 to keep using this plugin.
 

We are running dataform on PHP 7.0.29, so far I have no problems reported on our Moodle 3.1.

I am currently testing it under Moodle 3.5 as part of our upgrade.  I identified one error that seemed to be a conflict with the newer php, but I have a fix for it.

Warning: Parameter 1 to dataformfield_text_renderer::display_edit() expected to be a reference, value given in /data/www/elan-learning.nl/public_html/mod/dataform/classes/pluginbase/entriesform.php on line 68

To resolve this, please change line 68 in entriesform.php from: 
all_user_func_array($func, array_merge(array($mform), $params));
to: 
call_user_func_array($func, array_merge(array(&$mform), $params));


 
Average of ratings: -
Picture of Van Romine
Re: PSA: Do NOT upgrade to PHP 7! Stay on 5.6 to keep using this plugin.
 

I have been successfully using dataforms in Moodle 3.4.4 for several weeks.... I just upgraded to 3.5.1. No errors. My configuration is:

  • Moodle 3.5.1
  • PHP 7.2.9 (with mcrypt added through PECL) 

https://lukasmestan.com/install-mcrypt-extension-in-php7-2/


HTH


 
Average of ratings: -