cancel
Showing results for 
Search instead for 
Did you mean: 

SUPEE 10266: Call to undefined method Mage_Adminhtml_CustomerController::_setForcedFormKeyActions()

New Contributor

SUPEE 10266: Call to undefined method Mage_Adminhtml_CustomerController::_setForcedFormKeyActions()

Hello! 


After applying SUPEE 10266 to one of our sites, the customer management screen crashes with the following error: 

Call to undefined method Mage_Adminhtml_CustomerController::_setForcedFormKeyActions() 

The patch log:

Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Admin/Model/Session.php app/code/core/Mage/Admin/Model/Session.php
|index 1c0a434..b3c7155 100644
|--- app/code/core/Mage/Admin/Model/Session.php
|+++ app/code/core/Mage/Admin/Model/Session.php
--------------------------
Patching file app/code/core/Mage/Admin/Model/Session.php using Plan A...
Hunk #1 succeeded at 76.
Hunk #2 succeeded at 100.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php
|index ca9c088..b5f6a66 100644
|--- app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php
|+++ app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php
--------------------------
Patching file app/code/core/Mage/Adminhtml/Block/Notification/Grid/Renderer/Notice.php using Plan A...
Hunk #1 succeeded at 43.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php
|index d7296cb..c4d2609 100644
|--- app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php
|+++ app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php
--------------------------
Patching file app/code/core/Mage/Adminhtml/Block/Widget/Form/Container.php using Plan A...
Hunk #1 succeeded at 108.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Adminhtml/Controller/Action.php app/code/core/Mage/Adminhtml/Controller/Action.php
|index 1c4c515..b378fe6 100644
|--- app/code/core/Mage/Adminhtml/Controller/Action.php
|+++ app/code/core/Mage/Adminhtml/Controller/Action.php
--------------------------
Patching file app/code/core/Mage/Adminhtml/Controller/Action.php using Plan A...
Hunk #1 succeeded at 51.
Hunk #2 succeeded at 169.
Hunk #3 succeeded at 186.
Hunk #4 succeeded at 407.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php
|index 5ad19b9..e4a4b30 100644
|--- app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php
|+++ app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php
--------------------------
Patching file app/code/core/Mage/Adminhtml/Model/LayoutUpdate/Validator.php using Plan A...
Hunk #1 succeeded at 37.
Hunk #2 succeeded at 76.
Hunk #3 succeeded at 113.
Hunk #4 succeeded at 132.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Adminhtml/controllers/CustomerController.php app/code/core/Mage/Adminhtml/controllers/CustomerController.php
|index b59bb12..91004ee 100644
|--- app/code/core/Mage/Adminhtml/controllers/CustomerController.php
|+++ app/code/core/Mage/Adminhtml/controllers/CustomerController.php
--------------------------
Patching file app/code/core/Mage/Adminhtml/controllers/CustomerController.php using Plan A...
Hunk #1 succeeded at 33.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php
|index c102d71..dbf974a 100644
|--- app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php
|+++ app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php
--------------------------
Patching file app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php using Plan A...
Hunk #1 succeeded at 63.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Adminhtml/controllers/Newsletter/TemplateController.php app/code/core/Mage/Adminhtml/controllers/Newsletter/TemplateController.php
|index d6605da..74ff7ca 100644
|--- app/code/core/Mage/Adminhtml/controllers/Newsletter/TemplateController.php
|+++ app/code/core/Mage/Adminhtml/controllers/Newsletter/TemplateController.php
--------------------------
Patching file app/code/core/Mage/Adminhtml/controllers/Newsletter/TemplateController.php using Plan A...
Hunk #1 succeeded at 142.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Checkout/controllers/CartController.php app/code/core/Mage/Checkout/controllers/CartController.php
|index 7c9f28f..bee6034 100644
|--- app/code/core/Mage/Checkout/controllers/CartController.php
|+++ app/code/core/Mage/Checkout/controllers/CartController.php
--------------------------
Patching file app/code/core/Mage/Checkout/controllers/CartController.php using Plan A...
Hunk #1 succeeded at 284.
Hunk #2 succeeded at 711.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Core/Model/Email/Template/Abstract.php app/code/core/Mage/Core/Model/Email/Template/Abstract.php
|index 794e924..d597358 100644
|--- app/code/core/Mage/Core/Model/Email/Template/Abstract.php
|+++ app/code/core/Mage/Core/Model/Email/Template/Abstract.php
--------------------------
Patching file app/code/core/Mage/Core/Model/Email/Template/Abstract.php using Plan A...
Hunk #1 succeeded at 235.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Core/Model/File/Validator/Image.php app/code/core/Mage/Core/Model/File/Validator/Image.php
|index 9d57202..6a939c3 100644
|--- app/code/core/Mage/Core/Model/File/Validator/Image.php
|+++ app/code/core/Mage/Core/Model/File/Validator/Image.php
--------------------------
Patching file app/code/core/Mage/Core/Model/File/Validator/Image.php using Plan A...
Hunk #1 succeeded at 91.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Core/Model/Session/Abstract/Varien.php app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
|index dff3103..45d7365 100644
|--- app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
|+++ app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
--------------------------
Patching file app/code/core/Mage/Core/Model/Session/Abstract/Varien.php using Plan A...
Hunk #1 succeeded at 136.
Hunk #2 succeeded at 163.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Core/etc/config.xml app/code/core/Mage/Core/etc/config.xml
|index c0ee1a2..3140f7f 100644
|--- app/code/core/Mage/Core/etc/config.xml
|+++ app/code/core/Mage/Core/etc/config.xml
--------------------------
Patching file app/code/core/Mage/Core/etc/config.xml using Plan A...
Hunk #1 succeeded at 467.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Rss/Helper/Data.php app/code/core/Mage/Rss/Helper/Data.php
|index d681e4d..9db3079 100644
|--- app/code/core/Mage/Rss/Helper/Data.php
|+++ app/code/core/Mage/Rss/Helper/Data.php
--------------------------
Patching file app/code/core/Mage/Rss/Helper/Data.php using Plan A...
Hunk #1 succeeded at 74.
Hunk #2 succeeded at 82.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php
|index ee83ad48..c02afdf 100644
|--- app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php
|+++ app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php
--------------------------
Patching file app/code/core/Mage/Sales/Model/Resource/Order/Item/Collection.php using Plan A...
Hunk #1 succeeded at 152.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/code/core/Zend/Serializer/Adapter/PhpCode.php app/code/core/Zend/Serializer/Adapter/PhpCode.php
|new file mode 100644
|index 0000000..4007762
|--- /dev/null
|+++ app/code/core/Zend/Serializer/Adapter/PhpCode.php
--------------------------
(Creating file app/code/core/Zend/Serializer/Adapter/PhpCode.php...)
Patching file app/code/core/Zend/Serializer/Adapter/PhpCode.php using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/backup/dialogs.phtml app/design/adminhtml/default/default/template/backup/dialogs.phtml
|index ff8f0d6..76ef54a 100644
|--- app/design/adminhtml/default/default/template/backup/dialogs.phtml
|+++ app/design/adminhtml/default/default/template/backup/dialogs.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/backup/dialogs.phtml using Plan A...
Hunk #1 succeeded at 120.
Hunk #2 succeeded at 155.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/catalog/product/edit/options/type/file.phtml app/design/adminhtml/default/default/template/catalog/product/edit/options/type/file.phtml
|index e04c50d..f94abfe 100644
|--- app/design/adminhtml/default/default/template/catalog/product/edit/options/type/file.phtml
|+++ app/design/adminhtml/default/default/template/catalog/product/edit/options/type/file.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/catalog/product/edit/options/type/file.phtml using Plan A...
Hunk #1 succeeded at 33.
Hunk #2 succeeded at 45.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/customer/tab/view.phtml app/design/adminhtml/default/default/template/customer/tab/view.phtml
|index 5198263..0ae9060 100644
|--- app/design/adminhtml/default/default/template/customer/tab/view.phtml
|+++ app/design/adminhtml/default/default/template/customer/tab/view.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/customer/tab/view.phtml using Plan A...
Hunk #1 succeeded at 70.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/login.phtml app/design/adminhtml/default/default/template/login.phtml
|index f21fadb..427d1ff 100644
|--- app/design/adminhtml/default/default/template/login.phtml
|+++ app/design/adminhtml/default/default/template/login.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/login.phtml using Plan A...
Hunk #1 succeeded at 58.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/notification/toolbar.phtml app/design/adminhtml/default/default/template/notification/toolbar.phtml
|index 880e05c..27227f8 100644
|--- app/design/adminhtml/default/default/template/notification/toolbar.phtml
|+++ app/design/adminhtml/default/default/template/notification/toolbar.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/notification/toolbar.phtml using Plan A...
Hunk #1 succeeded at 75.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/oauth/authorize/form/login-simple.phtml app/design/adminhtml/default/default/template/oauth/authorize/form/login-simple.phtml
|index aa31254..11f2181 100644
|--- app/design/adminhtml/default/default/template/oauth/authorize/form/login-simple.phtml
|+++ app/design/adminhtml/default/default/template/oauth/authorize/form/login-simple.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/oauth/authorize/form/login-simple.phtml using Plan A...
Hunk #1 succeeded at 58.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/oauth/authorize/form/login.phtml app/design/adminhtml/default/default/template/oauth/authorize/form/login.phtml
|index 9e97a8a..8c5ce90 100644
|--- app/design/adminhtml/default/default/template/oauth/authorize/form/login.phtml
|+++ app/design/adminhtml/default/default/template/oauth/authorize/form/login.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/oauth/authorize/form/login.phtml using Plan A...
Hunk #1 succeeded at 46.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/resetforgottenpassword.phtml app/design/adminhtml/default/default/template/resetforgottenpassword.phtml
|index f8bbed5..144f612 100644
|--- app/design/adminhtml/default/default/template/resetforgottenpassword.phtml
|+++ app/design/adminhtml/default/default/template/resetforgottenpassword.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/resetforgottenpassword.phtml using Plan A...
Hunk #1 succeeded at 53.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/sales/order/view/history.phtml app/design/adminhtml/default/default/template/sales/order/view/history.phtml
|index d405481..8c2b8b8 100644
|--- app/design/adminhtml/default/default/template/sales/order/view/history.phtml
|+++ app/design/adminhtml/default/default/template/sales/order/view/history.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/sales/order/view/history.phtml using Plan A...
Hunk #1 succeeded at 75.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/adminhtml/default/default/template/sales/order/view/info.phtml app/design/adminhtml/default/default/template/sales/order/view/info.phtml
|index 41bb943..07e4403 100644
|--- app/design/adminhtml/default/default/template/sales/order/view/info.phtml
|+++ app/design/adminhtml/default/default/template/sales/order/view/info.phtml
--------------------------
Patching file app/design/adminhtml/default/default/template/sales/order/view/info.phtml using Plan A...
Hunk #1 succeeded at 130.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/design/install/default/default/template/install/create_admin.phtml app/design/install/default/default/template/install/create_admin.phtml
|index 2d8e72f..f8b7a91 100644
|--- app/design/install/default/default/template/install/create_admin.phtml
|+++ app/design/install/default/default/template/install/create_admin.phtml
--------------------------
Patching file app/design/install/default/default/template/install/create_admin.phtml using Plan A...
Hunk #1 succeeded at 66.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git app/locale/en_US/Mage_Adminhtml.csv app/locale/en_US/Mage_Adminhtml.csv
|index 343871b..ebb20d3 100644
|--- app/locale/en_US/Mage_Adminhtml.csv
|+++ app/locale/en_US/Mage_Adminhtml.csv
--------------------------
Patching file app/locale/en_US/Mage_Adminhtml.csv using Plan A...
Hunk #1 succeeded at 26.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git downloader/template/login.phtml downloader/template/login.phtml
|index 26a7b84..a846d60 100644
|--- downloader/template/login.phtml
|+++ downloader/template/login.phtml
--------------------------
Patching file downloader/template/login.phtml using Plan A...
Hunk #1 succeeded at 35.
done

 

Any idea how I can fix this?

 

With kind regards,

Brandon

Tags (1)
5 REPLIES
Visitor

Re: SUPEE 10266: Call to undefined method Mage_Adminhtml_CustomerController::_setForcedFormKeyAction

Hello,

 

I just had the same issue.

 

Finally, I notice that there were a rewrite of the 'Mage_Adminhtml_Controller_Action' core class in my 'app/code/local/Mage/Adminhtml/Controller' directory.

 

So just have a look to your local directory tree and add diff code like this

 

Regards,

 

Emmanuel

 

New Contributor

Re: SUPEE 10266: Call to undefined method Mage_Adminhtml_CustomerController::_setForcedFormKeyAction

Thank you for your reply!

 

I'm not very experienced with reading the Magento SUPEE patch logs.

Does the log say that there is an actual error hidden in there?

 

I need to be sure that the SUPEE was applied successfully because this happened on a live website belonging to one of our customers.

 

With kind regards,

Brandon

 

Regular Visitor

Re: SUPEE 10266: Call to undefined method Mage_Adminhtml_CustomerController::_setForcedFormKeyAction

Im having the same problem, with the additional info

/app/code/core/Mage/Adminhtml/controllers/CustomerController.php on line 43 

I've checked both files and they include the new changes form the patch, but still receiving the same error when clicking on customers in admin.

 

Highlighted
New Member

Re: SUPEE 10266: Call to undefined method Mage_Adminhtml_CustomerController::_setForcedFormKeyAction

Same issue here. For a quick workaround so we could get in and reset some customer passwords I commented out the new line 43 temporarily in the in the app/code/Mage/Adminhtml/controllers/CustomerController.php file. Went from this

public function preDispatch()
{
$this->_setForcedFormKeyActions('delete');
return parent::preDispatch();
}

to this

public function preDispatch()
 {
   //$this->_setForcedFormKeyActions('delete');
   return parent::preDispatch();
 }

then reset the customer passwords and changed it back. It worked fine, but I'd like to figure out why it isn't working and that's beyond what I know about Magento. The _setForcedFormKeyActions() function appears to be defined in the /app/code/Mage/Adminhtml/Controller/Action.php file, so I don't have any idea why the CustomerController.php file can't see it.

 

Regular Visitor

Re: SUPEE 10266: Call to undefined method Mage_Adminhtml_CustomerController::_setForcedFormKeyAction

Hi there,

 

Using  Magento 1.8.1.0

 

Its the first time that I write in the forum, because I find amazing that after 3 weeks of reporting this concerning issue, nobody from Magento take care of that. Even more the patch was released 15/09/2017 .

 

Am I missing something?

I can not find any information or fix for this bug anywhere.

Didn't receive a new patch from Magento. What's happening with this issue ?

 

Thanks a lot for your support.

 

Best regards.