New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLSTATE[42S02]: Base table or view not found #71
Comments
Hi @coresh, I've tried a clean install and everything went smooth on my side. After module is installed and configuration cache is flushed, module's configuration is parsed and observers are registered (from your stacktrace this already happened) and then SQL setup scripts responsible to create database scripts are run (which seems was not happened in your case).
select * from core_cache_option;
select * from core_resource where code = 'sheep_debug_setup'; My proposal is to retry installation and see if consistently you get into same state.
-- Uninstall
DROP TABLE IF EXISTS sheep_debug_request_info;
DELETE FROM core_resource WHERE code = 'sheep_debug_setup';
SELECT * FROM core_resource WHERE code = 'sheep_debug_setup';
DESCRIBE sheep_debug_request_info; You should get something similar to: |
Hi @coresh, Do you still get this error? Cheers, |
Hi, Mario, First of all: Thanks for your quick and complete reply. Issue still not solved (output: the same) Version: EE 1.14.2.2
i can't find CREATE table sheep_debug_request_info syntax:
In the same time magneto-debug version 1.5 worked like a charm |
Regarding magneto-debug version 1.6
|
Did you try to run to remove core_resource entry and flush the cache and you had the same error? Table is created by https://github.com/madalinoprea/magneto-debug/blob/master/code/Debug/sql/sheep_debug_setup/install-1.3.0.php#L11 I've reinstalled everything on Magento EE 1.14.2.1 and everything worked as expected:
|
@coresh, yes that line will try to persist some info to the missing table. I wouldn't remove that. It will make the module useless :D I can provide you raw SQL to create table by hand, but I would like to understand what is happening and why setup script is not running on your installation. |
|
In your case that's expected, you don't have that table. |
Dear Mario,
I can't find the syntax with: CREATE TABLE sheep_debug_request_info... |
Table is added via Magento DDL object (Varien_Db_Adapter_Pdo_Mysql), see newTable call. I notice that you use MariaDB. Maybe you use a different connection class that doesn't implement newTable?! Query that is used to create the table is this: CREATE TABLE `sheep_debug_request_info` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Id',
`token` varchar(255) NOT NULL COMMENT 'Request Token',
`http_method` varchar(32) NOT NULL COMMENT 'Http Method',
`store_id` smallint(6) NOT NULL COMMENT 'Store Id',
`request_path` varchar(255) NOT NULL COMMENT 'Request Path',
`response_code` smallint(6) NOT NULL COMMENT 'Http Response Status Code',
`ip` varchar(255) DEFAULT NULL COMMENT 'Customer IP',
`session_id` varchar(255) DEFAULT NULL COMMENT 'Session Id',
`date` datetime NOT NULL COMMENT 'Date',
`rendering_time` decimal(15,2) DEFAULT NULL COMMENT 'Total Rendering Time',
`query_time` decimal(15,2) DEFAULT NULL COMMENT 'Total Query Time',
`query_count` int(11) NOT NULL COMMENT 'Total number of queries',
`time` decimal(15,2) DEFAULT NULL COMMENT 'Total Time',
`peak_memory` int(11) NOT NULL COMMENT 'Peak Memory used in bytes',
`info` mediumblob NOT NULL COMMENT 'Serialized Info',
PRIMARY KEY (`id`),
KEY `IDX_SHEEP_DEBUG_REQUEST_INFO_TOKEN` (`token`),
KEY `IDX_SHEEP_DEBUG_REQUEST_INFO_SESSION_ID` (`session_id`),
KEY `IDX_SHEEP_DEBUG_REQUEST_INFO_REQUEST_PATH` (`request_path`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='sheep_debug_request_info'; |
After creating the table
magneto-debug v 1.6 worked like a charm |
No problem. Still I think we didn't resolve the root cause but at least you can use it. Cheers, |
Magic instance:
refreshing browser Result: NO issue So: issue may be around initial setup install-1.3.0.php.
No problem detected |
Any success? |
After initial installation:
modman clone https://github.com/madalinoprea/magneto-debug
and
n98-magerun.phar cache:flush
The text was updated successfully, but these errors were encountered: