jeeverett
Forum Replies Created
-
Huh, running a scan with debugging mode enabled doesn’t appear to have added much useful information. The only error is still:
..
[Nov 18 14:47:52] Calling fork() from wordfenceHash with maxExecTime: 15
[Nov 18 14:47:52] Entered fork()
[Nov 18 14:47:52] Error writing value chunk for wfsd_engine (MySQL error: [0] )Does that help at all? ??
I’m also looking into upgrading the PHP version. Thanks again!
Hi,
Yes, it appears the error also shows up periodically in the “scan detailed activity” box. For example:
…
[Nov 15 13:26:29] Analyzed 3100 files containing 34.93 MB of data so far
[Nov 15 13:26:29] Analyzed 3200 files containing 36 MB of data so far
[Nov 15 13:26:31] Error writing value chunk for wfsd_engine (MySQL error: [0] )
[Nov 15 23:52:56] Scheduled Wordfence scan starting at Tuesday 15th of November 2016 11:52:56 PM
…Current PHP version is 5.3.26.
It sounds like I should try enabling debugging mode then? Thanks for the help! ??
Forum: Plugins
In reply to: [Join My Multisite] [Plugin: Join My Multisite] Site Admin vs Network Admin?Wonderful! Thank you very much for the quick changes! The plugin looks like it will be really handy for our academic multisite install. ??
Forum: Themes and Templates
In reply to: [ColorWay] [Theme: ColorWay] White screen when active themeI am having the same problem, although I’m running WordPress 3.4.0. The ColorWay theme (only) appears fine on the site view, but trying to switch to the dashboard or any settings screen just pulls up a white screen. Switching to a different theme by hand, the (specific) blog works fine. If it’s important, we’re running a Multisite install, with about 200 blogs and ~30 other themes (none of the others are having any issues).
Forum: Plugins
In reply to: [PJW Mime Config] [Plugin: PJW Mime Config] Not working with 3.3.1One other item to note.. it looks like other plugins/themes that add new MIME types are having problems since 3.3.1, too. The forums for the theme Minimatica have a post about it:
https://www.onedesigns.com/support/topic/possible-bug-with-mime-types-in-3-3-1
Perhaps the formatting on the array that WordPress uses to store MIME types has changed?
Forum: Plugins
In reply to: [PJW Mime Config] [Plugin: PJW Mime Config] Not working with 3.3.1I also have found that as of 3.3.1 this plugin is non-functional. ?? The plugin worked perfectly previous to upgrading to 3.3.1, but now MIME types added via the plugin do not override the ‘file type does not meet security guidelines’ error. ?? Any possibility of getting this fixed? ??
Forum: Plugins
In reply to: [Plugin: Active Directory Integration] Single config for multisiteOh.. you’ll also need to add the network_timeout section from the protected function _save_wpmu_options($arrPost). Otherwise, the database won’t store the setting for AD Network Timeout, and it will always reset to zero (which the plugin can’t handle).
Forum: Plugins
In reply to: [Plugin: Active Directory Integration] Single config for multisiteHmm.. that sounds like you have a PHP bug somewhere. If PHP decides that it can’t process the code of a file, it still sends a blank file. It’s usually a parentheses out of place or a missing semicolon. ??
The method you propose will probably work, with one modification that I can think of.. the $wpmuBaseTablePrefix variable. That one doesn’t get assigned in Curtiss’ modification, and it’s deprecated with no automatic redirect to a new variable. Just look through the code above for where to switch that with $wpdb->base_prefix;
Forum: Plugins
In reply to: [Plugin: Active Directory Integration] Single config for multisiteJust a quick addition to the previous post about modifying the Active Directory Integration plugin for multisite use.. there is one other critical change that must be made along with the above:
Look for this section in the ad-integration.php file:
if (function_exists(‘register_uninstall_hook’)) {
register_uninstall_hook(__FILE__, ‘ADIntegrationPlugin::uninstall’);
}Comment that out. I don’t understand why a plugin installed in the mu-plugins folder should ever be receiving an uninstall hook, but with that code enabled every few hours the plugin will lose all of its settings, locking everyone except the ID 1 user out. I’ve also on one occasion had the plugin somehow change the ID 1 (administrator) account password, something it should not be able to do. If anyone happens to have this happen, you don’t have to delete the whole plugin in order to get back in.. just comment out the following three lines in your ad-integration.php:
add_action(‘lost_password’, array(&$this, ‘disable_function’));
add_action(‘retrieve_password’, array(&$this, ‘disable_function’));
add_action(‘password_reset’, array(&$this, ‘disable_function’));That will let you request a new password for your administrator account.
Forum: Plugins
In reply to: [Plugin: Active Directory Integration] Single config for multisiteThis thread has been quiet for a while, but I thought I’d post some tweaks to the AD Integration plugin that get multisite working (semi) properly. Taking a cue from Curtiss, I went in and actually changed every call in the plugin that was looking for a deprecated variable or using a deprecated function, as well as fixed a few bugs with the coding of the plugin itself. For anyone trying to use this plugin with a multisite WordPress install, here are the necessary changes:
In file /active-directory-integration/ad-integration.php:
In public function _construct():
- Remove globals $wpmu_version and $wpmuBaseTablePrefix – both are deprecated.
- Remove first check for if IS_WPMU defined entirely.
- Replace the add_action(‘admin_menu’… line with the following statement:
if (function_exists(‘is_network_admin’)) {
add_action(‘network_admin_menu’, array(&$this, ‘add_options_page’));
} else {
add_action(‘admin_menu’, array(&$this, ‘add_options_page’));
}
In public function initialize_options():
- Replace if (IS_WPMU) { with if (is_multisite()) {
- Replace if (is_site_admin()) { with if (is_super_admin()) {
In public function add_options_page():
- Replace if (IS_WPMU && is_site_admin()) { with if (is_multisite() && is_super_admin()) {
- Replace the add_submenu_page(… line with add_submenu_page(‘settings.php’, __(‘Active Directory Integration’), __(‘Active Directory Integration’), ‘manage_options’, __FILE__, array(&$this, ‘_display_options_page’));
- Replace the final if (!IS_WPMU) { with if (!is_multisite()) {
In public function authenticate($arg1 = NULL, $arg2 = NULL, $arg3 = NULL):
- Remove global $wpmu_version and the check for IS_WPMU directly below it.
- Replace all instances of $version with $wp_version.
In public function sanitize_syncback_global_user_pwd($pwd):
- Replace if (IS_WPMU) { with if (is_multisite()) {
In public function sanitize_bulkimport_user_pwd($pwd):
- Replace if (IS_WPMU) { with if (is_multisite()) {
In public static function global_db_prefix():
- Remove globals $wpmu_version and $wpmuBaseTablePrefix
- Replace if ($wpmu_version != ”) { with if (is_multisite()) {
- Replace return $wpmuBaseTablePrefix; with return $wpdb->base_prefix;
In public static function activate()
- Remove global $wpmu_version
- Replace all four instances of if (isset($wpmu_version) && $wpmu_version != ”) { with if (is_multisite()) {
In public static function deactivate():
- Replace if (isset($wpmu_version) && $wpmu_version != ”) { with if (is_multisite()) {
In protected function _save_wpmu_options($arrPost):
- Replace if (IS_WPMU) { with if (is_multisite()) {
- Below the two lines mentioning ‘AD_Integration_use_tls’, add the following two lines: if ( !empty( $arrPost[‘AD_Integration_network_timeout’] ) )
update_site_option(‘AD_Integration_network_timeout’, (int)$arrPost[‘AD_Integration_network_timeout’]);
In protected function _generate_authcode():
- Replace if (IS_WPMU) { with if (is_multisite()) {
In file /active-directory-integration/admin.php:
In php tag:
- Replace if (IS_WPMU) { with if (is_multisite()) {
- Replace if (!is_site_admin()) { with if (!is_super_admin()) {
- Replace if (IS_WPMU && $_POST[‘action’] == ‘update’) { with if (is_multisite() && $_POST[‘action’] == ‘update’) {
- Replace the final instance of if (IS_WPMU) { with if (is_multisite()) {
Further down in the same file, look for many instances of (!IS_WPMU)echo, replacing each with (!is_multisite())echo.
Some important notes:
- The plugin folder itself needs to be placed in your mu-plugins directory within wp-content. If this folder does not currently exist, create it. Within the active-directory-integration folder, look for a folder named ‘mu’. Inside is a little file labeled ‘ad-integration-loader.php’. This file needs to be moved to the mu-plugins directory.
- The above code tweaks move the settings menu from the Site Admin settings menu over to the Network Admin settings menu. Unlike other tweaks mentioned here, the various settings tabs will display properly, however the ‘Test Tool’ button will be gone, and that feature will be at the bottom of all of the tab pages.
- You’ll need to re-add the AD settings after making the above changes.. the new data is stored in an entirely different database table.
- When you save settings, it will jump you back to the first settings page, and you won’t get any notice that the settings were saved. They should save properly, however.
- Two features of the plugin are entirely broken in multisite: the Test Tool and the Bulk User Import. These are not due to the tweaks made above, but seem to be unfinished parts of the plugin coding itself. There are a few places in the .php files related to those two features that contain deprecated calls as well that can be fixed, however the features will not work regardless. I’d love to see those fixed, however..
- Finally, while the above changes worked for my Multi-subdirectory WordPress install, I don’t guarantee it will work for anyone else. I’m not a WordPress programmer, although I know HTML and PHP reasonably well. I’d love to see this plugin get an official update, too!
Never mind.. I figured it out.
Doh.. I also forgot to mention we’re using WordPress 3.2.1.
Ok, a quick update on this one.. I was able to fix the issues by changing the write permissions for this directory:
/wordpress/wp-content/plugins/diamond-multisite-widgets/
Simply setting the cache timer to zero did not work. Thanks again for a great plugin!
Hi Daniel,
I can get the webserver settings changed, no problem.. which specific directories/files does Diamond Multisite Widgets needs write access to?
I already tried changing the permissions on this specific file:
/wordpress/wp-content/plugins/diamond-multisite-widgets/diamond-cache.php
It didn’t fix the problem. Does the whole diamond-multisite-widgets folder need to be given write access? Thanks for working on this!
Forum: Networking WordPress
In reply to: Multi-subdirectory sitemap?Excellent, I think diamond-multisite-widgets just might do the trick! Thank you for the help!