How to Solve Fatal error: Cannot redeclare class Mage_Contacts_IndexController?

Fatal error: Cannot redeclare class Mage_Contacts_IndexController in /home/n03mani/public_html/includes/src/Mage/Contacts/controllers/IndexController.php on line 131

You Go to –> System –> Tools –> Compilation
Click Disable

This is solve the Fatal Error Problem.

thanks.

How to improve magento site speed?

Go to Magento System –> Cache Management –>
Change Below type

Enable :
Configuration, Layouts, Blocks HTML output, Translations

Disable :
Collections Data, EAV types and attributes, Web Services Configuration

Then Change you httaccess file inside below code:

############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip

# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Don’t compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary

# enable resulting html compression
php_flag zlib.output_compression on

More Information below Site URL :

Boost the speed of your Magento

And Change your memory in .htaccess file inside :
php_value memory_limit 128M

And More Information here :

http://www.gxjansen.com/101-ways-to-speed-up-your-magento-e-commerce-website/

How can i Solve, After installtion Magento frontend showing 404 error page?

Hi guys,

1. You just Magento Administration Configuration Side.
2. There you can find “Use Web Server Rewrites”
3. The “Use Web Server Rewrites” set yes, you get this problem.
4. You change there value is no. This problem is solved.

that’s all. Now Magento front view is very good.

Magento Installation “Database Connection Error” when i use on 1and1.com Server?

Hi,

Just change your password first alpha and numeric only. This is happen me. If this also working you. Better that i feel.
And use database host correctly.

Then go htaccess, there you will change below code type.

############################################
## this line is specific for 1and1 hosting

#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

change above two below type :

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

And change

#RewriteBase /magento/

to

RewriteBase /magento/

this is working well.

Where Contact Form Source Code in Magento?

Hi,

Below Path is without recaptcha form page source code :
C:workfreelancerstanmagentoyour-themeappdesignfrontendyour-themeyour-themetemplatecontactsform.phtml

Withc Recptcha Form Page Source Code :
C:workfreelancerstanmagentoyour-themeappdesignfrontendyour-themeyour-themetemplatefontisrecaptchacontacts.phtml

Sometimes the path change to “base” theme inside. Example Below Path :

C:workyour-themeappdesignfrontendbasedefaulttemplatefontisrecaptchacontacts.phtml

here what you want change, that is work well.

How to View Single Product URL Product ID via in Magento?

Hi below code for single product url. When you pass the query string in your url. You can use below code for single product url. Or you can put product id also here working fine.
<?php
$_productCollection=$this->getLoadedProductCollection();
$_helper = $this->helper(‘catalog/output’);

//Jai Write Below Code for Product id via getting Product URL Start

//redirect to old Product
if(isset($_GET[‘product_id’])){
$product_id = $_GET[‘product_id’];

$cProduct = Mage::getModel(“catalog/product”);
$cProduct->load($product_id);
//echo $cProduct->getImageUrl().”<br />”;
$currentProductURL = $cProduct->getProductUrl();
//echo $currentProductURL.”<br />”;

echo “<script type=’text/javascript’ language=’javascript’>window. location='”.$currentProductURL.”‘;</script>”;

}
//Jai Write Below Code for Product id via getting Product URL Start
?>

I have small knowledge in magento. So, I more then 3 hours spent for this code getting. If anyone find this post. This is useful for you.

thanks.

How to Add Advanced Search in Magento?

First You go Admin Side.

1. Select your catalog ==> Manage Attributes ==> Edit Attributes
2. Then Frontend Properties Use in Advanced Search is YES or NO

now you can see the frontend advanced search tab.

And one more update you can use below link for categories added in advanced search.
http://www.magentocommerce.com/wiki/5_-_modules_and_development/search_and_advanced_search/how_to_add_search_by_category_to_advanced_search

that is all.

How to Solve Error in Magento – The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later?

“The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later”

You find above error. You Have two Problem.

1. First you check server Side. And ask him.

2. Next you check your root folder any “maintenance.flag” file is there. If you find that file. Kindly remove or rename. Your server will work good. This is when set your server maintenance mode. This file automatically create in root folder. Then this redirect all files in 503 error page in side.

How to View Magneto SKU Number in Cart & Page View?

1. You Want cart page to view the SKU number :
You can use below code in your : app/design/frontend/youtheme/yourtheme/template/checkout/cart.phtml
<?php echo $this->__(‘SKU Number’) ?>

And add item section this : app/design/frontend/youtheme/yourtheme/template/checkout/cart/item/default.phtml
<?php echo $_item->getSku() ?>

2. You want to view the Page View :

app/design/frontend/youtheme/yourtheme/template/catalog/product/view.phtml
<!– Write SKU –>
<?php echo $this->__(‘SKU Number :’); ?> <?php
$sku = Mage::getModel(‘catalog/product’)->load($_product->getId())->getSku();
echo $sku; ?>
<!– Sku End –>

its is working for my side.

How to View Order Status Comments History View?

Hi, this is one of very critical issue for me. I found one forum this solution.

That fourm url is below :
http://www.magentocommerce.com/boards/viewthread/20813/P75/

And I mentioned that code also. If they deleted that thread this is useful.

1. You this path : /app/code/core/Mage/Adminhtml/Block/Sales/Order/View/History.php

// For All Status View Purpose Below
public function getAllStatuses()
{
$statuses = $this->getOrder()->getConfig()->getStatuses();
return $statuses;
}
// For All Status View Purpose Above

I added this code after “public function getStatuses()” this function inside.

2. Next you go Here : /app/design/adminhtml/default/default/template/sales/order/view/history.phtml”

Find below Code :
<?php foreach ($this->getStatuses() as $_code=>$_label): ?>
<option value=”<?php echo $_code ?>”<?php if($_code==$this->getOrder()->getStatus()): ?> selected=”selected”<?php endif; ?> <?php echo $_label ?></option>
<?php endforeach; ?>

You feel Backup Above code take or Comment line.

And change Below Code :

<!– Write Below for Order Status –>
<?php foreach ($this->getAllStatuses() as $_code=>$_label): ?>
<option value=”<?php echo $_code ?>”<?php if($_code==$this->getOrder()->getStatus()): ?> selected=”selected”<?php endif; ?>><?php echo $_label ?></option>
<?php endforeach; ?>
<!– Write Above for Order Status –>

This is working for me. And check your side. And thanks this option giving that forum “thekanyon” also.

© 2020 Spirituality