Support » Installing WordPress » Call-time pass-by-reference has been deprecated

  • Just loaded it all up and I’d like to say I like it, but it is erroring out all over the place. (I’ve completed the install though and set some information by ignoring the faults…)
    Every page is headed by two entries of the form
    <i>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 stripslashes(). 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 …\wordpress\b2-include\b2template.functions.php on line 977</i> and repeat is line 979
    Calling the index page is then followed by lotsof undefined variables (showposts, user_ID, the_date, tags, output and string offsets. SFAICT I set all the options I should have – where do I start looking folks?
    (platform: PHP 4.3.1 & Apache 1.3.24 on Win2ksp3. The version of MySQL is either 3.23.49 or 4.0.13-nt depending on how I check!)

Viewing 11 replies - 1 through 11 (of 11 total)
  • (by the way – didn’t mean to be anonymous, and now not (as it were…)

    I’d start by editing your php.ini file, which by default is set to show you all errors, warnings and notices.
    You’ll find the error handling options starting around line 235. Comment out the line:
    error_reporting = E_ALL;
    Uncomment out the line:
    error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
    This will set it to only show you the fatal stuff and most (if not all) of your errors will disappear.

    deliberate

    (@deliberate)

    I ran into the same problems with a new install of 0.7.1.1 — then found your query here with its less than satifactory suggested cure and tired something else without change my E_ALL:
    In b2template.functions.php, I dropped use of references (&) on the variables:
    lines: 834 and 846 &$cat_name
    lines 1016, 1017, 1018 &$comment
    and the errors went away. Now I’m off to find out if I actually changed the functionality ir if this was simply old-style code as duggested by the error msg text.
    I liked your dentist analogy.

    I’m experiencing this issue as well.
    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 stripslashes(). 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/loficat/public_html/wordpress/b2-include/b2template.functions.php on line 977
    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 stripslashes(). 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/loficat/public_html/wordpress/b2-include/b2template.functions.php on line 979
    Warning: Cannot modify header information – headers already sent by (output started at /home/loficat/public_html/wordpress/b2-include/b2template.functions.php:977) in /home/loficat/public_html/wordpress/b2login.php on line 125
    Warning: Cannot modify header information – headers already sent by (output started at /home/loficat/public_html/wordpress/b2-include/b2template.functions.php:977) in /home/loficat/public_html/wordpress/b2login.php on line 129
    Warning: Cannot modify header information – headers already sent by (output started at /home/loficat/public_html/wordpress/b2-include/b2template.functions.php:977) in /home/loficat/public_html/wordpress/b2login.php on line 132
    Warning: Cannot modify header information – headers already sent by (output started at /home/loficat/public_html/wordpress/b2-include/b2template.functions.php:977) in /home/loficat/public_html/wordpress/b2login.php on line 134
    Warning: Cannot modify header information – headers already sent by (output started at /home/loficat/public_html/wordpress/b2-include/b2template.functions.php:977) in /home/loficat/public_html/wordpress/b2login.php on line 135
    Warning: Cannot modify header information – headers already sent by (output started at /home/loficat/public_html/wordpress/b2-include/b2template.functions.php:977) in /home/loficat/public_html/wordpress/b2login.php on line 136
    Warning: Cannot modify header information – headers already sent by (output started at /home/loficat/public_html/wordpress/b2-include/b2template.functions.php:977) in /home/loficat/public_html/wordpress/b2login.php on line 137
    Warning: Cannot modify header information – headers already sent by (output started at /home/loficat/public_html/wordpress/b2-include/b2template.functions.php:977) in /home/loficat/public_html/wordpress/b2login.php on line 157

    Any help would be appreciated. I apologize for the lengthy error message posted above, but it is what appears when attempting to log-in. I’d like to try WordPress, but am presently unable to. Many thanks.
    http://www.loficat.com/wordpress/

    FYI for those who are interested, I just found this thread:
    http://wordpress.org/support/2/160
    I don’t think the issue has been resolved yet, but it’s apparently in the works…

    OK Folks,
    I have tried modifying the offending pass by reference calls to pass by value and check the functionality afterwards. There are no problems with this.
    I have now checked this into CVS. It will be in the next release.
    In the meantime to remove your own warnings, simply remove the & (ampersand) character from those lines.
    Mike

    Thanks Mike!

    Thanks mike, this helped with socket scripts i’ve downloaded off the net, everywhere else just says to turn off the warnings or re-enable the socket thing 🙂
    -Agret

    removing the ‘&’ worked for me. Thanks

    I’ve veeb through this

    So I wrote an article with many solutions to this problem here http://www2.keyvez.com:82/?q=node/16

    Gaurav Misra
    http://www.keyvez.com

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Call-time pass-by-reference has been deprecated’ is closed to new replies.