When I visit that settings page, I get the following errors:

warning: Parameter 1 to author_facet_faceted_search_init() expected to be a reference, value given in /Library/WebServer/Documents/dr61/includes/module.inc on line 471.
warning: Parameter 1 to content_type_facet_faceted_search_init() expected to be a reference, value given in /Library/WebServer/Documents/dr61/includes/module.inc on line 471.
warning: Parameter 1 to faceted_search_ui_faceted_search_init() expected to be a reference, value given in /Library/WebServer/Documents/dr61/includes/module.inc on line 471.
notice: Undefined index: author_facet_excluded_roles in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/author_facet.module on line 123.
warning: array_intersect(): Argument #1 is not an array in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/author_facet.module on line 123.
notice: Undefined index: content_type_facet_types in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/content_type_facet.module on line 120.
warning: array_filter() expects parameter 1 to be array, null given in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/content_type_facet.module on line 120.
notice: Undefined index: content_type_facet_types in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/content_type_facet.module on line 37.
warning: array_filter() expects parameter 1 to be array, null given in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/content_type_facet.module on line 37.
warning: array_intersect(): Argument #2 is not an array in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/content_type_facet.module on line 37.
notice: Undefined index: base_path in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 184.
notice: Undefined index: start_page in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 192.
notice: Undefined index: results_style in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 213.
notice: Undefined index: results_style_selective_extracts in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 219.
notice: Undefined index: current_block in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 234.
notice: Undefined index: keyword_block in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 243.
notice: Undefined index: keyword_mode in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 251.
notice: Undefined index: keyword_field_selector in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 258.
notice: Undefined index: guided_block in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 274.
notice: Undefined index: sort_block in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 280.
notice: Undefined index: tooltips in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 287.
notice: Undefined index: related_block in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 301.
notice: Undefined index: related_style in /Library/WebServer/Documents/dr61/sites/all/modules/faceted_search/faceted_search_ui.module on line 312.
warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/dr61/includes/form.inc on line 1205.
CommentFileSizeAuthor
#7 ui.patch955 bytesbatje
#7 contenttype.patch434 bytesbatje

Comments

larskleiner’s picture

I got the same warnings since I started to use PHP 5.3 on Snow Leopard (instead of MAMP - PHP 5.2.6). They will go away once you remove the '&' from the function signatures though I'm not sure about side effects.

faceted_search_ui_faceted_search_init($env)

PHP 5.3 support for Drupal 6 core is currently in the works (360605: PHP 5.3 Compatibility).

avpaderno’s picture

The first three warning messages could be caused by PHP 5.3, but I am not sure the other error messages are related with the version of PHP used.

infojunkie’s picture

Issue tags: +PHP 5.3

I think the remaining messages are related to the fact that some indexes are not set when the initial 3 functions fail to execute due to PHP 5.3 constraints.

Anonymous’s picture

Thanks @larskleiner, removing the ampersand does the trick!

EvanDonovan’s picture

Status: Active » Postponed (maintainer needs more info)

If this is PHP 5.3 related, then it should be retested with #700466: PHP 5.3 issues applied.

ragavendra_bn’s picture

3 main fixes done to work on PHP5.3 without warnings. Not sure if any side effects

changed to

function faceted_search_ui_faceted_search_query_alter($search, $query)
function faceted_search_ui_faceted_search_init($env)

function content_type_facet_faceted_search_init($env)

batje’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new434 bytes
new955 bytes

Attached 2 patches to solve 3 issues.

botris’s picture

Applied both patches, solves most errors, but

# warning: Parameter 1 to author_facet_faceted_search_init() expected to be a reference, value given in /Applications/MAMP/htdocs/brightlinq/includes/module.inc on line 483.

Stays

brycesenz’s picture

Subscribing. Both patches worked for me, but I don't know if these patches would cause problems for other versions of PHP.

petebarnett’s picture

This is because module_invoke_all() doesn't support references. It should be up to faceted_search.module to manually invoke the hook instead, as per http://api.drupal.org/api/drupal/includes--module.inc/function/module_in...

david lesieur’s picture

Status: Needs review » Closed (duplicate)

#700466: PHP 5.3 issues should have fixed these issues.