Thursday 23 June 2011

Startup errors in Dreamweaver : The following translators were not loaded due to errors

This post is for Dreamweaver 8 version


Having followed the procedures in updating dreamweaver (as mentioned in said article), Dreamweaver did startup successfully but this time errors kept popping:

The following translators were not loaded due to errors:
ASP.htm: has configuration information that is invalid.
ASP.NET.htm: has configuration information that is invalid.
ColdFusion.htm: has configuration information that is invalid.
PHP_MySQL.htm: has configuration information that is invalid.
JSP.htm: has configuration information that is invalid.
XSLT.htm: has configuration information that is invalid.

Here is the solution


Delete FileCache.dat files from the Dreamweaver user configuration folder.
Delete the WinFileCache-7A9586CB.dat, MacFileCache-BFE7CE2E.dat, or FileCache.dat file from the Dreamweaver user configuration folder. It is recommended to delete the FileCache.dat file if you are experiencing a JavaScript error related to "dwscripts" or if you are receiving a "translators were not loaded" error message. The string of characters after "FileCache-" may differ on your machine. The location of the FileCache.dat file depends your operating system and your version of Dreamweaver. Note that on Windows, the Application Data and AppData folders are hidden by default, so verify that your Windows Explorer folder options are set to View Hidden Folders.

Dreamweaver CS3 on Windows Vista:
C:\Users\
[username]\AppData\Roaming\Adobe\Dreamweaver 9\Configuration

Dreamweaver CS3 on Windows XP:
C:\Documents and Settings\
[username]\Application Data\Adobe\Dreamweaver 9\Configuration

Dreamweaver 8 on Windows XP:
C:\Documents and Settings\
[username]\Application Data\Macromedia\Dreamweaver 8\Configuration

Dreamweaver 8 on Windows Vista:
C:\Users\
[username]\AppData\Roaming\Macromedia\Dreamweaver 8\Configuration

Dreamweaver CS3 on Macintosh:
Mac HD/Users/
[user]/Library/Application Support/Adobe/Dreamweaver 9/

Dreamweaver 8 on Macintosh:
Mac HD/Users/
[user]/Library/Application Support/Macromedia/Dreamweaver 8/

Wednesday 15 June 2011

One or more of the Cache Types are invalidated: Blocks HTML output

In Magento 1.5 displaying message to pop on every product save.

If you go to system -> Cache management -> (Invalid )option


Here is the solution  ....

Add this in your module config.xml:


<global>
<models>
<catalogrule>
    <rewrite>
        <rule>Yourpackage_Yourmodule_Model_Rule</rule>
    </rewrite>
</catalogrule>
</models>

Create file called Rule.php in YOUR module Model directory.

Add this code in newly created file:




class Yourpackage_Yourmodule_Model_Rule extends Mage_CatalogRule_Model_Rule
{
   /**
     * Apply all price rules to product
     *
     * @param int|Mage_Catalog_Model_Product $product
     * @return Mage_CatalogRule_Model_Rule
     */
    public function applyAllRulesToProduct($product)
    {
        $this->_getResource()->applyAllRulesForDateRange(NULL, NULL, $product);
        $this->_invalidateCache();
        //Notice this little line
    Mage::app()->getCacheInstance()->cleanType('block_html');
        $indexProcess = Mage::getSingleton('index/indexer')->getProcessByCode('catalog_product_price');
        if ($indexProcess) {
            $indexProcess->reindexAll();
        }
    }
}


Thursday 9 June 2011

Date of Birth (DOB) Issue on registration form for Magento version 1.5.0.1

There was some error in Magento version 1.5.0.1 -

parseInt accepts a prefix to specify the radius, validation is now crippled.

I changed line 437 in /js/varien/js.js

From:


var error falseday parseInt(this.day.value) || 0month parseInt(this.month.value) || 0year parseInt(this.year.value) || 0;

Replace:

var error falseday parseInt(this.day.value10) || 0month parseInt(this.month.value10) || 0year parseInt(this.year.value10) || 0;

Friday 3 June 2011

Entity attribute option collection order

$_options = Mage::getResourceModel('eav/entity_attribute_option_collection')
  ->setStoreFilter(0)
  ->setAttributeFilter($attribute_id)
  ->setPositionOrder('asc')
  ->load();

Tuesday 10 May 2011

Show Date of Birth in Registration form in Magento

By default there is any option to Show Date of Birth in Registration form

Go to:

System --> Configuration --> Customer Configuration (Left Tab) --> Select Name‌ and‌ Address‌ Options --> Enable Show Date of Birth field.

Thursday 5 May 2011

To regenerate urls in magento

Sometimes when you make changes to your products, or enable a certain extension, Magento might start to rewrite all your URLs to include a suffix "-1" or some other number. Within the URL Rewrites, Magento differentiates between System URLs and Custom URLs. If the System URLs are broken like this, you should not fix this by adding new Custom URLs.

Instead, open up phpMyAdmin, create a backup of your Magento database,
and flush the Magento table core_url_rewrite (so that it becomes totally empty).

Immediately afterwards,

Refresh the Catalog Url Rewrites under Index Management.
This will regenerate all System URLs

To delete any specific order in magento

SQL query:

set @increment_id='200000111';
select @order_id:=entity_id from prefix_sales_order_entity where increment_id=@increment_id;
delete from prefix_sales_order_entity where entity_id=@order_id or parent_id=@order_id;
delete from prefix_sales_order where increment_id=@increment_id

Disable Messages Notification popup

While logging into your Magento Admin Panel, you get a rigid Messages Notification popup, 

Just goto:
 
System > Configuration > Advanced > Advanced > and   disable Mage_Admin Notification