Getting this error
while reindexing using ssh command
exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1005 Can't create table './admin_magento16/catalog_product_flat_4.frm' (errno: 150)' in /home/magesite/public_html/store/lib/Zend/Db/Statement/Pdo.php:228
in my magento database there is no catalog_product_flat_4 table is present
what should I need to do for this?
Did you clean Magento cache before reindexing?
I can recommend you to check your database with original Magento Database Repair Tool
able to solve this problem with our team
1st I checked database
checked the core_store table there are 4 store created
also the catalog_product_flat_2 , 3 , 4 tables are missed
I checked my admin panel there is only 1 store
so create the sites from admin panel add added the catalog_product_flat_2 , 3 , 4
then re-index is works fine
cheers :)
Related
I am trying to re-indexing from admin side for stock and inventory as update on save. But it return error
We couldn't change indexer(s)' mode because of an error.
And in debug log is showing error like
1360 Trigger does not exist, query was: DROP TRIGGER IF EXISTS `trg_cataloginventory_stock_item_after_insert`
I am using magento version 2.3 series.
Thank you in advance.
I tried with indexing command then It will works fine but issue is at adminside re-indexing only.
I have this problem:
PostGis Server with a table: Table_Points_of_all_works
table has a field "ID_WORK" so I can filter points for only one work.
with different groups (a group for each work).
Each group can access to the only work related, and view, insert, delete rows (related to their only ID_Work)
To do this I created groups and policies:
CREATE POLICY policy_for_this_groupofWork
ON public."Table_Points_of_all_works"
AS PERMISSIVE
FOR ALL
TO "GroupWork12"
USING ("ID_WORK"=12)
WITH CHECK ("ID_WORK"=12);
Viewing the table of points in QGIS works: only points of related work are seen.
But when I insert new points and giving in the field ID_WORK correct work (12 in this case), I receive an error while updating SQL:
"Could not commit changes to layer Table_Points_of_all_works
Errors: ERROR: 1 feature(s) not added - provider doesn't support adding features."
If I do the same thing with admin users (postgres) all works fine.
Anyone can help me?
thanks in advance,
Filippo
Every time I click on any page in the backend I get 6 DB Errors, that look very similar to this one, in total 3 different SELECT errors for the table lawyer and 3 for the table student:
caller TYPO3\CMS\Core\Database\DatabaseConnection::exec_SELECTquery
ERROR Table 'db_lawclinic47.tx_lcapp_domain_model_lawyer' doesn't exist
lastBuiltQuery SELECT uid FROM tx_lcapp_domain_model_lawyer
WHERE pid=24 AND tx_lcapp_domain_model_lawyer.deleted=0
AND (tx_lcapp_domain_model_lawyer.t3ver_state <= 0 OR
tx_lcapp_domain_model_lawyer.t3ver_wsid = 0) LIMIT 1
debug_backtrace require(25/typo3/sysext/recordlist/mod1/index.php),25/typo3/mod.php#32 //
TYPO3\CMS\Recordlist\RecordList->main#31 //
TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRecordList->generateList#332 //
TYPO3\CMS\Core\Database\DatabaseConnection->exec_SELECTgetSingleRow#410 //
TYPO3\CMS\Core\Database\DatabaseConnection->exec_SELECTquery#406 //
TYPO3\CMS\Core\Database\DatabaseConnection->debug#305
Those tables really don't exist because I renamed some and deleted some...and my webpage is working fine, so somehow those new tables are used, but there seems to be something old that is trying to select from the old tables and I have no idea what it could be and how to find it and get rid of it. Any clues?
You have an extension installed (probably with key lcapp) that requires these tables. If you don't need that functionality any longer, you should uninstall that extension in the Extension Manager.
Also, if the database was manipulated by some other tool than TYPO3 itself, you should check the database structure in the Install Tool. It can tell you about missing tables, fields that are not as specified and so on.
The database definitions for an extension are stored in the file ext_tables.sql in root of the extensions install directory, the Install Tool compares against these definitions.
I am trying to edit configurable product and getting error. I am using Magento version 2.1.2
Steps to reproduce:
Go to admin -> Stores -> Configuration -> Sales -> Google API section
Change the configuration Enable Content Experiments to "Yes"
Save a configurable product and its child product consecutively.
Expected result:
Product should be save successfully with any number of times.
Actual result:
failed to save product
getting bellow error:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry
'0-402-product' for key
'GOOGLEOPTIMIZER_CODE_STORE_ID_ENTITY_ID_ENTITY_TYPE', query was:
UPDATE googleoptimizer_code SET entity_id = ? WHERE (code_id='136')
Anyone can help me to fix this issue?
I found the solution. To fix this issue I edit configurations options and its worked for me. please refer this link http://prntscr.com/e7px78
After I migrate my Magento shop from one hosting provider to another one. Before I start to migrate a delete all my test orders and put counter of order number to 0.
I have big problem. When I want to go in back office into sales->order I get an error "There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 213759415"
If I go into var/report and open file "213759415" I see 36 lines the first one are:
a:5:{i:0;s:64:"Item (Mage_Sales_Model_Order) with the same id "1" already exist";i:1;s:5345:"#0 /usr/home/xxx/domains/xxx.com/public_html/lib/Varien/Data/Collection/Db.php(576): Varien_Data_Collection->addItem(Object(Mage_Sales_Model_Order))
I have Magento 1.7.0.2
Any ideas?
Many thanks!
I found in db, tabel called "onestepcheckout" where I forgot to delete test orders.
Make sure you properly deleted all test orders.
You can use the following module to do this:
http://www.magentocommerce.com/magento-connect/asperience-deleteorders.html