WordPress.org

Ready to get started?Download WordPress

Forums

Call-time pass-by-reference has been deprecated (12 posts)

  1. Anonymous
    Unregistered
    Posted 11 years ago #

    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!)

  2. AliW
    Member
    Posted 11 years ago #

    (by the way - didn't mean to be anonymous, and now not (as it were...)

  3. pixilated
    Member
    Posted 11 years ago #

    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.

  4. deliberate
    Member
    Posted 10 years ago #

    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.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    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

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    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/

  7. loficat
    Member
    Posted 10 years ago #

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

  8. Mike Little
    Member
    Posted 10 years ago #

    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

  9. loficat
    Member
    Posted 10 years ago #

    Thanks Mike!

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    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

  11. Anonymous
    Unregistered
    Posted 9 years ago #

    removing the '&' worked for me. Thanks

  12. keyvez
    Member
    Posted 8 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.