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
    Aug 24, 2016 at 11:08
  • Yes. Exactly like this. 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
    Aug 25, 2016 at 8:30
  • Glad to here it works.. Its not about hosting... We can say that it is bug of plugin Aug 25, 2016 at 8:34

Your Answer

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

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