Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of uasort(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. in /home/...................../og_blueprints.module on line 64

Comments

sdboyer’s picture

Yeah, I noticed this on another system I was working on. I need to figure out how to address it, as the documentation I've been able to find on php.net indicates that passing class elements from within a method to uasort() requires that an instance of $this be passed by reference at call time. I haven't had time to experiment with it and verify that the claims I read are true, given that I'm trying to get panels beta4 out the door, but I'll return to this presently.

sdboyer’s picture

So just a quick update - I've removed one of the call-time pass by reference instances, but I've left another in (the call to uasort()), as I've not yet verified that the class members being passed to it will be appropriately sorted.

keesee’s picture

Great! I'll keep watching this for update. Please notify me when, or if you would like me to test it.

--
J.

mErilainen’s picture

I also get the same error message. Waiting for a solution, this module would be very useful for me.

sdboyer’s picture

Deprecated - but not broken. You don't need to wait on a fix to this, as it doesn't _actually_ break anything - just generates an error when you're running in...E_STRICT, I think.

mErilainen’s picture

Will this module be available for Drupal6?

sdboyer’s picture

Not until Panels2 is ported to D6. See #223994: Port of Panels 2.x branch to d6.

Please don't divert from the original issue subject.

ambereyes’s picture

Version: 5.x-1.0-alpha3 » 5.x-1.0-alpha5
Priority: Normal » Critical

Heh! Since this particular error is what is breaking panels for me, i.e. the "An error occurred ..." bug at http://drupal.org/node/238139, it is now critical for me. I need this for a site I need to have up in a matter of days.

What can I do to help?

Katrina

ambereyes’s picture

Priority: Normal » Critical

dupe ..ignore

ambereyes’s picture

Priority: Critical » Normal

Okay. I feel really silly cuz I simply removed the ampersand from the variable for uasort on line 64. I have no idea if or how this may or may not break things ... that remains to be seen. But the error message has gone bye-bye which means all my "Add content to this panel" windows work.

So IOW, I am removing the critical from this issue.

Please let me know what boogie-man may be awaiting me for this incursion into the "hacking place".

cheers,
Katrina

sdboyer’s picture

Priority: Critical » Normal

Heh, I should have just posted this here quite a while back. Sorry...

I just didn't know how to read the php documentation at the time. The actual fix you implemented in #10, ambereyes, is the only thing that needs to be done.

sdboyer’s picture

Status: Active » Fixed

Fixed in -dev.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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