dhavalp

Problem with remote server

When i open “Remmina remote desktop client” and connect with credential it gave error “Uable to connect to RDP server”. This is something like host file permission issue. To solve this issue run code given below in ubuntu terminal: Code:¬†echo "" > ~/.freerdp/known_hosts This solve the host permission issue.Read more …
Herry

Broken Images issue in browser

When not get any images from Db or Folder then display broken images in page. if we not display that broken images on page then use below code…. <img src=“someimage.jpg” onerror=“this.style.display=‘none’;“ />Read more …
dhavalp

Fatal Error on plugin installation

I got the error “Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 49152 bytes) in /home/wellington/public_html/dev/wp-admin/includes/file.php on line 357” when installing plugin in wordpress. By default, WordPress automatically tries to increase PHP memory limit if it is less than 64MB. However, 64MB is often not high...Read more …
keithg

add new attribute value to product query in magento

We have taken sale attribute to product general tab. $_productCollection = Mage::getResourceModel(‘catalog/product_collection’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘sale’, array(‘eq’ => ‘1’)) ->addMinimalPrice() ->addUrlRewrite() ->addTaxPercents() ->addStoreFilter() ->addFieldToFilter(‘visibility’, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH) ->addFieldToFilter(‘status’, Mage_Catalog_Model_Product_Status::STATUS_ENABLED);     Today s special price query $todayDate = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT); $_productCollection = Mage::getResourceModel(‘catalog/product_collection’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘special_price’, array(‘neq’=>”)) ->addAttributeToFilter(‘special_from_date’, array(‘date’ => true, ‘to’ => $todayDate)) ->addAttributeToFilter(‘special_to_date’, array(‘or’=>...Read more …
keithg

Add india timezone in magento

you have to set your timezone manually first go to app/etc/config.xml add your time zone here <general> <locale> <code>en_US</code> <timezone>Asia/Calcutta</timezone> </locale> </general> second go to app/Mage.php on line 768 change this line too date_default_timezone_set(‘UTC’); to your timezone date_default_timezone_set(‘Asia/Calcutta’); ================================================================================= To check Time zone Mage::getModel(‘core/date’)->gmtDate(‘Y-m-d H:i:s’)Read more …