G6K
G6K copied to clipboard
Error when publishing simulator
Hi, Can you help me please? I tried to create a simulator and got this error when I looked at http://127.0.0.1/test/simulator/calcul/prix-carte-grise
Error : Exception: Unable to find the step whose id is '1'
at App.G6K.Model.Simulator.getStepById(Simulator.php:945)
at App.G6K.Controller.BaseController.runStep(BaseController.php:465)
at App.G6K.Controller.DefaultController.runCalcul(DefaultController.php:160)
at App.G6K.Controller.DefaultController.calcul(DefaultController.php:67)
at Symfony.Component.HttpKernel.HttpKernel.handleRaw(HttpKernel.php:158)
at Symfony.Component.HttpKernel.HttpKernel.handle(HttpKernel.php:80)
at Symfony.Component.HttpKernel.Kernel.handle(Kernel.php:201)
at (main)(index.php:37)
Code : 0
#0 C:\xampp\htdocs\test\simulator\src\G6K\Controller\BaseController.php(465): App\G6K\Model\Simulator->getStepById(1)
#1 C:\xampp\htdocs\test\simulator\src\G6K\Controller\DefaultController.php(160): App\G6K\Controller\BaseController->runStep(Object(Symfony\Component\HttpFoundation\Request), Array, 'prix-carte-gris...', 'Demo', false)
#2 C:\xampp\htdocs\test\simulator\src\G6K\Controller\DefaultController.php(67): App\G6K\Controller\DefaultController->runCalcul(Object(Symfony\Component\HttpFoundation\Request), 'prix-carte-gris...', 'Demo')
#3 C:\xampp\htdocs\test\simulator\vendor\symfony\http-kernel\HttpKernel.php(158): App\G6K\Controller\DefaultController->calcul(Object(Symfony\Component\HttpFoundation\Request), 'prix-carte-gris...', NULL)
#4 C:\xampp\htdocs\test\simulator\vendor\symfony\http-kernel\HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#5 C:\xampp\htdocs\test\simulator\vendor\symfony\http-kernel\Kernel.php(201): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#6 C:\xampp\htdocs\test\simulator\calcul\index.php(37): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#7 {main}
Thank you.
hi,
Can you run this command from C:\xampp\htdocs\test\simulator :
php bin/console g6k:simulator:validate prix-carte-grise
Hi,
I imported another simulator already done and the problem was solved. Thank you very much. Also, I'm trying to create the view shown at the bottom of this page http://eureka2.github.io/g6k/documentation/en/views-management.html but I'm struggling to figure out how to get the breadcrumb {{ form.breadcrumb(_context) }} and the form at the bottom. Can you please help me? Thank you.
Hi @eureka2
Can you help me to show the breadcrumb please ?
Thank you.
i try to use your application, but when i publish the simulator, i have an xml error
im running sf 4.4.25 php 7.4 local env : wamp 3.2
also i wanna know what i must do after publishing the simulator to use it (it's not mentioned in the doc, it'll be nice if u add it)