mage

Why does Mage.exe not generate a compatibleFrameworks attribute?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 15:13:06
We are using Mage.exe to generate our application's manifests as part of our build process. Upon upgrading to .NET 4 we now find it generates an invalid manifest. The reason is there isn't a compatibleFrameworks attribute being set in the application manifest which we generate every build. Is there a way we can make Mage.exe add this element or should we only ever update existing manifests? Add this to your GenerateDeploymentManifest MSBuild task TargetFrameworkMoniker=".NETFramework,Version=v4.0" and that should fix it There is a separate copy of mage.exe built for .NET 4.0. Try using this

Mage registry key “_singleton/VladimirPopov_WebForms_Model_Observer” already exists

空扰寡人 提交于 2019-12-01 11:58:25
问题 I have uninstalled web from extension and installed it again since than I am getting this error while i try to open the admin. Front end is working fine.Please help 回答1: It is very important to clear the Compiler cache and after that turn it on in backend of Magento. Clear the cache: SSH: find ./var/cache -type f -delete FTP: mrm -r ./var/cache ; mkdir ./var/cache Disable/Clear Magento compilation SSH: php -f shell/compiler.php -- disable php -f shell/compiler.php -- clear FTP: mv ./includes

Mage registry key “_singleton/VladimirPopov_WebForms_Model_Observer” already exists

依然范特西╮ 提交于 2019-12-01 11:57:39
I have uninstalled web from extension and installed it again since than I am getting this error while i try to open the admin. Front end is working fine.Please help croman91 It is very important to clear the Compiler cache and after that turn it on in backend of Magento. Clear the cache: SSH: find ./var/cache -type f -delete FTP: mrm -r ./var/cache ; mkdir ./var/cache Disable/Clear Magento compilation SSH: php -f shell/compiler.php -- disable php -f shell/compiler.php -- clear FTP: mv ./includes ./includes.unused Ok, so Debug. Go to app/Mage.php. Find register function add in if ($key == '

Magento: Fatal error: Call to a member function getModelInstance() on a non-object in app\\Mage.php on line 432

雨燕双飞 提交于 2019-11-29 13:50:43
I want to call a PHP file using ajax where in that PHP i will place order by the ajax call. But it throws error while i am using app/Mage.php from that file require_once '../../../../../../../../../../app/Mage.php'; $customer = Mage::getModel('customer/customer'); then it says Fatal error: Call to a member function getModelInstance() on a non-object in app\Mage.php on line 432 Can anyone please help me??? Your proposed solution is not optimal. You have not initialized Magento so module XML is not loaded yet and the factory pattern does not work. Simply use either: Mage::init(); // 1.5+ or Mage

Display magento products by category ID

无人久伴 提交于 2019-11-29 02:45:41
I need to know how can I display products in a page like (cart, below total) only few products by ID. Eg: products with id 2,3,4 and 5. <div class="freeProducts voucher code"> <?php $categoryid = 64; $category = new Mage_Catalog_Model_Category(); $category->load($categoryid); $collection = $category->getProductCollection(); $collection->addAttributeToSelect('*'); foreach ($collection as $_product) { ?> <a href="<?php echo $_product->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(200); ?>" width="200" height="200" alt="" /></a> <a

Magento: Fatal error: Call to a member function getModelInstance() on a non-object in app\Mage.php on line 432

我怕爱的太早我们不能终老 提交于 2019-11-28 07:37:57
问题 I want to call a PHP file using ajax where in that PHP i will place order by the ajax call. But it throws error while i am using app/Mage.php from that file require_once '../../../../../../../../../../app/Mage.php'; $customer = Mage::getModel('customer/customer'); then it says Fatal error: Call to a member function getModelInstance() on a non-object in app\Mage.php on line 432 Can anyone please help me??? 回答1: Your proposed solution is not optimal. You have not initialized Magento so module

Display magento products by category ID

送分小仙女□ 提交于 2019-11-27 17:02:28
问题 I need to know how can I display products in a page like (cart, below total) only few products by ID. Eg: products with id 2,3,4 and 5. <div class="freeProducts voucher code"> <?php $categoryid = 64; $category = new Mage_Catalog_Model_Category(); $category->load($categoryid); $collection = $category->getProductCollection(); $collection->addAttributeToSelect('*'); foreach ($collection as $_product) { ?> <a href="<?php echo $_product->getProductUrl() ?>"><img src="<?php echo $this->helper(

Custom icon for ClickOnce application in 'Add or Remove Programs'

好久不见. 提交于 2019-11-27 09:04:30
A ClickOnce application created using Mage is not showing the icon that was specified in for the Mage command-line parameter in control panel Add or Remove Programs . I read some blogs, like: Application icon is not displayed in Add/Remove Programs dialog Missing Icon in Add/Remove Programs for ClickOnce Application How can I achieve this without editing registry keys? Is it possible? There's no way to do this without editing the registry, but you can do it programmatically. You have to be sure the icon is included in the deployment. We set our assembly description to the same string as our

Resign Clickonce manifest using mage.exe

半世苍凉 提交于 2019-11-27 03:33:30
问题 Simple scenario. Visual studio generates and signs things as part of the publish process. I then go to the MyApp.dll.config.deploy file and update some settings. Now when I try to install the application the clickonce installer says the MyApp.dll.config has a different computed hash than specified in manifest. So I tried mage.exe -sign MyApplicationManifest -certfile ... -password ... which results in MyApp.vsto successfully signed But I still receive the computed hash error. Am I missing a