Forums

Join
bbPress Support ForumsInstallationInstall problem - Call-time pass-by-reference has been deprecated;

Info

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

  1. 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:

    $ svn info
    Path: URL: http://svn.automattic.com/bbpress/trunk
    Repository Root: http://svn.automattic.com/bbpress
    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)

    Thanks,
    Joel Teixeira

  2. Ok, just to let you know.

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

    Help plz.

  3. 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

  4. 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.

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

    http://trac.bbpress.org/newticket

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

  6. Thanks chrishajer,

    Ticket #929 opened.

  7. Guys,

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

    Errors to:
    svn co http://svn.automattic.com/bbpress/tags/1.0-alpha-1/ .
    svn co http://svn.automattic.com/bbpress/trunk/ .

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

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

  9. 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..

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

  11. @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 http://svn.automattic.com/bbpress/tags/1.0-alpha-1/" but had no errors with a installations from "bbPress 1.0 Alpha (latest-alpha.zip)" in the download page. Since is tagged, is the same package right?

    Thanks all your attention guys.

  12. The diff between functions.core.php from the working install (without errors - latest-alpha.zip) 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
    494a495,507
    >
    > 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;
    > }
    > }
    > }

  13. You must log in to post.