WordPress.org

Ready to get started?Download WordPress

Forums

why the url is malformed, once i click search button? (4 posts)

  1. skybig
    Member
    Posted 1 year ago #

    http://domain/sitename/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20get_bloginfo%20was%20called%20with%20an%20argument%20that%20is%20%3Cstrong%3Edeprecated%3C/strong%3E%20since%20version%202.2!%20The%20%3Ccode%3Ehome%3C/code%3E%20option%20is%20deprecated%20for%20the%20family%20of%20%3Ccode%3Ebloginfo()%3C/code%3E%20functions.%20Use%20the%20%3Ccode%3Eurl%3C/code%3E%20option%20instead.%20in%20%3Cb%3E/home/iyanwu/iyanwu.com/wp3/wp-includes/functions.php%3C/b%3E%20on%20line%20%3Cb%3E3555%3C/b%3E%3Cbr%20/%3Ehttp://domainname/sitename?s=test

    if i set define('WP_DEBUG', false); in wp-config.php, this url will just be ok

    now my setup is define('WP_DEBUG', true);
    what i should do in order to make url looks well with this configuration?

  2. s_ha_dum
    Member
    Posted 1 year ago #

    urldecode that URL:

    http://domain/sitename/<b>Notice</b>: get_bloginfo was called with an argument that is deprecated since version 2.2! The home option is deprecated for the family of bloginfo() functions. Use the url option instead. in <b>/home/iyanwu/iyanwu.com/wp3/wp-includes/functions.php</b> on line <b>3555</b>http://domainname/sitename?s=test

    It should be more obvious what is happening now. The script is generating a deprecated notice where that URL is created. You need to open /wp3/wp-includes/functions.php, go to line 3555, find get_bloginfo('home') and replace it with get_bloginfo('url') as instructed in the message.

  3. skybig
    Member
    Posted 1 year ago #

    @s_ha_dum
    icannot find get_bloginfo('home') on line 3555

  4. s_ha_dum
    Member
    Posted 1 year ago #

    Sorry. I wasn't paying attention. That error message points to a line in the WordPress core files. When that happens it is usually misleading.

    Just look in your theme source files for get_bloginfo.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags