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

Template reference not found when call Register api #707

Open
megataps opened this issue Mar 29, 2021 · 6 comments
Open

Template reference not found when call Register api #707

megataps opened this issue Mar 29, 2021 · 6 comments

Comments

@megataps
Copy link

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

mamazu commented Mar 30, 2021

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:

@megataps
Copy link
Author

megataps commented Mar 31, 2021

@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
Copy link
Member

mamazu commented Mar 31, 2021

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

megataps commented Apr 2, 2021

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

@mamazu
Copy link
Member

mamazu commented Apr 2, 2021

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

@mamazu
Copy link
Member

mamazu commented Aug 23, 2021

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

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

2 participants