error... Call-time pass-by-reference ????

2001-09-21
2002-03-31
  • I just set up webcal onto my server, and got this error...  I don't have any idea what it's talking about.   I've never worked with php before..  the server is running PHP4

    you can see the error for yourself at http://delawarewing.org/cal/

    Warning: Call-time pass-by-reference has been deprecated - argument passed by value; 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. However, future versions may not support this any longer. in /home/delaware/public_html/cal/includes/php-dbi.inc on line 154

    Warning: Cannot add header information - headers already sent by (output started at /home/delaware/public_html/cal/includes/php-dbi.inc:154) in /home/delaware/public_html/cal/includes/functions.inc on line 33
    Please go here.. (link to login.php)

     
    • I have the same error..

       
    • I did some searching, and I found that it's due to some bad coding, and PHP4 is letting you know about it...  it can be turned off, but you have to have access to edit the php.ini file, on the server, which (guess what) I don't have.

      does anybody have a fix for this?

       
    • I have a fix... it will only work, if your database isn't oracle, though..  I simply removed the section of the script that caused the error.. something about accessing the oracle server.

      http://delawarewing.org/cal/fix/php-dbi.inc.txt ... get that file, and rename it to php-dbi.inc and put in in the includes folder.. the error message should go away.

      btw.. the error was in the "dbi_fetch_row" function command..

       
      • Brandon Molnar
        Brandon Molnar
        2001-09-26

        That fixed one error but I still get this one:

        Warning: Cannot add header information - headers already sent by (output started at /home/fccwadsw/public_html/testcalendar/includes/php-dbi.inc:236) in /home/fccwadsw/public_html/testcalendar/includes/functions.inc on line 33
        Please go here.. (links to login.php)

         

        • Anonymous
          2001-11-24

          Im running Linux-Mandrake 8.0 . I had to edit the php.ini file which on my machine is located at /etc/php.ini . First I opened a terminal window and logged in as su (administrator) and then entered Kedit at the command line. Changed to /etc/php.ini and scrolled down to where it says output_buffering = Off. I changed it to ON .Clicked save. Then rebooted the machine to make sure everything would take effect . Went back to webcalendar and noticed the warnings were gone.  Rudy

           
      • oh...  I just got a 404 error report from my server..  :)

        I moved the folder, if anybody wants that fix... 

        http://delawarewing.org/calendar/fix/php-dbi.inc.txt

        to see a sample of my 404 error page.. http://www.delawarewing.org/ghneoighoindth.hgp

        it's just a simple .shtml page that uses SSI and formmail to let me know about errors.  simple, but cool