I have a search that is working locally, but not when I push it to my test environment.

I imported the database from my local environment into test, so the data should exist.

The URL for each is:

test: https://mytesturl/site/?q=test

local: http://local/site/?q=test

I set the query, which returns null/empty in test, but populates correctly locally:

{% set query = craft.request.getParam('q') %}

I'm drawing a blank what could be wrong. Seems to be a config issue, but I'm not sure where to look.

Any ideas? Thanks!


This sounds similar to your issue, have a look. People provided a solution there, it apparently might have something to do with your .htaccess file.

getParam not working on live server?

  • Good idea. I'm using the nginx server though. Aug 11 '17 at 17:16

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.