Skip to:

Install problem – Call-time pass-by-reference has been deprecated;

  • Everything works on a localhost install, but when I try install on dreamhost I get the following error:

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). 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 /bb-includes/backpress/functions.core.php on line 499

    The message stays on the top of page, above header, seems that I can use everything but the message stays there. How can I get ride of this.


    $ svn info

    Path: URL:

    Repository Root:

    Repository UUID: 9866e705-20ec-0310-96e7-cbb4277adcfb

    Revision: 1651

    Node Kind: directory

    Schedule: normal

    Last Changed Author: sambauers

    Last Changed Rev: 1651

    Last Changed Date: 2008-08-13 12:13:00 -0700 (Wed, 13 Aug 2008)


    Joel Teixeira

Viewing 11 replies - 1 through 11 (of 11 total)
  • Ok, just to let you know.

    I tried a latest stable version ( install and got no errors… only occurs with the alpha release.

    Help plz.

    if you want to modify the files to fix the problem, remove the & symbol from within the line it’s complaining about:

    /bb-includes/backpress/functions.core.php on line 499

    Thanks your attention Balgo, but I didn’t do that cause I want to developers help me to understand the problem. I don’t wanna just edit the file and maybe be messing something worse.

    Should this edit be really necessary, is inoffensive? Is there something wrong with the code? With the server?

    I know is not a stable version, problems is expected… I just want to understand this one.



    If you have an issue with the alpha release, please file a ticket at trac.

    You will need to log in before you can file a ticket. Be sure to choose the correct version when submitting the ticket.

    Thanks chrishajer,

    Ticket #929 opened.


    Something really strange in this problem, only happens when I do a SVN install.

    Errors to:

    svn co .

    svn co .

    But if I download (wget) or extract and install it will work without the mentioned error. omg –confused–



    Joel, did you do a diff on the two different directories to see what might have changed?

    this is a minor issue the developers should fix, but if you’d like to learn more, google for that php error (“Call-time pass-by-reference has been deprecated”).. it’s a php-specific problem, and as such, there’s lots of dialogue about it floating around..

    This is new to the trunk… it is introduce by the function…

    function backpress_convert_object( &$object, $output ) {}

    Which was new since the alpha drop.

    (sorry for the duplicate ticket, I just deleted mine)

    @chrishajer: I didn’t the diff cause I’m starting over with the forum – no data to care. So after the error comes I just removed all files and elimI searched and inated all tables from database. I should make some tests and take the diff.

    @balgo: Yes, is a php error, but is called from a script in functions.core.php. There’s no results relevant to actual versions of bbpress neither functions.core file.

    @zappoman: What let me really confused, please correct me if I’m wrong, is that I got error installing from “svn co” but had no errors with a installations from “bbPress 1.0 Alpha (” in the download page. Since is tagged, is the same package right?

    Thanks all your attention guys.

    The diff between functions.core.php from the working install (without errors – and functions.core.php from the trunk directory (in this install I see the error message) .

    A diff recursive from the root directory of both installs gave me a lot of output so I focused only in this file. I made a backup of the “problematic” file and overwrote it with the working (from the latest) so I got no more erros.

    I made this just to test, I know we should not mix files from different verionos

    $ diff ./bb-tag/bb-includes/backpress/functions.core.php ./bb-trunk/bb-includes/backpress/functions.core.php



    > function backpress_convert_object( &$object, $output ) {

    > if ( is_array( $object ) ) {

    > foreach ( array_keys( $object ) as $key )

    > backpress_convert_object( &$object[$key], $output );

    > } else {

    > switch ( $output ) {

    > case OBJECT : break;

    > case ARRAY_A : $object = get_object_vars($object); break;

    > case ARRAY_N : $object = array_values(get_object_vars($object)); break;

    > }

    > }

    > }

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Skip to toolbar