Wednesday, October 28, 2015

Fatal error: Call to a member function getActionName() on a non-object in /my_path/htdocs/app/code/core/Mage/Core/Controller/Varien/Action.php on line 200

The error was generated while I was tryting to run an action from my custom controller. My custom controller exteneded the Mage_Adminhtml_Controller_Action controller.

It was working fine until I have added a default constructor to my controller:

function __construct()
{

$this->mHelper = Mage::helper("myextension/data");
}

After this, I was getting the error I mentioned earlier. After checking the definition of class defined in Core/Controller/Varien/Action.php, I have realized that it's parametrized constructor was never being called, and that caused my error later on at runtime.

I have removed my default constructor, and things went back to normal.
Hope this tip helps someone.

Sunday, October 25, 2015

Recently, I have run into problems with Internet Connection in my Ubuntu 14 hosted in VirtualBox. The Internet Connection worked well in NAT mode, but not in Bridged Adapter mode. After some checking, I had seen that wrong network card is being used in VirtualBox Network Preferences.
After change to proper network card and an Ubuntu reboot, network was back up!

After not being able to login to my Unity Desktop in Ubuntu 14.04.1, I have tried a lot of possible fixes for "Ubuntu Login Loop" problem. None of them helped.

My /var/log/lightdm/x-0-greeter.log contains a single warning entry: ** (lightdm-gtk-greeter:2580): WARNING **: Failed to load user image: Failed to open file '/home/gate/.face': No such file or directory(Where gate is username)After awhile, I have found this to be a potential bug:

https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1248948

The end solution I have used:
Created new user account using sudo adduser command and continued using the new account!