Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when publishing simulator #36

Open
DallyRKT opened this issue Sep 24, 2020 · 4 comments
Open

Error when publishing simulator #36

DallyRKT opened this issue Sep 24, 2020 · 4 comments

Comments

@DallyRKT
Copy link

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.

@eureka2
Copy link
Owner

eureka2 commented Sep 24, 2020

hi,

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

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

@DallyRKT
Copy link
Author

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
Copy link
Author

Hi @eureka2

Can you help me to show the breadcrumb please ?

Thank you.

@rayenhidri27
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants