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

Undefined index: en when saving post #3196

Closed
fr8ak2 opened this issue May 16, 2018 · 10 comments
Closed

Undefined index: en when saving post #3196

fr8ak2 opened this issue May 16, 2018 · 10 comments

Comments

@fr8ak2
Copy link

fr8ak2 commented May 16, 2018

  • Laravel Version: 5.6
  • Voyager Version: 1.1
  • PHP Version: 7.1.17
  • Database Driver & Version: mysql 5.7

Description:

Error Exception on updating post when English language selected. Other post languages are working fine.

Steps To Reproduce:

Enable multi language and add few languages, then go to Posts section, click edit on any post, change some value and click on update post.

@emptynick
Copy link
Collaborator

Please search before opening a new issue.
Duplicate of #3181, #3187 and #3089

@khandaniel
Copy link

khandaniel commented Jun 26, 2018

Dear @emptynick, can you please explain why do you close all of the issues on account of "undefined index" and other problems with multilingual feature while none of them is solved. You only reference to one possible fix which is not helpful at all. Could you please explain this to me? Would be grateful. Thanks in advance.

@emptynick
Copy link
Collaborator

emptynick commented Jun 26, 2018

This particular issue is a duplicate of the issues I mentioned.
Having multiple issues about the same topic is pointless.
Imagine each issue having 5 duplicates, there would be a few thousan open issues.

The oldest issue will stay open until a bugfix is merged.
In this case it is #3089, and #3089 was automatically closed by Github when #3265 was merged.
#3265 does fix the issue, but isn't released yet.

@alkhachatryan
Copy link

@emptynick it's not fixed yet in 2019 men.

@emptynick
Copy link
Collaborator

You are the only one to say it's not working in 2019.

@josepcrespo
Copy link

It's also not working for me. Working with the latest version available of Voyager (1.2) and Laravel 5.8

@alkhachatryan
Copy link

@emptynick
This screenshot was captured in 06.09.2019
image

@siltais
Copy link

siltais commented Sep 6, 2019

How does your model look ?
My worked like this:

Capture

I also got this error if column was in INT (or other number) format.

@josepcrespo
Copy link

Ok, I've found the reason why it's failing (at least in my project). Thanks to @siltais for pointing me in the right direction.

In my case, I was trying to configure a column in the database with the JSON data type and, the input type as "Code Editor" in the BREAD for the model.

It seems like, the translations can only work with text-based data types (CHAR, VARCHAR, TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT, but not JSON) (on the database) and, with "text" or "textarea" as the type of input in the BREAD configuration for the translatable properties of the model.

@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants