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

rdeboer’s picture

Title: Depreciated Function in widgets? » Deprecated function in global_filter.module?

Hi,
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

rdeboer’s picture

Assigned: Unassigned » rdeboer

I've made a change regarding this in the dev version of 30 Mar 2012.

rtdean93’s picture

Thank you... I will try it out. BTW - I was using PHP 5.3.8

rdeboer’s picture

Thanks. Let me know how you went as I'm keen to release a stable version and this stands in the way right now.
Rik

bjorsen’s picture

Hi 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)

rdeboer’s picture

#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

dgastudio’s picture

i 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).

dgastudio’s picture

it'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);

rdeboer’s picture

That's in dev already !
Thanks.

rdeboer’s picture

Status: Active » Fixed

Now in 7.x-1.4

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.