Unhandled Error!

MySQL error executing query: Duplicate entry 'cms-content_version' for key 'PRIMARY'

Hint

This problem could be caused by the LemonStand MySQL connection configuration errors. Please log into the LemonStand Configuration Tool and update the database connection parameters. Also please make sure that MySQL server is running.

Document /phproad/modules/db/classes/db_mysqlidriver.php
Document type PHP document
Line 101
Exception class Phpr_DatabaseException

Code Highlight

 
		// execute the statement
		$handle = mysqli_query(Db::$connection, $sql);
 
		// If error, generate exception
		if ($err = mysqli_errno(Db::$connection) != 0) {
			$exception               = new Phpr_DatabaseException('MySQL error executing query: ' . mysqli_error(Db::$connection));
			$exception->hint_message = 'This problem could be caused by the LemonStand MySQL connection configuration errors. Please log into the LemonStand Configuration Tool and update the database connection parameters. Also please make sure that MySQL server is running.';
			throw $exception;
		}
 
		return $handle;
	}
# Call Stack Code Document Line
16 Db_MySQLiDriver->execute('insert into moduleparams(module_id, name, value) values ('cms','content_version','i:1732180656;')') /phproad/modules/db/classes/db_sqlbase.php 604
15 Db_SqlBase->execute('insert into moduleparams(module_id, name, value) values ('cms','content_version','i:1732180656;')') /phproad/modules/db/classes/db_sqlbase.php 437
14 Db_SqlBase->query('insert into moduleparams(module_id, name, value) values ('cms','content_version','i:1732180656;')') /phproad/modules/db/classes/db_dbhelper.php 56
13 Db_DbHelper::query('insert into moduleparams(module_id, name, value) values (:module_id,:name,:value)', array(3) [module_id => 'cms', name => 'content_version', value => 'i:1732180656;']) /phproad/modules/db/classes/db_moduleparameters.php 36
12 Db_ModuleParameters::set('cms', 'content_version', 1732180656) /modules/cms/classes/cms_module.php 198
11 CMS_Module::update_cms_content_version(()) /modules/cms/models/cms_partial.php 499
10 Cms_Partial->after_modify('updated', null) /phproad/modules/db/classes/db_activerecord.php 874
9 Db_ActiveRecord->save(()) /modules/postcodedistancelookup/classes/postcodedistancelookup_module.php 58
8 PostcodeDistanceLookup_Module->registerPartials(()) /modules/postcodedistancelookup/classes/postcodedistancelookup_module.php 24
7 PostcodeDistanceLookup_Module->subscribeEvents(()) /modules/core/classes/core_modulemanager.php 64
6 Core_ModuleManager::listModules(()) /modules/backend/init/custom_helpers.php 13
5 include('/var/www/vhosts/carpetcleaner-hire.co.uk/httpdocs/modules/backend/init/custom_helpers.php') /phproad/system/initialize.php 189
4 init_lemonstand_modules(()) /phproad/system/initialize.php 197
3 include('/var/www/vhosts/carpetcleaner-hire.co.uk/httpdocs/phproad/system/initialize.php') /phproad/system/phproad.php 24
2 include('/var/www/vhosts/carpetcleaner-hire.co.uk/httpdocs/phproad/system/phproad.php') /boot.php 114
1 require_once('/var/www/vhosts/carpetcleaner-hire.co.uk/httpdocs/boot.php') /index.php 3