The MU forums have moved to

How can I fix this? (7 posts)

  1. Konstan
    Posted 16 years ago #

    [Mon Nov 26 21:51:20 2007] [error] [client] PHP Warning: call_user_func_array() [<a href=''></a>]: First argument is expected to be a valid callback, 'browse_happy' was given in /home/xxx/httpdocs/wp-includes/plugin.php on line 164, referer: http://xxx/wp-admin/wpmu-admin.php

    I am trying to use the Simple Trackback Validation plugin, and I get that error from the latest version or the one in Farm's comment spam pack. I've edited the file so it onlu appears for the site admin, but the error still comes up. There is another plugin that is doing that as well.

    I deleted the browse happy thing from my footer, and I've checked the line 164 and there is nothing that ways browse happy there, so whats up with that? What is causing this? And more importantly, what is it trying to do?

    Edit: Just tried some other links and I get this error for all of them so its not the plugin itself:

    referer: xx/wp-admin/wpmu-admin.php?page=signup_question_main
    referer: xx/wp-admin/wpmu-admin.php
    referer: xx/wp-admin/options-general.php?page=delete-blog

    And so on..

  2. Konstan
    Posted 16 years ago #

    I decided to add back

    function browse_happy() {
    	$getit = __( 'WordPress recommends a better browser' );
    	echo '
    		<p id="bh" style="text-align: center;"><a href="" title="'.$getit.'"><img src="images/browse-happy.gif" alt="Browse Happy" /></a></p>

    to /wp-admin/includes/template.php and behold, all errors are gone! So um, how do I go about removing this totally? I mean, something is calling this even after I remove the function...why?

  3. KKWangen
    Posted 16 years ago #

    There's a line saying add_action( 'admin_footer', 'browse_happy' ); right below the first code which you need to remove as well.

  4. Konstan
    Posted 16 years ago #

    Ah, that'll show me to search for all instances of something I am removing before saving the file.

  5. andrea_r
    Posted 16 years ago #

    Or, if it's a function you're trying to remove, go for removing the call to the function before removing the function itself. :D

  6. Konstan
    Posted 16 years ago #

    Thats what I thought I did :P

  7. andrea_r
    Posted 16 years ago #

    No, from the post above, you did it backwards. :P

About this Topic

  • Started 16 years ago by Konstan
  • Latest reply from andrea_r