SimpleSearch Undefined index: extension with search.json

I deployed Grav 0.9.32 with the SimpleSearch plugin and learn2 theme using the RTFM skeleton. On my local machine (Windows) this is working fine, but when deployed to a server (Linux) it throws an error when attempting to use search.

The behaviour is similar to this:

/search.json/query:hello - doesn’t work
/search/query:hello - works

Whoops\Exception\ErrorException thrown with message “Undefined index: extension”

Stacktrace:
#11 Whoops\Exception\ErrorException in /var/www/webroot/ROOT/system/src/Grav/Common/Grav.php:441
#10 Whoops\Run:handleError in /var/www/webroot/ROOT/system/src/Grav/Common/Grav.php:441
#9 Grav\Common\Grav:fallbackUrl in /var/www/webroot/ROOT/system/src/Grav/Common/Grav.php:128
#8 Grav\Common\Grav:Grav\Common\{closure} in /var/www/webroot/ROOT/vendor/pimple/pimple/src/Pimple/Container.php:11 2
#7 Pimple\Container:offsetGet in /var/www/webroot/ROOT/user/plugins/highlight/highlight.php:33
#6 Grav\Plugin\HighlightPlugin:onPageInitialized in <#unknown>:0
#5 call_user_func in /va r/www/webroot/ROOT/vendor/symfony/event-dispatcher/EventDispatcher. php:164
#4 Symfony\Component\EventDispatcher\EventDispatcher:doDispatch in /var/www/webroot/ROOT/vendor/symfony/event-dispatcher/EventDispatcher. php:53
#3 Symfony\Component\EventDispatcher\EventDispatcher:dispatch in /var/www/webroot/ROOT/vendor/rockettheme/toolbox/Event/src/EventDispat cher.php:23
#2 RocketTheme\Toolbox\Event\EventDispatcher:dispatch in /var/www/webroot/ROOT/system/src/Grav/Common/Grav.php:366
#1 Grav\Common\Grav:fireEvent in /var/www/webroot/ROOT/system/src/Grav/Common/Grav.php:224
#0 Grav\Common\Grav:process in /var/www/webroot/ROOT/index.php:31`
---

I actually just ran into this, and fixed yesterday, please grab the latest 1.2.7 version that is not even in GPM yet: https://github.com/getgrav/grav-plugin-simplesearch/archive/1.2.7.zip

You can just extract it and copy the files over the current version.

Nice - works fine now :slight_smile:
Thanks!