This module is not producing any erros on two of my servers - yet on my development server, it is producing the following debug warning...
Deprecated function: Call-time pass-by-reference has been deprecated in require_once() (line 16 of /.../www/sites/all/modules/contrib/global_filter/global_filter.module).
Comments
Comment #1
rdeboerHi,
That's strange...
What are the differences (e.g operating systems) between the 2 servers and the development server?
What versions of PHP are being used? (see .../admin/reports/status).
** edit **
I think the one complaining will run PHP 5.3.* and the error is not actually in the require_once(), but in the global_filter.widgets.inc file somewhere. The code must use a superfluous & in one of the function headings. Not sure why I don't see the error though, as I develop under 5.3.* ....
Will get back to you soon.
Rik
Comment #2
rdeboerI've made a change regarding this in the dev version of 30 Mar 2012.
Comment #3
rtdean93 commentedThank you... I will try it out. BTW - I was using PHP 5.3.8
Comment #4
rdeboerThanks. Let me know how you went as I'm keen to release a stable version and this stands in the way right now.
Rik
Comment #5
bjorsen commentedHi Rik,
I'm afraid I'm also encountering the "Deprecated function: Call-time pass-by-reference has been deprecated in require_once() (line 16 of /var/www/dev/rockfonch/sites/all/modules/global_filter/global_filter.module)" error, both with the latest supported release as well as latest dev.
Here's our PHP info, hope it can help you pinpoint the reason for the error:
PHP 5.3.3-1ubuntu9.10 with Suhosin-Patch (cli) (built: Feb 11 2012 06:21:15)
Comment #6
rdeboer#5:
Thanks for reporting this Bjorn. I just don't understand that I and many others don't see that error....
Or that rtdean gets it on only 2 of his servers....
Rik
Comment #7
dgastudio commentedi have this problem too, :)
Deprecated function: Call-time pass-by-reference has been deprecated in require_once() (line 16 of /home/u5444/domains/medstream.krypton.vps-private.net/sites/all/modules/global_filter/global_filter.module).
Comment #8
dgastudio commented#1416188: line 26 of
#1330772: Am getting the following warnings when enabling module
Comment #9
dgastudio commentedit's ok, i have found the bug and here is the solution
global_filter.widgets.inc
replace
-- global_filter_add_submit_button(&$form, $filter);
++ global_filter_add_submit_button($form, $filter);
Comment #10
rdeboerThat's in dev already !
Thanks.
Comment #11
rdeboerNow in 7.x-1.4