1

Iam geting the following error:

PHP Fatal error: Call to a member function getFullActionName() on null in /app/code/community/MageWorx/CustomOptions/Model/Catalog/Product/Option.php on line 1627

And the Line#1627 is :

$action = Mage::app()->getFrontController()->getAction()->getFullActionName();

Would be great if anyone can provide me the solution to this error. Thanks

2 Answers 2

1

Replace this code with:

$action = Mage::app()->getFrontController()->getAction();
if (!$action || $action->getFullActionName() == "catalog_category_view") {
    return parent::getProductOptionCollection($product);
}

PS: In case you got an error in the custom module, first I'll recommend drop a line to the vendor.

0

try this, to get fullaction name in custom way.

    $request = Mage::app()->getRequest();
    $module = $request->getControllerModule();
    $module_controller = $request->getControllerName();
    $module_controller_action = $request->getActionName();

    $fullActionName = $module."_".$module_controller."_".$module_controller_action;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.