Jump to content

Site broken - error in WireDatabasePDO.php


Peter Knight
 Share

Recommended Posts

Hi guys

I was installing the ChangeLog module  and my site is now throwing the following error

Error: Exception: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'templates_id' (in /var/www/vhosts/mydomain.com/httpdocs/wire/core/WireDatabasePDO.php line 191)
This error message was shown because you are logged in as a Superuser. Error has been logged.

Looking at WireDatabasePDO.php line 191, I don't see anything obviously wrong but I'm not familiar with the inner workings of that file.

public function exec($statement, $note = '') {
$this->queryLog($statement, $note); 
return $this->pdo()->exec($statement);
}

Any ideas? Could I manually replace the Wire folder or should I look to cherry pick this fix?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...