gospelsinger Posted May 9 Share Posted May 9 what does this mean im gettting a ton of red flag warnings File: [settings.tax.inc.php] Line: [126] "INSERT INTO `cc0d_CubeCart_tax_rates` (`type_id`,`details_id`,`country_id`,`county_id`,`tax_percent`,`goods`,`shipping`,`active`) VALUES ('1','1','840','44','6.75','1','0','1');" - Duplicate entry '1-1-840-44' for key 'type_id' Notice Error - These are unlikely to cause operatinal problems and can be thought of as best practice recommendations. Action is not required. Warning Error - These are unlikely to cause operational problems now but there is a problem, one that is likely to cause bigger issues in the future. Action is recommended. Parse Error - These are caused by misused or missing symbols in a syntax. Action is required. Fatal Error - These are are classified as critical errors. Action is required. Exception Error - These are are classified as critical errors. Action is required. Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 9 Share Posted May 9 It seems you are trying to add a new tax rule that has these same details as an existing tax rule. Tax Class: (probably) Standard Rate Tax Detail: (something entered on the Tax Details tab) Country: United States State: North Carolina The table INDEX named 'tax_id' covers these actual table columns in CubeCart_tax_rates: 'type_id', 'details_id', 'country_id', and 'county_id' - which this combination of values must be unique. If you are actually NOT trying to add new rules when this error gets logged, then something may be wrong with the code. Quote Link to comment Share on other sites More sharing options...
gospelsinger Posted May 9 Author Share Posted May 9 how would i correct it to where nc is the only state with tax Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 10 Share Posted May 10 That should be it. Just that one rule. Quote Link to comment Share on other sites More sharing options...
johnwilliamson1 Posted May 29 Share Posted May 29 It seems like you're dealing with a warning message related to a duplicate entry in a PHP file, specifically in a line that inserts data into a database table related to tax rates in CubeCart. Let's break down the message: 1. **File and Line**: The warning message originates from the file `settings.tax.inc.php` on line 126. This indicates where the issue is occurring in your codebase. 2. **Description**: The warning message indicates that there's a duplicate entry being attempted to be inserted into the `cc0d_CubeCart_tax_rates` table. The entry in question is `'1-1-840-44'` for the key `type_id`. 3. **Error Levels**: - **Notice Error**: These are not critical and won't affect immediate operations but are recommended best practices to address. - **Warning Error**: Though they might not cause issues immediately, they could lead to bigger problems in the future. Action is recommended to prevent such issues. - **Parse Error**: These occur due to syntax issues in the code. Immediate action is required to fix them. - **Fatal Error** and **Exception Error**: These are critical errors that require immediate attention as they can severely impact the functioning of your application. In your case, the warning message falls under the category of "Warning Error." While it might not be causing operational problems right now, it's indicating a potential issue that could escalate into a bigger problem later. It's advisable to address this warning by investigating why there's an attempt to insert a duplicate entry into the database table and take appropriate action to prevent it from happening in the future. learn more Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.