Fatal Error in files

I see this message in one of the files uploaded to my website: 

Fatal Error.

Call to undefined function elgg_format_url()

Log at time 2020-03-06T02:10:48+00:00 may have more data.

 

#0 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(508): include()
#1 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(441): Elgg\ViewsService->renderViewFile('file/specialcon...', Array, 'default', true)
#2 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/lib/views.php(222): Elgg\ViewsService->renderView('file/specialcon...', Array, 'default')
#3 /home/toevpxgm/toevolution.com/mod/file/views/default/object/file.php(22): elgg_view('file/specialcon...', Array)
#4 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(508): include('/home/toevpxgm/...')
#5 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(441): Elgg\ViewsService->renderViewFile('object/file', Array, 'default', true)
#6 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/lib/views.php(222): Elgg\ViewsService->renderView('object/file', Array, 'default')
#7 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/lib/views.php(848): elgg_view('object/file', Array)
#8 /home/toevpxgm/toevolution.com/mod/file_download/views/default/resources/file/view.php(22): elgg_view_entity(Object(ElggFile), Array)
#9 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(508): include('/home/toevpxgm/...')
#10 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(441): Elgg\ViewsService->renderViewFile('resources/file/...', Array, 'default', true)
#11 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/lib/views.php(404): Elgg\ViewsService->renderView('resources/file/...', Array)
#12 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/Router.php(280): elgg_view_resource('file/view', Array)
#13 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/Router.php(128): Elgg\Router->prepareResponse(Object(Elgg\Http\Request))
#14 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/Router.php(104): Elgg\Router->getResponse(Object(Elgg\Http\Request))
#15 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/Application.php(473): Elgg\Router->route(Object(Elgg\Http\Request))
#16 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/Application.php(359): Elgg\Application->run()
#17 /home/toevpxgm/toevolution.com/vendor/elgg/elgg/engine/classes/Elgg/Application.php(415): Elgg\Application::route(Object(Elgg\Http\Request))
#18 /home/toevpxgm/toevolution.com/index.php(8): Elgg\Application::index()
#19 {main}