Skip to content

ProjectGeneral/form_renderer_functions.php is being deprecated in 9.8.x #25

@ChemiKyle

Description

@ChemiKyle

Terry Smith of University of Arizona sent us an email:

Hi all

How would you recommend I get rid of this message which displays when I add the REDCap Entity API so that I can use the Project Ownership module?

It appears that a REDCap hook, plugin, or external module on this page is including/requiring a PHP file in REDCap that is no longer used as of REDCap v9.8.0 and higher (although it still exists temporarily). Please note that the files listed below will cease to be a part of the REDCap base code in releases after May 2020, after which the code on this page may fail and may cause an error. You should notify your REDCap administrator and/or the hook/plugin/module author regarding this information so that the custom PHP code may be fixed accordingly. The following files below should no longer be included/required in PHP custom code: /ProjectGeneral/form_renderer_functions.php.

Thanks
terry

The functions defined in this form are likely being migrated to classes (seen before with getBranchingFields being migrated to DataEntry). The destination classes should be preferentially chosen.

Two methods to aid in this:
Detecting if they are scoped as usual: function_exists(<function_name>)
Detecting where they moved: method_exists(<new_class>, <function_name>)

I suspect the message may appear so long as ProjectGeneral/from_renderer_functions.php is referenced.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions