We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Error 500 after upgrading theme - Venus | Forum

John
John Jan 1 '17
After upgrading this theme to the latest version, whenever I go to click on the "Themes" page in the admin panel, I get the following 500 error:

Error details: Type: Exception Message: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'venus_plus' for key 'name' File: /home/sitename/public_html/ow_core/database.php Line: 723 Trace: #0 /home/sitename/public_html/ow_core/database.php(723): PDOStatement->execute() #1 /home/sitename/public_html/ow_core/database.php(476): OW_Database->execute('INSERT INTO `ow...', Array) #2 /home/sitename/public_html/ow_core/database.php(512): OW_Database->insert('INSERT INTO `ow...', Array) #3 /home/sitename/public_html/ow_core/base_dao.php(216): OW_Database->insertObject('ow_base_theme', Object(BOL_Theme)) #4 /home/sitename/public_html/ow_system_plugins/base/bol/theme_service.php(210): OW_BaseDao->save(Object(BOL_Theme)) #5 /home/sitename/public_html/ow_system_plugins/admin/controllers/themes.php(78): BOL_ThemeService->updateThemeList() #6 [internal function]: ADMIN_CTRL_Themes->chooseTheme(Array) #7 /home/sitename/public_html/ow_core/request_handler.php(250): ReflectionMethod->invokeArgs(Object(ADMIN_CTRL_Themes), Array) #8 /home/sitename/public_html/ow_core/request_handler.php(226): OW_RequestHandler->processControllerAction(Object(ReflectionMethod), Object(ADMIN_CTRL_Themes)) #9 /home/sitename/public_html/ow_core/application.php(346): OW_RequestHandler->dispatch() #10 /home/sitename/public_html/index.php(76): OW_Application->handleRequest() #11 {main}

Any ideas on how to resolve?


John
John Jan 3 '17
Ok, how do I do this without accessing the "Themes" page in the admin panel?
John
John Jan 6 '17
Thanks.

I went to the FTP folder and realised I had a venus_plus_backup folder in the ow_themes folder (I'd copied the venus_plus folder there before doing the upgrade) as well as the "new" venus_plus folder. 

It turns out having both folders was the problem (leading to the "duplicate key" issue), so I deleted the venus_plus_backup folder and kept the venus_plus folder.  Problem solved.
The Forum post is edited by John Jan 6 '17
You do not have permission to reply this topic