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 :
http://inchoo.net/ecommerce/magento/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 to Custome Wp Page Reading Query getting?

Below code for sameple custome page reading query.
Post Thumbnail URL Finding :

<?php //$mini_tennis_rewards_thumb = get_the_post_thumbnail($mini_tennis_rewards_data->ID, array(63,63));
$mini_tennis_rewards_thumb_src = wp_get_attachment_image_src( get_post_thumbnail_id( $mini_tennis_rewards_data->ID ), “thumbnail” );
?>

<a href=”<?php echo get_permalink($mini_tennis_rewards_data->ID); ?>”><img src=”<?php echo $mini_tennis_rewards_thumb_src[0]; ?>” /><span><?php echo $mini_tennis_rewards_data->post_title; ?></span></a>

<?php
$page_name = array(134,4778,4780,4782,4784,4786);

$privateCoaching_data = get_page($page_name[0]);
$proVideos_data = get_page($page_name[1]);
$calendar_data = get_page($page_name[2]);
$tipsOfTheWeek_data = get_page($page_name[3]);
$juniorPathway_data = get_page($page_name[4]);
$adultPathway_data = get_page($page_name[5]);
?>
<h1><a href=”<?php echo get_permalink($privateCoaching_data->ID); ?>”>Private Lessons</a></h1>

<img src=”<?php bloginfo( ‘stylesheet_directory’ ); ?>/images/privateLessons.jpg” />
<a href=”<?php echo get_permalink($privateCoaching_data->ID); ?>”><img src=”<?php bloginfo( ‘stylesheet_directory’ ); ?>/images/read-more.jpg” border=”0″ /></a>
<?php
//$privateCoaching_data_content = apply_filters(‘the_excerpt’, $privateCoaching_data->post_excerpt); // Get Content and retain WordPress filters such as paragraph tags. Origin from: http://wordpress.org/support/topic/get_pagepost-and-no-paragraphs-problem
//echo $privateCoaching_data_content;
echo $privateCoaching_data->post_excerpt;
?>

<!– Below line showes the post image –>

<?php echo get_the_post_thumbnail($mini_tennis_rewards_data->ID, ‘full’); ?>

This is line shows only for Image URL :

$thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "size" );

this is useful for custom post reader or page reader purpose.

Jquiry : How To Fix the “$ is not a function” Error Using noConflict

Just you can create new variable, that is solved for that problem.

Examples :
$  to var $jq, Then you can use $jq all $ place.

More details you can find below url. I found this url useful for all.

http://zenverse.net/jquery-how-to-fix-the-is-not-a-function-error-using-noconflict/

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 Get Particular Category Title in you WP?

You Just Write Below Code for you Category Title purpose.

<?php
$cat_id = ’11’;
echo get_cat_name( $cat_id );
?>

this is showing the category title in your particular post category title.

How to Get Custome Filed in Query String Via in WP?

You Just write below code, your query loop inside :

<?php echo get_post_meta($post->ID, “field_name”, true); ?>

Before you add Custome field name and set Field Name Value also in post.

that is all.

How to Select Radio Button in javascript Via?

Hi Below code radio button selection sample script.
<script language=”javascript” type=”text/javascript”>
// For Radion Button Selected option

document.getElementById(‘sample’).checked = true;
if(document.getElementById(‘sample’).checked == true){
document.getElementById(‘sample’).style.display = ‘block’;
document.getElementById(‘sample’).disabled = false;
document.getElementById(‘sample’).disabled = false;
document.getElementById(‘sample’).disabled = false;
document.getElementById(‘sample’).disabled = false;
document.getElementById(‘sample’).disabled = false;
}
</script>

the above code is useful for yours more place. Enjoy its for very useful sometime in dynamic javascript section also. This is one of the small Javascript Via Radio Button Selection Sample.

© 2020 Spirituality