Thursday, May 18, 2017

[SOLVED] - Disable Merged CSS & JavaScript using phpMyAdmin in your Magento Installation

If your Magento site is malfunction because of enabling CSS & JavaScript merging and minification, then you can apply the solution explained in the following page: https://magento.stackexchange.com/questions/80765/how-do-i-disable-merged-css-and-js

Monday, May 15, 2017

[SOLVED] - Unable to find expected entry 'universe/source/Sources' in Release file (Wrong sources.list entry or malformed file)

Because of repeatedly getting the following error,
 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release  Unable to find expected entry 'universe/source/Sources' in Release file (Wrong sources.list entry or malformed file); I was unable to update my source list and thus unable to install softwares from the terminal. Finally, today I managed to solved this issue and also was able to update my apt source list.

1. Open your Unity Dash & type update & select 'Softwares & Updates' as shown in the image below:

Solve - Wrong sources.list entry or malformed file issue
Click image to enlarge
2. Click 'Download from' and choose 'Other'


3. Click 'Select Best Server'. Ubuntu will take some time to select the best server for you. Accept it.

4. Now try running the software update again. It should work.

5. If it does not go through steps 1-4 again. This time Ubuntu will (hopefully) select a different server as the 'Best server'. Try software update again.
THE KEY IS TO CHANGE THE DOWNLOAD SERVER FROM WHERE UBUNTU UPDATES ITSELF.

- With inputs from: https://askubuntu.com/questions/383644/how-to-solve-wrong-sources-list-entry-or-malformed-file/795941

Thursday, May 11, 2017

[SOLVED] - Web Setup Wizard/Component Manager Not Working - Magento 2

The first thing you need to do when you are unable to access your Component Manager page in your Magento 2x installation is to press F12, Click on Console & view the error message displayed there. Please look at the image below:

[SOLVED] - Web Setup Wizard/Component Manager Not Working - Magento 2
Click on image to enlarge
The message displayed in red are the error messages(s). With this error message in hand you will begin to get some idea about the direction you need to take to troubleshoot.

[SOLVED] - Web Setup Wizard/Component Manager Not Working - Magento 2
Click on image to enlarge
In my case, I copied the link that was causing the Error & tried to view it in the browser. When I did that I got new error messages generated as below:

Click on image to enlarge
This was the error I was getting precisely:

[RuntimeException]                                                                                                                                                                                                      
  Failed to execute git clone --mirror 'git@github.com:rusdragos/m2-weltpixel-backend.git' '/var/www/html/var/composer_home/cache/vcs/git-github.com-rusdragos-m2-weltpixel-backend.git/'  
                                                                                                                                                        

I checked the 'composer.json' file in the Magento root directory and found the above git command and simply removed it. & voila!, my problem got solved.

Wednesday, May 10, 2017

Carriage returns in PHP

Carriage return is "\r". Mind the double quotes!

If you want to put a line break in your text, while using PHP, and want to render it correctly in different operating system:
  • Mac: \r
  • Linux/Unix: \n
  • Windows: \r\n

Friday, May 5, 2017

Eclipse Lagging While Typing PHP Codes, Java Codes etc in Windows or Linux

If you are experiencing lag and delays while typing your codes in the Eclipse IDE the following simple change in your settings will resolve the issue.

1. Goto Windows
2. Goto Preferences
3. Then suppose you want to resolve the issue for PHP, select PHP
4. Under PHP >> Editor
5. Under PHP >> Editor >> Content Assist
6. Deselect the option 'Enable auto activation', or
7. You may increase the 'Auto activation delay'

Please refer image below if you are still unclear with the above steps:

Eclipse Lagging While Typing PHP Codes, Java Codes etc in Windows or Linux
 

Sunday, April 23, 2017

[SOLVED] - Connecting to Amazon EC2 Instance from Terminal in Ubuntu using SSH

This tutorial shows you how to connect to your Amazon EC2 Instance from your Ubunut's terminal/CLI by making use of SSH.

NOTE: if you have not installed a tool like OpenSSH in your Ubuntu system you may do so by checking out the following tutorial: http://linux-sys-adm.com/how-to-install-and-configure-ssh-on-ubuntu-server-14.04-lts-step-by-step/ or use a tool like PuTTY.

1. First down the EC2 Key Pair Private Key for your EC2 instance. To generate Key Pair, you may check the following tutorial: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html

2. Copy the Key pair (.pem) key to the location of your choice and make note of the location path. In my case, I created a folder called 'aws-keys' under my 'home' directory and placed the '.pem' file there.

3. Open your terminal & change the file/folder permission to 600 where you have stored your '.pem' key, else you will get an error as shown in the image below:

Click image to enlarge
NOTE: since you have changed 'file permission' to 600, you will have to use sudo.

 $ sudo chmod -R 600 aws-keys  

 4. Now enter the following commands to connect to your AWS EC2 Instance:

 sudo ssh -i file_name.pem ec2-user@<publicDNS>  

You can find your publicDNS in your EC2 Dashboard. Please refer image below:

Click image to enlarge
If login is successful you will see a message similar to the one show in the image below, depending upon your Amazon Machine Image (AMI).

Click image to enlarge

Top Magento Hosting:

Top 5 Posts (Weekly)

Lets Connect: