Hi guys, I figured out how to get my testimonials working in multisite 3.1.1 and thought I would share since many of you are having the same problem. Here are the steps to fix it:
- Go to Network Admin > Plugins > WP Customer Reviews > Edit
- Make sure you are looking at wp-customer-reviews.php
- Scroll to line 39 and look for
global $table_prefix; - Change this to
global $wpdb; - Scroll a little more until you see
$this->dbtable = $table_prefix.$this->dbtable; - Change this to
$this->dbtable = $wpdb->prefix.$this->dbtable; - Save the file (this gave me an error page, but go back and refresh to see if it updated.
Then I'm assuming if you disable and re-enable it it will work, but instead since I am only using it on one of my sites I ran SQL to create the table for the site I was using. Here is how you would do this in a way that I have tested and am SURE works:
- Open up your database manager in PHPmyAdmin
(you can find your login details in wp-config.php in the root of your site if you don't remember them or had your host create the database) - Navigate to your wp_wpcreviews table (click on it)
- Click the export tab - leave the settings default and make sure it exports to SQL code
- Copy this code
- Go back to the main part of your database
- Click the SQL tab
- Paste the code into the box
- MAKE SURE YOU CHANGE the table name from wp_wpcreviews to wp_6_wpcreviews (where 6 is the number of the site you want it installed in)
- You can repeat this step (changing the site number) for multiple sites on your wordpress install that you want this to work on