Sylius / ShopApiPlugin

Shop API for Sylius.
https://sylius.com
129 stars 89 forks source link

Template reference not found when call Register api #707

Open megataps opened 3 years ago

megataps commented 3 years ago

I'm using setup Sylius on my local and then install this plug in. I have tried to use register api but I got this error. { "code": 500, "message": "Template reference \"SyliusShopApiPlugin:Email:verification.html.twig\" not found, did you mean \"@SyliusShopApiPlugin/Email/verification.html.twig\"?" }

Screen Shot 2021-03-29 at 22 04 25
mamazu commented 3 years ago

Yeah seems like some parts of the plugin still use the old Template syntax. Can you try to clear the cache and see if the problem still exists?

Otherwise you can check if there are any overrides of the sylius_mailer configuration. It should look like this: https://github.com/Sylius/ShopApiPlugin/blob/e6bd790261c9a273d688345bc260b5930ce939f2/src/Resources/config/app/sylius_mailer.yml#L4

megataps commented 3 years ago

@mamazu

I have clear the project and then install the new one.

  1. I have followed this instruction to install Sylius:

composer create-project sylius/sylius-standard acme cd acme php bin/console sylius:install yarn install yarn run gulp symfony server:start open http://127.0.0.1:8000

  1. Then I have follow this link: Sylius Documentation - How to disable Sylius shop?

  2. Then I install ShopApiPlugin

But the error still the same. I don't know what is wrong?

mamazu commented 3 years ago

I just checked. This is not yet released. So we need to release a new version of shop api for this to work again.

megataps commented 3 years ago

Hi @mamazu , When do we have the next release for this issue?

mamazu commented 3 years ago

We are currently working on some concurrency issues then we will release a new version.

mamazu commented 3 years ago

Version 1.4 was released. Maybe check again if the error still occurs.