December 1, 2016

Magento Redirection to Old Site [FIX]

Recently, we had to setup a staging site for one of our customers. He runs one of the most popular online pharmacies in New Zealand. Here are some of the solutions we tried for the redirection problem. This is where Magento continues to redirect the website to the old URL. When you see this happening, try the following solutions.

1) Update base URL and secure base URL in the core_config_data table

2) TRUNCATE core_session table

3) Run the following Query in PHPMyAdmin

SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;

 

4) Clear /var/cache/* and /var/session/* folders

5) Clear your Browser Cache/Cookies

6) CHMOD 777 the var directory to avoid having the system write in /tmp folder of your Server

7) Check your .htaccess file and make sure the URL there is changed especially if you have installed Magento in sub-folders

8) Make sure you clear APC cache

9) Make sure you have turned off Magento Compilation before backing up database and files

10) If you have set up sessions to be stored in database, you need to clear core

DELETE FROM core_session WHERE session_expires < UNIX_TIMESTAMP()

 

If all else fails, pray to God that you would find the right solution

November 23, 2016

“Yea” and “Amen”

What God says…He WILL do! How, When, What, and Where are things we would love to know but God doesn’t work that way. He doesn’t tell us these things. I am not sure why He does that. Maybe He wants to help us exercise our faith in Him? There are times when I feel frustrated and anxious to know these things beforehand. But I hear Him saying, “Son, My timing is impeccable”. I can say ‘Amen’ to that.

There are many promises God made in the past which He has fulfilled at just the ‘right’ time in my life. He was never too late and never too early. He is a God of perfection; just look around at the untouched parts at His creation. The heavens declare the glory of God; the skies proclaim the work of his hands (Psalm 19:1).

10960198_10206084374332470_1913749449891162607_o
October 20, 2016

Biker for Life

Happiness is seeing little kids expression when they see your bright red motorbike roaring past them. Their cute little eyes sparkle and they smile at you. They think of you like a superman. What you would experience in moments like these is one of the purest, innocent, and impartial forms of expression.

Their smile has the power to enter the hearts of many. It’s contagious, and it lights up the whole world. Their expression makes everything seem so alive. They make my day. So one of my favourite times to ride is when the school bell goes off and its time for kids to go home.

Older Posts