Active
Project:
Family Tree
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Jan 2012 at 08:04 UTC
Updated:
28 May 2013 at 00:18 UTC
Hi
After installing the module I get the following error
Deprecated function: Call-time pass-by-reference has been deprecated in require_once() (line 26 of /*** /all/modules/family/family.module).
My coding is a little off but when I opened family.module on line 26 it said
require_once("{$fampath}/import.inc");
which to me seems ok ???
any ideas??
Thanx,
Brett
Comments
Comment #1
old_dog commentedThis happens under PHP 5.3.
The cause for the complaint is in "import.inc" where it calls node_validate()
see http://drupal.org/node/1330772
This is just the beginning of the problems you will encounter.
Comment #2
Vietyank commentedIs anyone going to work on this or has it been fixed in the dev release?
Comment #3
Zarevac commentedFixed in new release
Comment #4
stewarttate commentedIssue remains in family 7.x-1.0 on Drupal 7.14
Deprecated function: Call-time pass-by-reference has been deprecated in require_once() (line 26 of *\sites\all\modules\family\family.module)
Comment #5
Zarevac commentedMost likely you are not consistent in your GEDCOM file with dates. Also, upgrade to the latest D7 ;-)
Comment #6
lipinponmala007 commentedi got a fix from #1 thanks #1
i opened import.inc
changed to
i found two of them one in line 209,296
my version info
D7.17,family 7x-1.0
Comment #7
eriji commentedD7.21 ; Family Tree 7.x-1.0
Deprecated function: Call-time pass-by-reference has been deprecated in require_once() (line 26 of /home/e****/o*****.info/sites/all/modules/family/family.module).
Am receiving this error (line 26 of...) after initial install/enable. Do not have any data yet to cause data problems. (Also it's a new site so it doesn't have any old data either.)
Will investigate some of the other notes/possible solutions above and report back in a few days.
Comment #8
old_dog commentedTry searching for "Deprecated function: Call-time pass-by-reference has been deprecated in require_once()" here on drupal.org for plenty of discussion.
Apparently, PHP reads the referenced file, finds the pass-by-reference, then curiously flags the require_once statement with the warning rather than the actual offending instance.
Comment #9
eriji commented@old_dog Thanks for the CLUE to where to find the problem. I did get it fixed, and I guess learned something in the process.
And that means every occurrence of "&$form_state" in all of a number of files in the "family" module directory.
I think there are about 5 or 6 different files with 2-3 occurrences in each file.
There may be something else to this but couldn't the developer correct the code for just this problem and re-issue the module??? You can even have the code after I made the corrections.
Comment #10
old_dog commentedNO NO
I was unclear in that post -- only in the import.inc file. There are 2 occurrences.
Also, at the time, I knew less than I do now (still not much). The & is required in different situations.
Good Luck with that!
Comment #11
lipinponmala007 commentedMy problem solved....
try remove '&' in the following lines in the import.inc file.
Comment #12
old_dog commentedActually, you can remove entirely the two lines calling node_validate(). They don't seem to serve any purpose in this routine. These 2 lines are commented out in Zarevac's latest zip files.
Don't remove the & in the line
family_import_submit($form, &$form_state)This is required to access the $form_state['values'] data from the import form.
Comment #13
old_dog commented