G6K icon indicating copy to clipboard operation
G6K copied to clipboard

Error when publishing simulator

Open DallyRKT opened this issue 4 years ago • 4 comments

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.

DallyRKT avatar Sep 24 '20 13:09 DallyRKT

hi,

Can you run this command from C:\xampp\htdocs\test\simulator :

php bin/console g6k:simulator:validate prix-carte-grise

eureka2 avatar Sep 24 '20 16:09 eureka2

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.

DallyRKT avatar Sep 25 '20 10:09 DallyRKT

Hi @eureka2

Can you help me to show the breadcrumb please ?

Thank you.

DallyRKT avatar Sep 30 '20 14:09 DallyRKT

i try to use your application, but when i publish the simulator, i have an xml error erreur G6K

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)

rayenhidri27 avatar Jul 19 '21 14:07 rayenhidri27