webraket
Forum Replies Created
-
The code looks great on first inspection (can’t wait to use it).
However the select-list on super_admin screen fails with SharDB.
Even if it worked it will take too many resources with large networks.$aryBlogs = $wpdb->get_results($wpdb->prepare('SELECT blog_id FROM '.$wpdb->prefix.'blogs ORDER BY blog_id')); foreach ($aryBlogs as $aryBlog){ $objBlog = get_blog_details($aryBlog->blog_id, true); $aryOptions[$objBlog->blogname.'#'.$objBlog->blog_id] = '<option value="'.$objBlog->blog_id.'"'.($blog_id == $objBlog->blog_id?' selected="selected"':'').'>'.$objBlog->blogname.'</option>'."\n"; } ksort($aryOptions); foreach ($aryOptions as $strOption) echo $strOption;You should use $wpdb->blogs instead of $wpdb->prefix.’blogs’ to support SharDB/HyperDB/MultiDB etc.
Also please add a global setting to disable sitewide stats for super_admins since 20.000+ blogs in a select-list is trouble.
I can login to piwik itself (alternatively Analytics) to get a sitewide overview, and only need per-site stats for my users.Thanks.
WP-Piwik will create a new website in Piwik
Are you sure this works with a “view access only” token_auth (as suggested in wp-piwik settings)?
I have 20.000+ blogs running and no siteid’s are added to piwik.
I don’t know if this plugin can handle such ammounts anyway…Forum: Plugins
In reply to: Multisite (wp-admin/network/sites.php) order by "spam"Took me 2months to get this working without a required core hack.
It now also displays the sortable spam column on the “Network-Admin => Users” page (wp-admin/network/users.php)
Here is my final code:
Just drop it into wp-content/mu-plugins/Forum: Plugins
In reply to: Issues after removing Wp-Supercache Changing htaccessI’ve also had problems after uninstalling wp-super-cache today.
All pages except the homepage returned a 404.
Somehow it removesRewriteEngine On
RewriteBase /from the first lines after # BEGIN WordPress in .htaccess
Forum: Plugins
In reply to: [SharDB] [Plugin: SharDB] connection problem…I’ve encountered the same problems.
I fixed the “unable to connect to localhost:3306” error by commenting
# skip-networking in my.cnf
Mysql was only listening to local connections, it still does (firewall rules), but somehow “skip-networking” doesn’t allow the fsockopen() connection in db.php.The migration tool repeatedly returned an empty error after creating tables in the shards, this prevented the data from being inserted.
I fixed this by changing:if( !$target_object->query( $create[1] ) ) { $errors[] = $target_object->last_error; continue; }to:
$target_object->query( $create[1] );
in shardb-admin.phpI also changed:
$sites = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs} ORDER BY blog_id ASC LIMIT {$next}, 5" );to:
$sites = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs} ORDER BY blog_id ASC LIMIT {$next}, 1" );To prevent memory problems, with large tables.