dinhphucv

Registered
I was importing dark custom child and got this error: ErrorException: [E_WARNING] Invalid argument supplied for foreach() src/XF/Service/Style/Import.php:193
Stack trace:
#0 src/XF/Service/Style/Import.php(193): XF::handlePhpError()
#1 src/XF/Service/Style/Import.php(177): XF\Service\Style\Import->getAssetValues()
#2 src/XF/Service/Style/Import.php(161): XF\Service\Style\Import->importAssets()
#3 src/XF/Admin/Controller/Style.php(434): XF\Service\Style\Import->importFromXml()
#4 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Style->actionImport()
#5 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass()
#6 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch()
#7 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop()
#8 src/XF/App.php(2270): XF\Mvc\Dispatcher->run()
#9 src/XF.php(417): XF\App->run()
#10 admin.php(13): XF::runApp()
#11 {main}
Request state:
array(4) {
  ["url"] => string(24) "/admin.php?styles/import"
  ["referrer"] => string(50) "https://*******/admin.php?styles/import"
  ["_GET"] => array(1) {
    ["styles/import"] => string(0) ""
  }
  ["_POST"] => array(6) {
    ["target"] => string(3) "new"
    ["parent_style_id"] => string(1) "3"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(24) "/admin.php?styles/import"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
This is a bug with XF. Easy fix:


Basically edit the XML file. Asset support is still being updated across the styles.
 

Pre-Sale Questions

If you have any questions or concerns you want to ask before you make a purchase don't hesitate to use one of our multiple support channels for your convenience.

Back