Posts

Magento – Newsletter's emails stuck in Queue

Image
If you are scratching your head to figure out why not Magento sending newsletter email. Here we got the same problem. You can check on Problem with Solution. Problem We installed newsletter pop up extension which was working fine. But after some days we saw newsletter emails are not working. We tried many solutions, Check Magento newsletter setting and also check cronjob code. But no luck. Then we have tried to uninstall recently installed extensions on the server then we found MailChimp and Newsletter POP extension are conflicting with each other. If you have a facing same problem then you can apply the following solution 1. First, check cronjob properly set or not. sudo crontab -e */5 * * * * /path/to/php -f /path/to/cron.php  2. This solution we found on ebizmarts forum. Comment out line 118 of app/code/community/Ebizmarts/MailChimp/Model/Observer.php //$subscriber->setImportMode(true); //commented out to enable Magento to send emails In app/code/communit

Free AWS EC2 Ubuntu Instance Website setup

Image
Amazon Web Service is a cloud platform which given us to create free hosting in both platform like Windows and Linux. Here we are working on Ubuntu setup. Where we will install Apache2, PHP and MySQL. 1. First you have to create new account in AWS. If you have existing account then no need to create. 2. After login you have to select EC2 option then you enter EC2 Dashboard. 3. Click Launch Instance 4. Select Free tier Eligible Ubuntu option. 5. Add New Volume EBS. 6. Add New Tag. 7. Add Security Group.   Type : SSH   Protocol: TCP   Port : 22   Source : Anywhere   Type : HTTP   Protocol : TCP   Port : 80   Source : Anywhere 8. Review and Launch 9. Create a New Pair Key. Download Key. 10. Using Puttygen.exe software create public and private key. 11. Login SSH using putty.exe Now we are ready to install Apache2, PHP, MySQL. Command 1 ( Update Ubuntu server ) sudo apt-get update sudo apt-get dist-upgrade Command 2 ( Install apache2 server ) sud

Login SSH using Putty.exe

Image
Login SSH using Putty.exe Putty is an SSH and Telnet client software, developed by Simon Tatham for the Windows platform. Putty is open source software Follow below steps which can help you to login SSH using putty. 1. Download Putty.exe 2. Enter IP. 3. Select PPK file path provide by your hosting provider or if you are using AWS then you will get ppk file from there also.

How to clear the cache of client browsers?

Image
Hello friends today we will learn how to clear the cache client browsers. This technique is very simple. Just add a version parameter to the URL string which is either a random string or a random number. If you change your sites CSS and upload on the server you will get old result only. For solve this problem, simply add ?ver=1.1 to the CSS import at the head of the file. So the browser teat as a different file. Example: <link href="css/style.css" rel="stylesheet" type="text/css" /> Becomes <link href="css/style.css?ver=1.1" rel="stylesheet" type="text/css" /> Same you can apply for JavaScript files.

How to send emails using PHPmailer and GMAIL SMTP

Image
Here I have tried how to send PHPMailer with attachement using SMTP configuration. For SMTP Configuration we here used GMAIL Auth. You can used any Auth like SMTP2GO , SendGrid . Download PHPMailer library. PHPMailer Sample Code Addd or Copy paste the following code in your editor and save with any filename with extension ".php" and try in your live server or local server. But Make sure you have to connect with internet with proper Auth details <?php require_once('phpmailer/PHPMailerAutoload.php'); $mail = new PHPMailer(); $mail->CharSet = "utf-8"; $mail->IsSMTP(); // Set mailer to use SMTP $mail->SMTPDebug = 1; // Enable verbose debug output $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = "xxx@example.com"; //Your Auth Email ID $mail->Password = "xxxxxx"; //Your Password $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Host = "

How to use SytaxHighlighter code with Blogger

# Add Sytax Highlighter to your Blogger Code Samples After trying many solutions to implement syntax highlighting on Blogger, I came across [Alex Gorbatchev's](http://alexgorbatchev.com/SyntaxHighlighter/) Javascript plugin. Implementing it is very easy, however, I couldn't get it to work on secure (https) URLs. Add the below code in your `head` tag. http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCpp.js http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCSharp.js http://alexgorbatchev.com/pub/sh/current/scripts/shBrushCss.js http://alexgorbatchev.com/pub/sh/current/scripts/shBrushDiff.js http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJavaFX.js http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js http://alexgorbatchev.com/pub/sh/current/scripts/shB

Select active menu using jquery

Most of the developer has an issue to select active menu in the same header. So here we try with the following example. May be this example will help you, If you have any doubt or question you can comment us. We will reply you ASAP. Home About us Contact us >/li> Suppos here we click on Home menu. Then home li should be selected. My URL is : http://www.example.com/home Output : Home About us Contact us >/li>