I'm Using Mangento Version : 1.7.0.2
When i tried to install with the sample data which magneto, it gives me the following error. Does any have faced similar kind of an issue.
Error in file: "C:\xampp\htdocs\magento\app\code\core\Mage\Sales\sql\sales_setup
\mysql4-upgrade-0.9.16-0.9.17.php" - Can't retrieve entity config:
sales/quote_shipping_rate
Trace:
#0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(645):
Mage::exception('Mage_Core', 'Error in file: ...')
#1 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(437):
Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.9.16', '1.6.0.7')
#2 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(320):
Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.9.16', '1.6.0.7')
#3 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Resource\Setup.php(235):
Mage_Core_Model_Resource_Setup->applyUpdates()
#4 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\App.php(417):
Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\App.php(343):
Mage_Core_Model_App->_initModules()
#6 C:\xampp\htdocs\magento\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#7 C:\xampp\htdocs\magento\index.php(87): Mage::run('', 'store')
#8 {main}
I have found the answer for this problem. The Magento version which i was using was 1.7.0.2 and sample data used was magento-sample-data.1.1.2.zip which was not compatible with this version, hence i changed sample data to 1.6.1.zip.
After using this i could able to install the magento.
My issue was i did not update /app/etc/config.xml with the new file and it was lacking info on the core resource model. Make sure the config.xml fiel is the one that comes with the new version of magento.
Related
I'm upgrading Laravel from 5.2 to 5.3
I followed the steps mentioned here:
https://laravel.com/docs/5.3/upgrade#upgrade-5.3.0
When I tried to to do composer update I kept getting:
[2021-04-12 06:15:52] build.ERROR: exception 'Illuminate\Contracts\Container\BindingResolutionException' with message 'Target [Illuminate\Contracts\Auth\Access\Gate] is not instantiable.' in XXXXXXXXXXXX/admin/vendor/laravel/framework/src/Illuminate/Container/Container.php:763
#0 /Users/ahmad/Projects/admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(644): Illuminate\Container\Container->build('Illuminate\\Cont...', Array)
#1 /Users/ahmad/Projects/admin/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\Container\Container->make('Illuminate\\Cont...', Array)
#2 /Users/ahmad/Projects/admin/vendor/laravel/framework/src/Illuminate/Container/Container.php(1203): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#3 /Users/ahmad/Projects/admin/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(175): Illuminate\Container\Container->offsetGet('Illuminate\\Cont...')
#4 /Users/ahmad/Projects/admin/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(144): Illuminate\Support\Facades\Facade::resolveFacadeInstance('Illuminate\\Cont...')
#5 /Users/ahmad/Projects/admin/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(231): Illuminate\Support\Facades\Facade::getFacadeRoot()
#6 /Users/ahmad/Projects/admin/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php(25): Illuminate\Support\Facades\Facade::__callStatic('policy', Array)
#7 /Users/ahmad/Projects/admin/vendor/laravel/framework/src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php(25): Illuminate\Support\Facades\Gate::policy('XXXXXX\\Model', 'XXXXXXX\\Polic...')
#8 /Users/ahmad/Projects/admin/app/Providers/AuthServiceProvider.php(26): Illuminate\Foundation\Support\Providers\AuthServiceProvider->registerPolicies()
#9 [internal function]: XXXXXX\Providers\AuthServiceProvider->boot()
I added the Gate to my providers array, and tried clearing the bootstrap cache folder and delete the vendor, and reinstall everything in the composer.json
Any advises?
When you upgrade from an older version of Laravel, it may contain some old files or code which are not needed. In my case, I needed to update config/app.php file as per the latest code and it fixed the error.
I'm upgrading from ZF2 to ZF3 and this goes quite well so far except the following issue when I want to load my application:
ERROR Zend\View\Renderer\PhpRenderer::render: Unable to render template "error"; resolver could not resolve to a file
#0 /home/myproject/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render()
#1 /home/myproject/vendor/zendframework/zend-view/src/View.php(236): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#2 /home/myproject/vendor/zendframework/zend-view/src/View.php(200): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#3 /home/myproject/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#4 /home/myproject/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#5 /home/myproject/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#6 /home/myproject/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(123): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#7 /home/myproject/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#8 /home/myproject/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#9 /home/myproject/vendor/zendframework/zend-mvc/src/Application.php(367): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#10 /home/myproject/vendor/zendframework/zend-mvc/src/Application.php(326): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#11 /home/myproject/public/index.php(52): Zend\Mvc\Application->run()
#12 {main}
I thought the issue was I didn't had Zend\View loaded in my modules but it did load using composer autoload, when I add it again to my modules I get that it cannot be initilized, this might be because it already has.
Back to my issue, getConfig() is changed like described here:
https://docs.zendframework.com/tutorials/migration/to-v3/application/
As I have ofcourse looked around and even the only topic here didn't help me so far.
Error: [Cake\View\Exception\MissingTemplateException] Template file "Error\error500.ctp" is missing. #0 C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\View\View.php(588): Cake\View\View->_getViewFileName('Error\error500') #1 C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(366): Cake\View\View->render('error500', 'error') #2 C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(333): Cake\Error\ExceptionRenderer->_outputMessageSafe('error500') #3 C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(336): Cake\Error\ExceptionRenderer->_outputMessage('error500') #4 C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(194): Cake\Error\ExceptionRenderer->_outputMessage('error') #5 C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\Error\ErrorHandler.php(144): Cake\Error\ExceptionRenderer->render() #6 C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\Error\BaseErrorHandler.php(180): Cake\Error\ErrorHandler->_displayException(Object(Cake\Error\PHP7ErrorException)) #7 C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\Error\BaseErrorHandler.php(164): Cake\Error\BaseErrorHandler->handleException(Object(Cake\Error\PHP7ErrorException)) #8 [internal function]: Cake\Error\BaseErrorHandler->wrapAndHandleException(Object(Cake\Error\PHP7ErrorException)) #9 {main}
File C:\xampp\htdocs\mmdb11\vendor\cakephp\cakephp\src\Error\ErrorHandler.php
Line: 156
Those versions are not compatible. You could update to CakePHP 2.9.1 (or any other version in 2.x branch). CakePHP 3 uses namspaces, and a lot of code has changed.
basicly You would have to rewrite Your application to use CakePHP 3.3
I've upgraded latest Magento EE version 1.14.2.2. When I proceed to checkout, last step I press button Place Order, it redirects to cart page. Here's log exception:
exception 'Exception' with message 'Quote totals must be collected before this operation.' in /home/beadahol/public_html/app/code/core/Mage/Sales/Model/Quote.php:1861
Stack trace:
#0 /home/Project/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(326): Mage_Sales_Model_Quote->prepareRecurringPaymentProfiles()
#1 /home/Project/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(223): Mage_Sales_Model_Service_Quote->_submitRecurringPaymentProfiles()
#2 /home/Project/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(238): Mage_Sales_Model_Service_Quote->submitNominalItems()
#3 /home/Project/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(812): Mage_Sales_Model_Service_Quote->submitAll()
#4 /home/Project/public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(583): Mage_Checkout_Model_Type_Onepage->saveOrder()
#5 /home/Project/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Checkout_OnepageController->saveOrderAction()
#6 /home/Project/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#7 /home/Project/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /home/Project/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#9 /home/Project/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /home/Project/public_html/index.php(83): Mage::run('', 'store')
#11 {main}
I don't modify or overwrite file Quote.php. This error only occurred web server, on local still works well.
Based on research internet in this link they show ' the problem was finally solved by the switch to SuPHP (PHP handler)'. (My server configure Apache to run PHP as FastCGI)
Does anyone have a same issue on Magento 1.14.2.2? Please give me the solution to result this issue.
I faced a similar issue. What worked for me was i went to the database << table 'core_config_data' and changed the values for path 'design/email/header' and 'design/email/footer' from '2' to '0'.
Worked for me !!
I'm running Magento 1.5.1 (which I am using because it is the latest version that works with Lightspeed POS) with a custom theme that I created. I am running the Lightspeed POS Connector and I have manually installed the Virtual Merchant add-on. My server is share hosted by hostmonster.
When I try to checkout I get an alert with the error Method "" is not defined in "".
Firebug gives me the following:
POST https://odd-style.com/magento/index.php/checkout/onepage/saveOrder/ 200 OK
{"success":false,"error":true,"error_messages":"Method \"\" is not defined in \"\""}
My magento exception log give me:
2012-06-06T01:20:46+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Method "" is not defined in ""' in /home4/oddnycco/public_html/magento/app/Mage.php:550
Stack trace:
#0 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(1274): Mage::throwException('Method "" is no...')
#1 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(1253): Mage_Core_Model_App->_callObserverMethod(false, '', Object(Varien_Event_Observer))
#2 /home4/oddnycco/public_html/magento/app/Mage.php(416): Mage_Core_Model_App->dispatchEvent('checkout_type_o...', Array)
#3 /home4/oddnycco/public_html/magento/app/code/core/Mage/Sales/Model/Service/Quote.php(180): Mage::dispatchEvent('checkout_type_o...', Array)
#4 /home4/oddnycco/public_html/magento/app/code/core/Mage/Sales/Model/Service/Quote.php(238): Mage_Sales_Model_Service_Quote->submitOrder()
#5 /home4/oddnycco/public_html/magento/app/code/core/Mage/Checkout/Model/Type/Onepage.php(742): Mage_Sales_Model_Service_Quote->submitAll()
#6 /home4/oddnycco/public_html/magento/app/code/core/Mage/Checkout/controllers/OnepageController.php(499): Mage_Checkout_Model_Type_Onepage->saveOrder()
#7 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Checkout_OnepageController->saveOrderAction()
#8 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#9 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /home4/oddnycco/public_html/magento/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home4/oddnycco/public_html/magento/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#12 /home4/oddnycco/public_html/magento/index.php(80): Mage::run('', 'store')
#13 {main}
I have so far tried every type of cache clearing in the book. I've increased the size of my php memory limit to 256MB. I've looked at all the files referenced in the stack trace and all I can tell is that both $method and $object are because passed as "". I don't really understand why and I don't have any more ideas on how to fix it. :/
Thanks in advance for anyone's help!
Seems as if you have an event observer defined somewhere in your Magento installation (I suppose in one of the 3rd-party-modules).
From my point of view it looks like there is an empty method registered for the event.
Check the config.xml's of your modules for an observer that is listening on the event 'checkout_type_onepage_save_order' (you can easily grep your app/code/community and app/code/local folder for this string). Try disabling the module (via app/etc/modules/Module_Name.xml) and then try to checkout again.