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?

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');

  • Like this?> public function toTagArray() { ee()->load->helper('form'); $attributes = parent::toTagArray(); etc.. – Bart Aug 24 '16 at 11:08
  • Yes. Exactly like this. – Mufi - Amici Infotech Aug 24 '16 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 '16 at 8:30
  • Glad to here it works.. Its not about hosting... We can say that it is bug of plugin – Mufi - Amici Infotech Aug 25 '16 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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