Back to Community

Fixing the 'Database Tables Could Not Be Created' Error in Widgets for Google Reviews

7 threads Sep 23, 2025 PluginWidgets for google reviews

Content

One of the most common issues users encounter with the Widgets for Google Reviews plugin is an activation error related to database table creation. If you've seen a message like "Plugin activation failed because the required database tables could not be created!", you're not alone. This article will explain why this happens and walk you through the most effective solutions.

Understanding the Problem

During activation, the plugin attempts to create necessary database tables to store your review data and settings. The process can fail for several reasons:

  • Database User Permissions: The database user account your WordPress site uses might not have the necessary privileges to create new tables.
  • Character Set or Collation Conflicts: As seen in Thread 5, reviews containing non-Latin characters (like Arabic) can sometimes cause issues with the default table structure.
  • Existing Table Corruption: In some cases, as mentioned in Threads 4 and 7, the table might exist but be corrupted or have an incorrect structure, preventing the plugin from recognizing it.

Common Solutions to Try

Solution 1: Manually Create the Table via phpMyAdmin

The plugin often provides the exact SQL command needed. This is the most direct solution.

  1. Access your database management tool, usually phpMyAdmin, from your hosting control panel.
  2. Select your WordPress database from the list on the left.
  3. Click the "SQL" tab to open a query window.
  4. Copy and paste the entire CREATE TABLE SQL statement provided in the error message. Important: The table name in the error (e.g., RkG3d_trustindex_google_reviews) is specific to your site's database prefix. Do not change it.
  5. Execute the query. You should see a success message.
  6. Return to your WordPress plugins page and try activating the Widgets for Google Reviews plugin again.

Solution 2: Use the Plugin's "Re-create Tables" Feature

If you have already activated the plugin but are experiencing other database-related issues (like backup errors mentioned in Thread 2), there is a built-in tool.

  1. In your WordPress admin, go to Google Reviews > Settings > Advanced Settings.
  2. Look for the option labeled "Re-create the database tables of the plugin."
  3. Warning: As the plugin states, this will remove all your saved settings and downloaded reviews. This is a last-resort option.
  4. After using this tool, you will need to reconnect to Google and re-create your widgets.

Solution 3: Check for UTF8MB4 Support

Threads 5 and 6 highlight issues with foreign language characters. The plugin tries to create tables with utf8mb4 character set for full Unicode support. If your database is older, it might not support this.

  • If manual creation fails, try modifying the provided SQL command by changing CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci to CHARACTER SET utf8 COLLATE utf8_general_ci for the text and reply columns before executing it.
  • Contact your hosting provider to confirm your MySQL version supports the utf8mb4 character set.

What to Do If the Problem Persists

If you've tried these steps and the error continues, the issue might be more complex. When seeking help from the community or the plugin's support, be prepared to provide the following:

  • The exact error message.
  • A screenshot of the error.
  • Your WordPress and PHP versions.

Based on the sample threads, the 'Widgets for Google Reviews' team typically requests this information to investigate further.