Weird – not sure why that would have happened, but glad you sorted it out!


From: Tod Olson []
Sent: Tuesday, April 30, 2013 4:03 PM
To: Demian Katz
Cc: Tod Olson; Bradley Busenius;
Subject: Re: [VuFind-Tech] problem with untouched blueprint theme, custom theme is fine


After a merge with the most recent VF trunk, we somehow still had a local difference in module/VuFind/src/VuFind/Search/Base/Params.php, setting $searchType = 'advanced'. Setting it to 'basic' to matching the VF trunk seems to fix the problem we saw with blueprint. 


Thanks for the tip!





diff -ru module/VuFind/src/VuFind/Search/Base/Params.php /data/magma/vufind-ref/module/VuFind/src/VuFind/Search/Base/Params.php

--- module/VuFind/src/VuFind/Search/Base/Params.php

2013-04-30 14:21:20.115152822 -0500

+++ /data/magma/vufind-ref/module/VuFind/src/VuFind/Search/Base/Params.php

2013-04-30 14:24:24.181481504 -0500

@@ -59,7 +59,7 @@

     protected $skipRssSort = false;

     // Result limit

     protected $limit = 20;

-    protected $searchType  = 'advanced';

+    protected $searchType  = 'basic';

     // Shards

     protected $selectedShards = array();

     // View

Only in module/VuFind/src/VuFind/Search/: Listener




On Apr 27, 2013, at 7:12 PM, Demian Katz <>


As a sanity check, it might be worth clearing the vufind/local/cache/objects directory again, then doing a directory listing before and after loading the VuFind home page.  If files aren't added/changed, perhaps VuFind is somehow caching files somewhere else due to a configuration issue.

If you're concerned about a merge issue, it might be worth grabbing a clean checkout of VuFind and doing a diff between the module/VuFind/src/VuFind/Search directory tree in your copy and the clean copy.  If something got messed up related to this, it's probably in there.

If neither of those things reveal anything useful, let me know and I'll give this some more thought.

- Demian

From: Brad Busenius []
Sent: Friday, April 26, 2013 4:28 PM
To: Demian Katz
Subject: Re: [VuFind-Tech] problem with untouched blueprint theme, custom theme is fine

I can see what you're talking about. It's complaining about facets in the debug statement. I still haven't been able to make it go away though. I deleted the sub directories in vufind/local/cache, emptied my browser cache/restarted my browser, and reindexed but I'm still getting the error. We may have goofed something in the merge. Is there something else that would cause this? 

Debug says: 

2013-04-26T15:16:44-05:00 DEBUG: Query fl=%2A%2Cscore&facet=true&facet.limit=20&facet.field=callnumber-first&facet.field=language&facet.field=format&facet.sort=count&facet.mincount=1&hl=true&hl.fl=%2A&hl.simple.pre=%7B%7B%7B%7BSTART_HILITE%7D%7D%7D%7D&

2013-04-26T15:16:44-05:00 DEBUG: => GET http://localhost:8080/solr/biblio/select?fl=%2A%2Cscore&facet=true&facet.limit=20&facet.field=callnumber-first&facet.field=language&facet.field=format&facet.sort=count&facet.mincount=1&hl=true&hl.fl=%2A&hl.simple.pre=%7B%7B%7B%7BSTART_HILITE%7D%7D%7D%7D&

2013-04-26T15:16:44-05:00 DEBUG: <= 200 OK

2013-04-26T15:16:44-05:00 DEBUG: Deserialized SOLR response

On 4/26/13 12:27 PM, Demian Katz wrote:

Clear your cache – the structure of search objects has changed, so the cached facets on the homepage are no longer compatible with the new code.  If you empty the cache, a new object will get generated and everything should be fine.


- Demian


From: Brad Busenius [] 
Sent: Friday, April 26, 2013 12:44 PM
Subject: [VuFind-Tech] problem with untouched blueprint theme, custom theme is fine


After our last pull and merge, we started getting an error on the homepage of our blueprint theme. The weird thing is that we haven't edited any of the blueprint files and we haven't changed anything in the blueprint theme directory. Our custom theme is fine, however. I'm a little perplexed. I even ran a series of cmp commands and diffs against a fresh install to be sure. Has anybody else seen anything like this?


Message: Unexpected Query object.


#0 /data/dldc3/vufind2/module/VuFind/src/VuFind/Search/UrlQueryHelper.php(235): VuFind\Search\UrlQueryHelper->getParamArray()
#1 /data/dldc3/vufind2/module/VuFind/src/VuFind/Search/UrlQueryHelper.php(223): VuFind\Search\UrlQueryHelper->addFilter('callnumber-firs...')
#2 /data/dldc3/vufind2/module/VuFind/src/VuFind/View/Helper/Root/SortFacetList.php(63): VuFind\Search\UrlQueryHelper->addFacet('callnumber-firs...', 'P - Language an...')
#3 [internal function]: VuFind\View\Helper\Root\SortFacetList->__invoke(Object(VuFind\Search\Solr\Results), 'callnumber-firs...', Array, 'search-results')
#4 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php(400): call_user_func_array(Object(VuFind\View\Helper\Root\SortFacetList), Array)
#5 /data/dldc3/vufind2/themes/blueprint/templates/search/home.phtml(42): Zend\View\Renderer\PhpRenderer->__call('sortFacetList', Array)
#6 /data/dldc3/vufind2/themes/blueprint/templates/search/home.phtml(42): Zend\View\Renderer\PhpRenderer->sortFacetList(Object(VuFind\Search\Solr\Results), 'callnumber-firs...', Array, 'search-results')
#7 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php(507): include('/data/dldc3/vuf...')
#8 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/View/View.php(205): Zend\View\Renderer\PhpRenderer->render(Object(Zend\View\Model\ViewModel))
#9 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/View/View.php(233): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#10 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/View/View.php(198): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#11 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/Mvc/View/Http/DefaultRenderingStrategy.php(126): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#12 [internal function]: Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#13 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(472): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#14 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('render', Object(Zend\Mvc\MvcEvent), Array)
#15 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(332): Zend\EventManager\EventManager->trigger('render', Object(Zend\Mvc\MvcEvent))
#16 /data/dldc3/vufind2/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(307): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#17 /data/dldc3/vufind2/public/index.php(59): Zend\Mvc\Application->run()
#18 {main} 


Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt!
Vufind-tech mailing list