0

I run EE v2.10.1 with Store 2.5.1. I get the following error when logged in. This error doesn't happen all of the time which puzzles me even more..

Fatal error: Call to undefined function Store\Model\form_dropdown() in [omited]/system/expressionengine/third_party/store/src/Model/ProductModifier.php on line 84

Any clue anyone?

1 Answer 1

0

form_dropdown() method is default EE method lies on "form" helper.

Go to the file [omited]/system/expressionengine/third_party/store/src/Model/ProductModifier.php and write this line at the beginning of function ee()->load->helper('form');

4
  • Like this?> public function toTagArray() { ee()->load->helper('form'); $attributes = parent::toTagArray(); etc..
    – Bart
    Commented Aug 24, 2016 at 11:08
  • Yes. Exactly like this. Commented Aug 24, 2016 at 13:16
  • Works! I have voted up your answer thx! It seems however strange that this would be required though. Could it be this error hapens because of clustered hosting?
    – Bart
    Commented Aug 25, 2016 at 8:30
  • Glad to here it works.. Its not about hosting... We can say that it is bug of plugin Commented Aug 25, 2016 at 8:34

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.