Title: Plugin Error after site migration
Last modified: December 25, 2022

---

# Plugin Error after site migration

 *  Resolved [uomopalese](https://wordpress.org/support/users/uomopalese/)
 * (@uomopalese)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-after-site-migration/)
 * Hi, after site migration the plugin throw an error and wordpress is accessible
   only in recovery mode.
 * Deleted the plugin and reinstall, same error.
 *     ```wp-block-code
       Current plugin: Widgets for Google Reviews (version 9.7.1)
       PHP version 8.0.25
   
   
   
       Error Details
       =============
       An error of type E_ERROR was caused in line 631 of the file /home2/wgarageq/public_html/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php. Error message: Uncaught ArgumentCountError: Too few arguments to function TrustindexPlugin_google::{closure}(), 4 passed and exactly 5 expected in /home2/wgarageq/public_html/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php:631
       Stack trace:
       #0 [internal function]: TrustindexPlugin_google->{closure}(2, 'fopen(/home2/yb...', '/home2/wgarageq...', 66)
       #1 /home2/wgarageq/public_html/wp-admin/includes/class-wp-filesystem-direct.php(66): fopen('/home2/ybsvilup...', 'wb')
       #2 /home2/wgarageq/public_html/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php(638): WP_Filesystem_Direct->put_contents('/home2/ybsvilup...', '@font-face{font...', 511)
       #3 /home2/wgarageq/public_html/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php(552): TrustindexPlugin_google->handleCssFile()
       #4 /home2/wgarageq/public_html/wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_no_reg_header.php(217): TrustindexPlugin_google->noreg_save_css(true)
       #5 /home2/wgarageq/public_html/wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_no_reg.php(1): include('/home2/wgarageq...')
       #6 /home2/wgarageq/public_html/wp-content/plugins/wp-reviews-plugin-for-google/settings.php(311): include('/home2/wgarageq...')
       #7 /home2/wgarageq/public_html/wp-admin/admin.php(293): include('/home2/wgarageq...')
       #8 {main}
         thrown
       ```
   

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [uomopalese](https://wordpress.org/support/users/uomopalese/)
 * (@uomopalese)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-after-site-migration/#post-16319347)
 * I just received an automated ( i guess) email:
 * Your request to download the reviews of XXXXXXXX (Google page) has been successfully
   completed but we cannot send it to your site, because it is isolated (for example
   it is in development environment, localhost).
 * I guess this is my case, because the site at the moment is visible oly through
   IP. I think the problem will go away once the site will be published
 *  Plugin Support [liditrudex](https://wordpress.org/support/users/liditrudex/)
 * (@liditrudex)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-after-site-migration/#post-16325373)
 * Hi [@uomopalese](https://wordpress.org/support/users/uomopalese/) !
 * Let us know if you have issues on the public website!
 * Feel free to write us, if you need further assistanc,
 * Trustindex
 *  Thread Starter [uomopalese](https://wordpress.org/support/users/uomopalese/)
 * (@uomopalese)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-after-site-migration/#post-16586363)
 * Hi, in the end to solve the problem I had to manually delete the plugin table`
   wp_trustindex_google_reviews` from the database and reinstall the plugin.
 * Hope this helps.
    -  This reply was modified 3 years, 2 months ago by [uomopalese](https://wordpress.org/support/users/uomopalese/).
 *  [Lukas Metr](https://wordpress.org/support/users/kilian089/)
 * (@kilian089)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-after-site-migration/#post-16587157)
 * Hey [@uomopalese](https://wordpress.org/support/users/uomopalese/) [@liditrudex](https://wordpress.org/support/users/liditrudex/),
   unfortunatly even after doing that my website crashes when I try to reconfigure
   the plugin after reinstalling and activating it. It always crashes after the 
   third step in the configuration.
 * The website is always then completly unusable because of a “critical wordpress
   error”
 * My Logfile:
 *     ```wp-block-code
       [23-Mar-2023 08:30:36 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function TrustindexPlugin_google::{closure}(), 4 passed and exactly 5 expected in /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php:642Stack trace:
   
       0 [internal function]: TrustindexPlugin_google->{closure}(2, 'fopen(/mnt/web2…', '/www/htdocs/w01…', 66)
   
       1 /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-admin/includes/class-wp-filesystem-direct.php(66): fopen('/mnt/web207/a0/…', 'wb')
   
       2 /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php(649): WP_Filesystem_Direct->put_contents('/mnt/web207/a0/…', '@font-face{font…', 511)
   
       3 /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php(563): TrustindexPlugin_google->handleCssFile()
   
       4 /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_no_reg_header.php(219): TrustindexPlugin_google->noreg_save_css(true)
   
       5 /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-content/plugins/wp-reviews-plugin-for-google/tabs/setup_no_reg.php(1): include('/www/htdocs/w01…')
   
       6 /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-content/plugins/wp-reviews-plugin-for-google/settings.php(311): include('/www/htdocs/w01…')
   
       7 /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-admin/admin.php(293): include('/www/htdocs/w01…')
   
       8 {main}
   
       thrown in /www/htdocs/w01dd92f/monsec-webdesign.de/app/wp-content/plugins/wp-reviews-plugin-for-google/trustindex-plugin.class.php on line 642
       ```
   
    -  This reply was modified 3 years, 2 months ago by [Lukas Metr](https://wordpress.org/support/users/kilian089/).
 *  Thread Starter [uomopalese](https://wordpress.org/support/users/uomopalese/)
 * (@uomopalese)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-after-site-migration/#post-16587666)
 * Hi, also check that the `$table_prefix = 'wp_';` in the **wp-config.php** match
   the table prefix in the database.
 * As a last resort download and edit the **database.sql** file and **delete** any`
   trustindex` occurrence, basically in the `wp-option` and `wp-post` tables and
   all the various `ALTER TABLE` at the end of the file and the whole table `wp_trustindex_google_reviews`
   itself. Upload again.
 *  Plugin Support [liditrudex](https://wordpress.org/support/users/liditrudex/)
 * (@liditrudex)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/plugin-error-after-site-migration/#post-16946915)
 * Please use the newest version of the plugin!
 * Let us know if you experience any issues!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Plugin Error after site migration’ is closed to new replies.

 * ![](https://ps.w.org/wp-reviews-plugin-for-google/assets/icon-256x256.png?rev
   =2721569)
 * [Widgets for Google Reviews](https://wordpress.org/plugins/wp-reviews-plugin-for-google/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-reviews-plugin-for-google/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-reviews-plugin-for-google/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-reviews-plugin-for-google/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-reviews-plugin-for-google/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-reviews-plugin-for-google/reviews/)

## Tags

 * [site migration](https://wordpress.org/support/topic-tag/site-migration/)

 * 6 replies
 * 4 participants
 * Last reply from: [liditrudex](https://wordpress.org/support/users/liditrudex/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/plugin-error-after-site-migration/#post-16946915)
 * Status: resolved