Warning: Call-time pass-by-reference has been deprecated

anureshravi2005 - January 23, 2009 - 05:25
Project:Chat Room
Version:6.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Paul Kishimoto
Status:duplicate
Description

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of system_settings_form_submit(). 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 C:\wamp\www\bcsl\esus\website\sites\all\modules\chatroom\chatroom.forms.inc on line 303

#1

himtuna - January 31, 2009 - 10:33

I am aslo getting th same error. Any solution to it?

#2

houseofbean - February 11, 2009 - 19:42

I'm getting this EXACT same error.

I'm using Drupal 6.9 with hosting by Dreamhost

I was hoping to chat on my Drupal site, but that error would always display at the top of every page

I've been busy lately, and I'm a Drupal NOOB!!! But I think I'll take a look into that file on line 303 in the next couple of days

#3

pteague - March 27, 2009 - 01:40

I'm getting this error as well. I solved it by modifying the line it's complaining about. Simply remove the & before the $form_state. I.e. originally it looks like this:

system_settings_form_submit($form, &$form_state);

just change it to this:

system_settings_form_submit($form, $form_state);

#4

himtuna - March 27, 2009 - 16:57

thanks its now working
and for those guys who are running on localhost you might see this error, but dont worry it will be solved as you move our site online

soundManager.initComplete(): calling soundManager.onerror()
-- SoundManager 2 failed to load (security/load error) --
soundManager.disable(): Disabling all functions - future calls will return false.
soundManager: Failed to initialise.
soundManager: No Flash response within reasonable time after document load.
Possible causes: Flash version under 8, no support, or Flash security denying JS-Flash communication.
soundManager: Getting impatient, still waiting for Flash.. ;)
soundManager.beginDelayedInit(): Document loaded
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load ./soundmanager2.swf
-- SoundManager 2 V2.76a.20080808 (AS2/Flash 8) --

#5

Paul Kishimoto - March 27, 2009 - 17:26
Title:Warning: Call-time pass-by-reference has been deprecated;» Warning: Call-time pass-by-reference has been deprecated
Priority:critical» normal
Assigned to:anureshravi2005» Paul Kishimoto
Status:active» needs review

A patch based on pteague's suggestion in #3.

@himtuna, #4: I don't think that's related at all.

AttachmentSize
362997.patch 563 bytes

#6

himtuna - March 27, 2009 - 19:18

Yes its not related but I got the error on my localhost, so thought it would be good for newbies like me to not afraid as it gets cleared when you move the site online.

I have read the documentation a lot times, but would like to ask how do you apply a patch.
( I am on ubuntu)

#7

stoltoguzzi - April 22, 2009 - 18:29

I moved my site online but still get this:

soundManager.initComplete(): calling soundManager.onerror()
-- SoundManager 2 failed to load (security/load error) --
soundManager.disable(): Disabling all functions - future calls will return false.
soundManager: Failed to initialise.
soundManager: No Flash response within reasonable time after document load.
Possible causes: Flash version under 8, no support, or Flash security denying JS-Flash communication.
soundManager: Getting impatient, still waiting for Flash.. ;)
soundManager.beginDelayedInit(): Document loaded
soundManager._initMovie(): Waiting for ExternalInterface call from Flash..
soundManager._initMovie(): Got EMBED element (created via JS)
soundManager._createMovie(): Trying to load ./soundmanager2.swf
-- SoundManager 2 V2.76a.20080808 (AS2/Flash 8) --

what is missing?

#8

micnap - April 30, 2009 - 18:22

Same here. Still get the error.

#9

dork-maneuver - May 31, 2009 - 22:25

Same Soundmanager missing here. Anyone any idea?

#10

matteoraggi - August 9, 2009 - 13:10

try to put:

allow_call_time_pass_reference = On

in a php.ini file

#11

justinrandell - November 9, 2009 - 14:35
 
 

Drupal is a registered trademark of Dries Buytaert.