Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
2011.9
-
None
Description
After upgrading from ez 4.3 to 2011.9 a serios error occurs when trying to search using the standard ez search function.
The search always returns a fatal error from kernel/content/advancedsearch.php.
Our search form is setup like this in our template page_header_searchbox.tpl:
<legend class="clsSearch">{'Search'|i18n('design/ezwebin/pagelayout')}</legend> <form action={"/content/advancedsearch/"|ezurl} method="get"> <input type="hidden" name="SearchContentClassID[]" value="45" /> <input type="hidden" name="SearchContentClassID[]" value="1" /> <input type="hidden" name="SearchContentClassID[]" value="16" /> <input type="hidden" name="SearchContentClassID[]" value="47" /> <input type="hidden" name="SearchContentClassID[]" value="67" /> <input type="hidden" name="SearchContentClassID[]" value="61" /> <input type="hidden" name="SearchContentClassID[]" value="30" /> <input type="hidden" name="SearchContentClassID[]" value="28" /> <input type="hidden" name="SearchContentClassID[]" value="80" /> <input type="hidden" name="SearchSectionID[]" value="1" /> <label for="SearchText" class="clsSearch" > <input type="text" name="SearchText" id="SearchText" value="" class="clsInputText" title="{'The text field for search text input'|i18n('design/standard/content/search')}" /></label> <input type="submit" class='clsInputSearchButton' name="SearchButton" value="{'Search'|i18n('design/ezwebin/pagelayout')}" title="{'Search button - click on this button to start the search.'|i18n('design/standard/content/search')}" /> </form> <a href={"/content/advancedsearch/"|ezurl} title='{"Advanced search"|i18n("design/standard/content/search")}' class="clsAdvancedSearchLink" >{"Advanced search"|i18n("design/standard/content/search")}</a> </fieldset> </div>
As seen above, we use multiple classes and one section when performing the search. We get an error like this:
Fatal error: Call to a member function attribute() on a non-object in /web/www/upgrades/2011.9/kernel/content/advancedsearch.php on line 261 Fatal error: eZ Publish did not finish its request The execution of eZ Publish was abruptly ended, the debug output is present below.
I believe this is related to issue nr 18288, where a similar problem occured in ez 4.4.
My solution for now is replacing the advancedsearch.php with the one from ez 4.3, which appears to work.
This is a serious flaw, need to be attended ASAP.
Steps to reproduce
Set up a search template like above with multiple classes, one section. Try to search.