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

[BUG]: Showing error after translate from default language #231

Closed
raghav-zwt opened this issue Jun 6, 2023 · 10 comments
Closed

[BUG]: Showing error after translate from default language #231

raghav-zwt opened this issue Jun 6, 2023 · 10 comments

Comments

@raghav-zwt
Copy link

Describe the bug
When clicking on "Yes, fill in" after showing an error like "Woops! Something went wrong. Please, try again."

To Reproduce
Steps to reproduce the behavior:

  1. Go to the edit page and click on 'Translate from another locale'
  2. Click on "Yes, fill in" https://prnt.sc/CZI9rf4tC5I-
  3. After Seeing an error like "Woops! Something went wrong. Please, try again."

Expected behavior
It should filled inputs in selected language

Screenshots

System (please complete the following information):

  • OS: MAC
  • Browser chrome
  • Versions:

Plugin config
Please add your plugin config here, e.g.

module.exports = {
  translate: {
    enabled: true,
    config: {
      provider: 'deepl',
      providerOptions: {
        apiKey: '*************'
      },
      translatedFieldTypes: [
        'string',
        { type: 'text', format: 'plain' },
        { type: 'richtext', format: 'markdown' },
        'component',
        'dynamiczone',
      ],
      translateRelations: true,
    },
  },
}
@layaxx
Copy link
Member

layaxx commented Jun 9, 2023

Hi @raghav-zwt,
thanks for filing your bug report.
I think I will need additional information in order to investigate this:

  • The editor in the background of your screenshot does not look like the default editor, is this a plugin?
  • are there any error messages / non-sucssfull requests in the browser console which you could share?

@Imran-cse
Copy link

@layaxx I'm facing the same issue. Showing the following error in the console.

Screenshot 2023-06-09 at 7 28 26 PM

@layaxx
Copy link
Member

layaxx commented Jun 10, 2023

Hi @Imran-cse,

  • are you using other plugins besides strapi-plugin-translate?
  • what (type of) fields does the entity you are trying to translate consist of?

@Imran-cse
Copy link

@layaxx Yes I'm using other plugins but for translating only using this one.

Entity consists of all the types of entity the plugin supports as markdown, dynamiczone, string, components.

@Shekhar-Zealous
Copy link

@layaxx Error is generated when click on save for the different locale data after the data is translated. Check the below error image:
image

@layaxx
Copy link
Member

layaxx commented Jun 14, 2023

Hi @raghav-zwt @Imran-cse @Shekhar-Zealous,
I have so far not been able to reproduce this problem.
Again, could you please list your others plugins, even if they are not directly related to translation? From the screenshots it looks like you are using a non-default editor for your richtext fields.
Apart from that, would any one of you be able to share a minimal reproduction example?

@Shekhar-Zealous
Copy link

Hi @raghav-zwt @Imran-cse @Shekhar-Zealous, I have so far not been able to reproduce this problem. Again, could you please list your others plugins, even if they are not directly related to translation? From the screenshots it looks like you are using a non-default editor for your richtext fields. Apart from that, would any one of you be able to share a minimal reproduction example?

I am using CKEditor 5 plugin for text editor. As far as I know, the editor is not creating any problems :/
There is something wrong with the plugin.

@layaxx
Copy link
Member

layaxx commented Jun 17, 2023

Ok, i still cannot reproduce this, so CKEditor might in fact not be related to this. There might very well be something wrong with this plugin, but I cannot work on fixing it unless I can reproduce this error.

@Shekhar-Zealous Could you share the schema.json files of the content-types you encountered this issue with? Same actually also goes for your other issue (#232)

@Shekhar-Zealous
Copy link

@layaxx It's happening with each of the collections where we have used this SEO component.
Its creating issue only when the SEO component is populated after translate https://prnt.sc/tpugsceGvIHF.
The record is saved after removing this component which is kinda odd.
This console error and image delete error appearing for same component. Not able to find the issue after a lot of debugging :(

@Shekhar-Zealous
Copy link

@layaxx @sargreal You can close this bug as it was fixed with this issue #246

@github-project-automation github-project-automation bot moved this from Investigate to Done in Translate Strapi Plugin Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants