This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

pratyushpundir6424
pratyushpundir6424

Hi, I've run into a weird issue where once I log out as a backend user and try to log back in, I get this error:

SQLSTATE[42S01]: Base table or view already exists.

The mysql table being referred to in the message is for a blog plugin (based on the RainLab.Blog plugin so I could learn).

After signing out, I'm redirected to the backend login screen at : myapp.com/backend/backend/auth/signin

Using correct credentials always results in the above error is a Flash message. However, I'm automatically signed in to last logged backed user if I just visit this : myapp.com/backend (and never to the actual login screen - seems that the session is not being cleared)

Any help will be much appreciated!!?

Last updated

pratyushpundir6424
pratyushpundir6424

UPDATE - FIXED!

It turns out that I had hurriedly messed up the version.yaml for my Blog plugin. I had made these errors (if you care to know) in version.yaml:

  1. Wrong sequence of table creation while creating pivot tables
  2. Wrong sequence of version numbers used
  3. Missed creating a table

All this while I was sleepy and trying to "wrap" things up.

Sorry if you spent any time figuring this out.

bombozama
bombozama

Totally helped me out. Thanks!

tekjava
tekjava

Thank you! Went through 18 different version files in builder plugin and fixed my issue!

pratyushpundir6424
pratyushpundir6424

Glad this was helpful!

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.