example-modules icon indicating copy to clipboard operation
example-modules copied to clipboard

Make example modules works with Prestashop 8.0

Open mflasquin opened this issue 1 year ago • 4 comments

For the moment the modules do not work on prestashop 8. Most often when accessing the configuration route of the module, for example :

image

  • [x] demo_grid
  • [x] democonsolecommand
  • [ ] democontrollertabs
  • [ ] demodoctrine
  • [x] demoextendgrid
  • [x] demoextendsymfonyform1
  • [ ] demoextendsymfonyform2
  • [x] demoextendsymfonyform3
  • [x] demojsrouting
  • [ ] demomultistoreform
  • [x] demooverrideobjectmodel
  • [x] demoproductform
  • [x] demosymfonyform
  • [ ] demovieworderhooks
  • [ ] example_module_mailtheme

mflasquin avatar Oct 07 '22 13:10 mflasquin

Thank you @mflasquin for the big work!

matks avatar Oct 07 '22 14:10 matks

It's seems some modules works but we have to clear the cache manually in BO before be able to use them. When the modules are installed on 1.7.7 they works even if the cache is not cleared manually. I don't know if it can be considered as an issue on Prestashop 8.

mflasquin avatar Oct 07 '22 14:10 mflasquin

It's seems some modules works but we have to clear the cache manually in BO

We need to find out why. We need to understand what's behind that

matks avatar Oct 07 '22 14:10 matks

I think the problem comes from recent Core changes. Many files were moved from PrestaShop\PrestaShop\Core\Addon\Module to PrestaShop\PrestaShop\Core\Module (1 level up). If you try to install module from Terminal, you will see warnings related to ModuleInterface class then fail. Installing module from Back-Office run smoothly but you need Clear Cache to make the module work normally (clear the old cache of Module related class I guess :)

leemyongpakvn avatar Oct 07 '22 14:10 leemyongpakvn