I am getting this error while installing Magento on WAMP. Any solutions?
a:5:{i:0;s:430:"Error in file: "C:\wamp\www\magento\app\code\core\Mage\Newsletter\data\newsletter_setup\data-upgrade-1.6.0.0-1.6.0.1.php" - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magentodb.newsletter_subscriber' doesn't exist, query was: DELETE `main_table` FROM `newsletter_subscriber` AS `main_table`
INNER JOIN `customer_entity` AS `customer` ON main_table.customer_id = customer.entity_id WHERE (customer.website_id = 0)";i:1;s:819:"#0 C:\wamp\www\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 C:\wamp\www\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(392): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-upgrade', false, '1.6.0.2')
#2 C:\wamp\www\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(289): Mage_Core_Model_Resource_Setup->_installData('1.6.0.2')
#3 C:\wamp\www\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(269): Mage_Core_Model_Resource_Setup->applyDataUpdates()
#4 C:\wamp\www\magento\app\code\core\Mage\Core\Model\App.php(351): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
#5 C:\wamp\www\magento\app\Mage.php(684): Mage_Core_Model_App->run(Array)
#6 C:\wamp\www\magento\index.php(87): Mage::run('', 'store')
#7 {main}";s:3:"url";s:18:"/magento/index.php";s:11:"script_name";s:18:"/magento/index.php";s:4:"skin";s:7:"default";}
if it is the first install, try dopping the database and then recreate it, clear cache and launch a Magento page.
if it isnt't the first install go to core_resource table and drop the line containing 'newsletter_setup' to force magento reinstall the newsletter module and run it's install scripts.
-----------------------------------------------
|code | version | data_version |
-----------------------------------------------
|newsletter_setup | 1.6.0.2 | 1.6.0.2 |
-----------------------------------------------
, and after that clear cache and open magentos page.
Follow below steps for above error.
Check version used at config.xml (newsletter module),is same as version used at core_resource.If it is same but problem is arise means that drop the newsletter_setup row at core resource and run the site and also confirm the "newsletter_subscriber" table is found at database.
Related
I just created a custom module to add a metatag in the head of a category page of our Magento site by making use of event and observer. When reloading the category page, below is the error I see. I re-ran the upgrade command but the error persists. This is being done to noindex and nofollow the page.
1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Perfectmakeupmirrors_PmmHead schema: current version - none, required version - 0.0.1
Perfectmakeupmirrors_PmmHead data: current version - none, required version - 0.0.1
Exception #0 (Magento\Framework\Exception\LocalizedException): Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated:
Perfectmakeupmirrors_PmmHead schema: current version - none, required version - 0.0.1
Perfectmakeupmirrors_PmmHead data: current version - none, required version - 0.0.1
<pre>#1 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:71]
#2 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#3 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/swissup/module-amp/Plugin/Framework/FrontController.php:48]
#4 Swissup\Amp\Plugin\Framework\FrontController->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#5 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#6 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#7 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#8 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#9 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]
#10 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:29]
</pre>
Assuming you have a backup of the database, try
DELETE FROM setup_module where module = "Perfectmakeupmirrors_PmmHead";
Then run bin/magento setup:upgrade
I am using magento 1.9 and today I just edited my local.xml in app/etc/local.xml. I just added some lines like:
<cache>
<backend><![CDATA[memcached]]></backend>
<fast_backend><![CDATA[memcached]]></fast_backend>
<slow_backend>database</slow_backend>
<fast_backend_options>
<servers>
<server>
<host>127.0.0.1</host>
<port>11211</port>
<persistent>1</persistent>
</server>
</servers>
</fast_backend_options>
<prefix><![CDATA[MAGE_]]></prefix>
</cache>
before i did that i backup my local.xml file . When i got a error i uploaded the backup. But it gives me the same error. Please tell me how to fix this.
Error image -
The file i got from error log record. Please tell me how to fix this problem.
a:4:{i:0;s:65:"dbModel read resource does not implement Zend_Db_Adapter_Abstract";i:1;s:1637:
"#0 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/includes/src/__default.php(32312): Varien_Data_Collection_Db->setConnection(false)
#1 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/includes/src/__default.php(24213): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#2 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/includes/src/__default.php(24245): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#3 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/app/Mage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#4 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/includes/src/__default.php(5882): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#5 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/includes/src/__default.php(5887): Mage_Core_Model_Abstract->getResourceCollection()
#6 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/includes/src/__default.php(21091): Mage_Core_Model_Abstract->getCollection()
#7 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/includes/src/__default.php(20949): Mage_Core_Model_App->_initStores()
#8 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/includes/src/__default.php(20832): Mage_Core_Model_App->_initCurrentStore('', 'store')
#9 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /var/zpanel/hostdata/zadmin/public_html/elawonen_nl/index.php(87): Mage::run('', 'store')
#11 {main}
";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}
Then, I deleted all the files in var/cache. Now, The first page of the website works fine but the product page aren't loading also the backend login page isn't loading. I don't understand what to do.
you can disable the compilation in magento and clear cache then work you store again
here is information in details :
There are two ways in which this can be done:
Via Magento admin
Navigate to System > Tools > Compilation page and click on Disable button
Navigate to System > Cache Management screen and use Flush Cache button.
Via SFTP, by editing the includes/config.php file
To disable compilation in Magento, edit includes/config.php. At around line 28, uncomment the first line and comment out the second:
#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');
Via SSH
php -f shell/compiler.php -- disable
php -f shell/compiler.php -- clear
Check the status:
# php -f shell/compiler.php -- state
Compiler Status: Disabled
Compilation State: Not Compiled
Collected Files Count: 0
Compiled Scopes Count: 0
Clear the cache:
rm -rf var/cache/* var/session/*
If you are a Create Hosting customer on the Magento Hosting Plan, feel free to submit a support ticket and we can take care of this issue for you.
I ran into a problem during an the initial install of magento. I believe it was during the creation of the database tables and it possible timed out.
I dropped all tables in the database and now when I go back to try and do the initial install 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: 179362663215
The error log is as follows:
[code]a:5:{i:0;s:213:"Error in file: "/home/mysite/beta.mysite.com/app/code/core/Mage/Directory/data/directory_setup/data-install-1.6.0.0.php" - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'AD' for key 'PRIMARY'";i:1;s:865:"#0 /home/mysite/beta.mysite.com/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home/mysite/beta.mysite.com/app/code/core/Mage/Core/Model/Resource/Setup.php(391): Mage_Core_Model_Resource_Setup->_modifyResourceDb('data-install', '', '1.6.0.2')
#2 /home/mysite/beta.mysite.com/app/code/core/Mage/Core/Model/Resource/Setup.php(289): Mage_Core_Model_Resource_Setup->_installData('1.6.0.2')
#3 /home/mysite/beta.mysite.com/app/code/core/Mage/Core/Model/Resource/Setup.php(269): Mage_Core_Model_Resource_Setup->applyDataUpdates()
#4 /home/mysite/beta.mysite.com/app/code/core/Mage/Core/Model/App.php(351): Mage_Core_Model_Resource_Setup::applyAllDataUpdates()
#5 /home/mysite/beta.mysite.com/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 /home/mysite/beta.mysite.com/index.php(87): Mage::run('', 'store')
#7 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}[/code]
Is there a way to "reset" the install?
Magento install error - Exception printing is disabled
Here is a known error which can occur when installing Magento:
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: XXXXXXXXXXXXXXX
Here is the solution:
1 Navigate to the "errors" folder.
2 Change local.xml.sample to local.xml
You should now see a new list of crazy errors all over the Magento page - this is okay.
3 Open magento/lib/Zend/Cache/Backend/File.php and look for:
protected $_options = array(
'cache_dir' => 'null',
Change it to:
protected $_options = array(
'cache_dir' => 'tmp/',
Save it.
4 Now the final step is to go create a tmp folder in the root Magento folder.
That's it.
After waiting a little bit it allowed me to restart the install process without changing anything
First, drop your database first.
Second, create new database for new magento installation.
Third, reinstall your magento.
The following error pointing to your database have duplicate entry in setup tables. When I started Magento, I always saw this error types.
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'AD' for key 'PRIMARY'";i:1;s:865:"#0 /home/mysite/beta.mysite.com/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
PS. If allow to go admin panel, clear cache first. Then, try it again.
Hope help
I am currently using Magento version 1.7.0.2_2. While installing it's showing following errors:
Exception printing is disabled by default for security reasons.
Error log record number: 1970080033
Error in file says:
a:5:{i:0;s:206:"Error in file:
"D:\websites\magento\app\code\core\Mage\SalesRule\sql\salesrule_setup\upgrade-1.6.0.0-1.6.0.1.php" - SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'period'"
;i:1;s:930:"
#0 D:\websites\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 D:\websites\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '1.6.0.0', '1.6.0.3')
#2 D:\websites\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('1.6.0.0', '1.6.0.3')
#3 D:\websites\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 D:\websites\magento\app\code\core\Mage\Core\Model\App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 D:\websites\magento\app\code\core\Mage\Core\Model\App.php(343): Mage_Core_Model_App->_initModules()
#6 D:\websites\magento\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#7 D:\websites\magento\index.php(87): Mage::run('', 'store')
#8 {main}"
;s:3:"url";s:9:"/magento/";s:11:"script_name";s:18:"/magento/index.php";s:4:"skin";s:7:"default";}
p.s.: however each time it shows a different error record number
You can enable printing errors by renaming file local.xml.sample to local.xml. file location magentoRootDirectory/errors/
Magento install error - Exception printing is disabled
Here is a known error which can occur when installing Magento:
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: XXXXXXXXXXXXXXX
Here is the solution:
Navigate to the "errors" folder.
Change local.xml.sample to local.xml
You should now see a new list of crazy errors all over the Magento page - this is okay.
Open magento/lib/Zend/Cache/Backend/File.php and look for:
protected $_options = array(
'cache_dir' => 'null',
Change it to:
protected $_options = array(
'cache_dir' => 'tmp/',
Save it.
Now the final step is to go create a tmp folder in the root Magento folder.
That's it.
i have cleared the magento cache, and it solved the problem ( i mean, in "var" folder, there are "cache" and "sessions", and i have deleted everything in those two folders. but at first backup of course).
Googled for about 5 secs:
http://blog.magestore.com/2012/07/13/magento-blog-how-to-fix-the-error-%E2%80%9Cinvalid-default-value-for-period%E2%80%9D/
SQL Error While Installing Magento 1.7.0.2 Without Sample Data
In my case, I changed the php execution time in php.ini file to 64000.
I tried upgrading my magento from 1.5 to 1.7 and my database is now not showing. I followed a simple process:
1) Replicate database
2) Create new folder with Magento 1.7 files
3) I altered one line in config.xml as follows:
SET NAMES utf8
to this
SET NAMES utf8; SET FOREIGN_KEY_CHECKS=0; SET UNIQUE_CHECKS=0;
I was following the suggestion of many others, in order to avoid getting Integrity Constraint violations during upgrade (which I had received on previous attempts).
4) I copied over extensions and themes from old installation to new installation
5) I ran the new Magento instance. I inserted database information for new database
6) I waited a very long time for magento to run database upgrades.
I came across two errors listed below. Error #1 disappeared after the first time:
a:5:{i:0;s:238:"Error in file: "/chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Customer/sql/customer_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php" - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0-1' for key 2";i:1;s:1196:"#0 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '1.4.0.0.14', '1.6.2.0.1')
#2 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('1.4.0.0.14', '1.6.2.0.1')
#3 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /chroot/home/africanb/dev.mydomain.com/html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#7 /chroot/home/africanb/dev.mydomain.com/html/index.php(87): Mage::run('', 'store')
#8 {main}";s:3:"url";s:36:"/index.php/install/wizard/installDb/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}
Error #2 I had to remedy:
a:5:{i:0;s:264:"Error in file: "/chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Reports/sql/reports_setup/upgrade-1.6.0.0-1.6.0.0.1.php" - SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'report_viewed_product_aggregated_daily' already exists";i:1;s:1188:"#0 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/Resource/Setup.php(437): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.7.10', '1.6.0.0.1')
#2 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/Resource/Setup.php(320): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.7.10', '1.6.0.0.1')
#3 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /chroot/home/africanb/dev.mydomain.com/html/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /chroot/home/africanb/dev.mydomain.com/html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#7 /chroot/home/africanb/dev.mydomain.com/html/index.php(87): Mage::run('', 'store')
#8 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}
In order to get passed error #2, i deleted three tables: report_viewed_product_aggregated_daily
report_viewed_product_aggregated_monthly
report_viewed_product_aggregated_yearly
Now, my dashboard is not showing. I basically have a blank page (below the Magento menu, and store chooser). I checked the error logs but could not find anything. I tried flushing cache and reindexing, but still no luck.
Any ideas what the problem might be?
Can you please check the file permissions of dashboard-head.html to verify the server can read it.
Also please enable template path hints for the back-end and report what you see for the dashboard. Information on how to enable can be
found here: http://magebase.com/magento-tutorials/quick-tip-template-hints-for-the-magento-admin-area/
And also for more to detail solution you can refer it LINK
let me know if i can help you more.