Not sure what I'm doing wrong, but the following code gives me a PHP error.

{exp:store:search channel="treatments" search:on_sale="yes"}
    input:recipient_email="Mottakers e-post"


Error: Fatal error: Using $this when not in object context in /*/expressionengine/third_party/store/src/Store/Tag/SearchTag.php on line 37**

  • What version of Store are you using? – Justin Long Mar 31 '14 at 18:29
  • Using version 2.3.1 – Stian Karlsen Mar 31 '14 at 22:35

This is a known issue affecting Store 2.3.1 with PHP 5.3, and will be fixed in the next version.

In the meantime, if you need a quick fix, please replace $this->ee with ee() on lines 37 and 38 of third_party/store/src/Store/Tag/SearchTag.php.

| improve this answer | |

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.