Hello,
when I take the option "All" on an individual record I receivein "Advancced search" an error: seems this occurs for all indiviudals
"
Assistant de recherches
ERROR 8: Array to string conversion
0 Error occurred on line 68 of file base_autosearch.php in function options
1 called from line 1625 of file ra_functions.php in function tab
2 called from line 2027 of file individual_ctrl.php in function print_research_tab
3 called from line 1368 of file individual_ctrl.php in function getTab
4 called from line 252 of file individual_ctrl.php in function init
5 called from line 37 of file individual.php
Notice: Array to string conversion in /srv/www/htdocs/gedview/modules/research_assistant/search_plugin/base_autosearch.php on line 68
ERROR 8: Undefined property: AutoSearch::$Array
0 Error occurred on line 68 of file base_autosearch.php in function options
1 called from line 1625 of file ra_functions.php in function tab
2 called from line 2027 of file individual_ctrl.php in function print_research_tab
3 called from line 1368 of file individual_ctrl.php in function getTab
4 called from line 252 of file individual_ctrl.php in function init
5 called from line 37 of file individual.php
Notice: Undefined property: AutoSearch::$Array in /srv/www/htdocs/gedview/modules/research_assistant/search_plugin/base_autosearch.php on line 68
Fatal error: Uncaught Error: Function name must be a string in /srv/www/htdocs/gedview/modules/research_assistant/search_plugin/base_autosearch.php:68 Stack trace: #0 /srv/www/htdocs/gedview/modules/research_assistant/ra_functions.php(1625): Base_AutoSearch->options() #1 /srv/www/htdocs/gedview/includes/controllers/individual_ctrl.php(2027): ra_functions->tab(Object(Person)) #2 /srv/www/htdocs/gedview/includes/controllers/individual_ctrl.php(1368): IndividualControllerRoot->print_research_tab() #3 /srv/www/htdocs/gedview/includes/controllers/individual_ctrl.php(252): IndividualControllerRoot->getTab(6) #4 /srv/www/htdocs/gedview/individual.php(37): IndividualControllerRoot->init() #5 {main} thrown in /srv/www/htdocs/gedview/modules/research_assistant/search_plugin/base_autosearch.php on line 68"
Many thanks in advance
Philippe Condé
The Reasearch Assistant module was not tested recently. I'm not surprised that there are bugs in it. I'll look into this this coming weekend. It shouldn't be hard to fix this bug, since it's similar to others that were fixed over a year ago.
Philippe:
Try replacing line 68 of file modules/research_assistant/search_plugin/base_autosearch.php with the following:
$edit={$this->$settings['function']}($person);
and let me know whether this fixes the problem.
Fixed in SVN 7184, dated 3 Dec 2017.
A number of other errors, specific to PHP 7, were fixed in this SVN release.
You are advised to replace the entire Research Assistant package with what is in SVN.