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

Duplicate entries created in database!! #15

Closed
araniyan opened this issue Dec 10, 2014 · 3 comments
Closed

Duplicate entries created in database!! #15

araniyan opened this issue Dec 10, 2014 · 3 comments

Comments

@araniyan
Copy link

Hi,

It's glad to have your package and thank you for your awesome work.

Me and my friend have some issue while trying to learn something from your package. That is, for some instances, when we create new entries, duplicate entries will get added on databases. And due to that, certain errors also get returned.

Howeverver, it's not happens all times. Which means, while we trying the same pack on various PCs (environments) and various browsers it returnes different outputs.

We tried the package on WAMP in windows and LAMP in Ubuntu. For Windows, it's work perfectly without error in Firefox and creates duplicate entries in Google Chrome. For Ubuntu, it created duplicate entries in both browsers.

As it's work on some environments perfectly, we hope that there is no issue with the package. However, it's confusing why it's varied based on environment and the browsers.

We googled many things in the view point of environment configuration and nothing get work.

Can you support us to find out the cause why it happens?

Herewith the screenshots of errors also attached. (Descriptions are in image name)

Thanks in advance.

@araniyan
Copy link
Author

1 1_double entry view in admin panel
1 2_double entries at database view - phpmyadmin
2 1_sql error while adding new language with image
2 2_after sql error message new language entry created in database but the image not get attached

@mrakodol
Copy link
Owner

It does not depend on any environments it's simple database error. I set in database migration (see database/migrations/2014_10_18_195027_create_language_table.php) that only in language table "name" and "language_code" have unique value. That is because laravel return that error, what is show here and do now return any errors when you put equal rows values into news for example.

@araniyan
Copy link
Author

Hi,

Thanks for the prompt reply on our request. As you stated on the reply, we knew that there is unique constraint for certain fields in language table and therefore we can't create a same entry with equal values again.

However, the issue we facing is something different that, even when we create a new value in first time, it's get replicated in database. That is the confusion we facing here that it always not happen in all environment as I almost stated on my previous query.

The replication happen in all tables mostly in Google Chrome and in Firefox, only single entry is get created without any errors.

Hope you get what we say.

Thanks!

@zcosmin20 zcosmin20 mentioned this issue Dec 1, 2015
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