Winner of the Best WordPress Business Website - WP Honors 2011
Since 2004
 

Forums

 

Manuals

 

Videos

 

Live Support

 

WPMU.org

Wordpress MU Remote Call Removal Plugin

Inactive

Hello,

After upgrading to 2.8.1 I found myself with a bug. Even after a successful upgrade I get the Upgrade Message. Now after a Support Inquiry, Dr.Mike adviced me to look for this plugin:

Wordpress MU remote call removal Plugin by Barry from Clearskys.net Blog: This plugin will stop the annoying habit of trying to call out to update servers by sneaking in on the init action and removes all of the actions set up to make remote calls before they are processed.

<?php
/*
Plugin Name: Remove WPMU remote calls
Plugin URI: http://blog.clearskys.net/
Description: This plugin removes all WordPress remote site calls.
Author: Barry at clearskys.net
Version: 0.1
Author URI: http://blog.clearskys.net/
*/

function wpmu_remove_remotes() {

remove_action( 'init', 'wp_version_check' );
remove_action( 'load-plugins.php', 'wp_update_plugins' );
remove_action( 'load-update.php', 'wp_update_plugins' );
remove_action( 'admin_init', '_maybe_update_plugins' );
remove_action( 'wp_update_plugins', 'wp_update_plugins' );

remove_action( 'admin_init', '_maybe_update_themes' );
remove_action( 'wp_update_themes', 'wp_update_themes' );

if ( wp_next_scheduled('wp_update_plugins')) {
wp_clear_scheduled_hook('wp_update_plugins');
}

if ( wp_next_scheduled('wp_update_themes') ) {
wp_clear_scheduled_hook('wp_update_themes');
}

}

add_action('init', 'wpmu_remove_remotes', 1);
?>

First reason I am posting this is because this is the second time I find myself with this bug. First on a Single WP and now on WPMu so I want to make sure this info is properly documented for further development.

Secondly I am having trouble enabling this plugin.

I ask the author and he said it worked for version 2.8.1 but every time I upload the file my site will not load. (Blank Pages without errors)

As far as I know for Mu Plugins all I have to do is upload. But I am having trouble here.

Help Please!!

Thanks

PS. Added the txt file just in case I am copy and pasting something wrong.

Everyday at WPMU DEV we help hundreds of WP Users. Become a member today to:

  • Download 250+ Premium Plugins and Themes
  • Get unlimited support from WordPress Experts
  • Get help with your WordPress or BuddyPress projects

Help & Support from WPMU DEV members and staff

Inactive

Upload did not worked, don't know why?

Staff

Very odd - I believe Barry has a new and improved version on the way too though.

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Keeper of the Dark Chocolate

I believe Barry is only adding in a single additional call.

edit: Actually he has updated the post with the new code:

http://blog.clearskys.net/2009/03/08/how-to-remove-remote-calls-in-wordpress-mu/

Shouldn't have to enable it. We just add it right into the mu-plugins subdirectory.

If you're uploading it, that means you've copied and pasted into a program. What program did you use and how did you save the file?

Staff

Hi
There is a new "new" version, same link as Dr Mike gave above as there is "yet another" nag and check in the footer.

I'm going to do an audit of call outs in 2.8.1 when I get the chance as a number of things and function names have changed, etc.. But the plugin linked to above should still cover the most common and those capable of slowing the system down.

@WrSantiago: You should just have to cut and paste the lot and put it in a text file with a php extension, then upload it to the mu-plugins directory.

But keep an eye on that post because the code in it will change as I find more callouts.

Rgds
Barry

Keeper of the Dark Chocolate

Looks like the upgrade message issue was dealt with in the track and 2.8 branch. (We run off of the branch, not the download version) I wonder if we should keep Barry's extra line in there now.

Staff

Hi Dr Mike

There is also a call out on that action to check for the core update, so it not only nags, it checks and nags as far as I can tell from an earlier quick look at the code.

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Keeper of the Dark Chocolate

Okey dokie :)

Custom

being confused here :-(

uploaded the plugin to my mu-plugins folder, problems still eprsisting. How could I check if it is working?

The PROBLEM is that I can login as a site admin, and visit the back end, but all other users I have tested with can't acces the back end. It keeps loading and loading and nothing in my error logs :-(

Custom

please ignore my post. my problem was due to an outdated TOS plugin, which DeannaS has now updated and all is good :-)

Inactive

Alright guys,

I know this is not rocket science and I swear all I am doing is copy and pasting the code on the developers page into BBEdit on Mac, saving a remove-wpmu-remote-calls.php and uploading into mu-plugins.

Everytime I upload the site won't load, I don't get any errors, just a blank page. I could leave it like that but I have a few blogs running and yes all the blogs go down, blank pages.

Just in case it matters, I am running a full blown awesome WP.Mu install on a Psek Dedicated Server. I was thinking maybe I have some much stuff in this awesome install that is causing this issue.

Question: Any way to forcing plugin activation into the database? I dont even know what that means but I am trying.

Background: A two year blogger taking charge to make blogging a real industry here in the beautiful island of Puerto Rico. Limit knowledge on everything but I can follow direction very well after 6 years in the US Navy.

As always thank for keeping up such great community!!

W.

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Keeper of the Dark Chocolate

saving a remove-wpmu-remote-calls.php

What file type are you saving it as. Please make sure you;re saving it as a UTF8 or ANSI file. Also make sure that there's no spaces after the closing ?> mark.

Please double check your webserver's error logs as well. Just because you;re not seeing any errors doesn't mean the webserver isn't recording them

Please start a new thread on the additional questions about forcing plugins. You may even want to review the regular mu forums for "default plugins" as I believe it's been covered at some length.

Inactive

Thanks Dr. Mike, I found a space after the closing mark but the same thing happened. I also checked the Error Log and nothing shows up. I also checked the file type. Also tried with TextEdit.

Maybe another plugin causing the conflict? Like Ovidiu mentioned above. I did check the TOS version and I have the latest one.

Thanks Again
W.

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Erstwhile founder

A blank page usually indicates an error. Is error reporting turned on?

Thanks,
Andrew

Inactive

Sorry but, How do I turn On error reporting?

Thanks
W.

Inactive

Nevermind, just found the error log on the root folder but don't see any error for the times I made the changes.

Erstwhile founder

It's odd that there isn't anything int he log but a blank page definitely indicates an error.

Try tossing this into wp-config.php:

ini_set('error_reporting', E_ALL);

Thanks,
Andrew

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Inactive

Alright, so I added the line above and try to upload again, here is the last entry on the error log inside the root folder

[06-Aug-2009 12:27:45] WordPress database error Table 'webdevel_autowpz.wp__options' doesn't exist for query SELECT * FROM wp__options WHERE option_name = 'siteurl' made by require, require_once, include, get_header, locate_template, load_template, require_once, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, widget_friends, get_blog_option

Thanks,
W.

PS. What happen went I post a Job request? Should I contact a developer?

Erstwhile founder

That's a MySQL error and doesn't appear to be related to the plugin you're trying to add.

PS. What happen went I post a Job request?

Interested developers will contact you.

Should I contact a developer?

That's definitely an option. I can't imagine a developer would charge much to look at this problem for you.

Thanks,
Andrew

Inactive

Well, in fact I am looking for something much bigger and since I can't even fix this issue. I rather have a developer set up the rest of the things I was hoping to have ready for our blog two year anniversary. I think I will wait for someone a day or two if no response I will contact, any recommendation?

Thanks Andrew is always a pleasure to work with someone so knowledgeable.

W.

Erstwhile founder

I think I will wait for someone a day or two if no response I will contact, any recommendation?

I'm afraid we can't provide a recommendation. As long as you ask to see previous work you should be just fine.

Thanks,
Andrew

Keeper of the Dark Chocolate

Barry Barry where did this go? :)

Keeper of the Dark Chocolate

Found it:

http://snipt.net/cafespain/remove-remotes-plus-nag

Get personal, comprehensive and timely support and assistance
from WordPress Experts

Inactive

LOL - this error is coming up from both buddypress (using the friends plugin) and WPMU 3.1. Everyone should check their admin folder error logs. It's NOT a fluke, it's the friends script. A year later - still happening. I don't know why 80% of the plugins here are defunct. I've had to make changes for months on them. You guys are not really believing this "100% compatibility" right?

Do a google search - you only come back with the "Friends" plugin. How does that make it a DB error?

Inactive

2011 - Admin Error Log:

wp_Array_options' doesn't exist for query SELECT * FROM wp_Array_options WHERE option_name = 'siteurl' made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, dynamic_sidebar, call_user_func_array, widget_friends, get_blog_option

Staff

Hiya jabbermonkey,

I'm not exactly sure what you're referring to here. At any rate if you're using our 'friends' plugin here with BuddyPress you really shouldn't be. The plugin's page is pretty clear that it's only for multi-site installations not BuddyPress (BuddyPress already has a 'friending' ability anyway).

If you need further assistance, it's probably better to open a new thread as this one's rather old and can get overlooked.

Thanks!

We can help you out. Become a member today to:

  • Let our team help you out today and access to over 250+ Premium Plugins and Themes
  • Find out why people saying "it's like having your own developer"
  • WPMU DEV - The WordPress Experts