XF 2.0 PHP 5.6 => PHP 7.2 Problem

Tapsta

Member
Hi,

When I upgraded to PHP version, private messages do not open. I get this error.

I ran the following code. it did not improve.

1537008587638.webp

An exception occurred: [TypeError] Argument 2 passed to XF\App::getCustomFieldsForEdit() must be an instance of XF\CustomField\Set, string given in src/XF/App.php on line 1618

  1. XF\App->getCustomFieldsForEdit()
  2. call_user_func_array() in src/XF/Template/Templater.php at line 940
  3. XF\Template\Templater->method() in internal_data/code_cache/templates/l3/s31/public/custom_fields_macros.php at line 204
  4. XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 663
  5. XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l3/s31/public/quick_reply_macros.php at line 94
  6. XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 663
  7. XF\Template\Templater->callMacro() in internal_data/code_cache/templates/l3/s31/public/conversation_view.php at line 286
  8. XF\Template\Templater->{closure}() in src/XF/Template/Templater.php at line 1250
  9. XF\Template\Templater->renderTemplate() in src/XF/Template/Template.php at line 24
  10. XF\Template\Template->render() in src/XF/Mvc/Renderer/Html.php at line 48
  11. XF\Mvc\Renderer\Html->renderView() in src/XF/Mvc/Dispatcher.php at line 332
  12. XF\Mvc\Dispatcher->renderView() in src/XF/Mvc/Dispatcher.php at line 303
  13. XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 44
  14. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
  15. XF\App->run() in src/XF.php at line 329
  16. XF::runApp() in index.php at line 13
 
Back
Top Bottom