Page 1 of 1

Fatal error: Uncaught Exception

Posted: Tue Nov 14, 2017 12:34 pm
by toothless3010
This error shows up whenever I delete the upload(trident) folder in xampp/htdocs/trident and paste a new upload folder with the same name "trident". I understand that the table already exist but i tried finding for the solution in the internet and i cant seem to find it. Can anybody tell me what to do so i can move on successfully installing opencart again. I have come across this error few times and i choose to ignore it by installing xampp server and it solves the problem. Im sure there is other way to solve this in a easier way. Im seeking the opencart community help.

Fatal error: Uncaught exception 'ErrorException' with message 'Error: Table 'oc_product_profile' already exists<br />Error No: 1050<br /> CREATE TABLE `oc_product_profile` ( `product_id` int(11) NOT NULL, `profile_id` int(11) NOT NULL, `customer_group_id` int(11) NOT NULL, PRIMARY KEY (`product_id`,`profile_id`,`customer_group_id`) ) ENGINE=MyISAM COLLATE=utf8_general_ci; ' in

Re: Fatal error: Uncaught Exception

Posted: Tue Nov 14, 2017 2:39 pm
by webmedialdh
Use create table condition :

Code: Select all

CREATE TABLE IF NOT EXISTS `oc_product_profile` ( `product_id` int(11) NOT NULL, `profile_id` int(11) NOT NULL, `customer_group_id` int(11) NOT NULL, PRIMARY KEY (`product_id`,`profile_id`,`customer_group_id`) ) ENGINE=MyISAM COLLATE=utf8_general_ci; 
Regards

Re: Fatal error: Uncaught Exception

Posted: Tue Nov 14, 2017 3:22 pm
by toothless3010
Im sorry, but where do I do this??
Use create table condition :
Code: Select all

CREATE TABLE IF NOT EXISTS `oc_product_profile` ( `product_id` int(11) NOT NULL, `profile_id` int(11) NOT NULL, `customer_group_id` int(11) NOT NULL, PRIMARY KEY (`product_id`,`profile_id`,`customer_group_id`) ) ENGINE=MyISAM COLLATE=utf8_general_ci;