External issue Discourse Importer Bug

Timelord_

Member
Licensed customer
Affected version
2.2.3
When importing from the latest version of Discourse, all seems to go well until approx step 16, then the following error is thrown. I tried messing with various combinations of different versions of PHP, but no success.

Any thoughts?

Code:
Error: Call to undefined function XFI\Import\Importer\yaml_parse() in src/addons/XFI/Import/Importer/Discourse.php at line 2290
    
XFI\Import\Importer\Discourse->stepPostRevisions() in src/XF/Import/Runner.php at line 244
  
XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 61
  
XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line 234
  
XF\Admin\Controller\Import->actionRun() in src/XF/Mvc/Dispatcher.php at line 352
  
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2487
  
XF\App->run() in src/XF.php at line 524
  
XF::runApp() in admin.php at line 13
 
This would indicate the YAML PHP extension is not available (though I think we should warn before the import starts if this is the case).
 
Automated triage: Server issue

Thank you for reporting this issue. This error means the YAML PHP extension isn't loaded in the PHP version running the import. The Discourse importer needs it and checks for it when the import is set up, so if you switched PHP versions after starting, make sure the version you use now has YAML installed before you continue.

This is an automated assessment. A member of staff may review and update it.
 
Back
Top Bottom