Title: Plugin breaks site migration
Last modified: July 12, 2023

---

# Plugin breaks site migration

 *  Resolved [SiteBolts](https://wordpress.org/support/users/sitebolts/)
 * (@sitebolts)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/plugin-breaks-site-migration/)
 * We were having trouble migrating a client’s site using All In One WP Migration,
   and the culprit turned out to be this plugin. Here was the stack trace:
 *     ```wp-block-code
       Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_user_by() in /public_html/wp-content/plugins/aryo-activity-log/classes/class-aal-api.php:89\nStack trace:\n#0 /public_html/wp-content/plugins/aryo-activity-log/classes/class-aal-api.php(161): AAL_API->insert()\n#1 /public_html/wp-content/plugins/aryo-activity-log/hooks/class-aal-hook-plugins.php(20): aal_insert_log()\n#2 /public_html/wp-content/plugins/aryo-activity-log/hooks/class-aal-hook-plugins.php(26): AAL_Hook_Plugins->_add_log_plugin()\n#3 /public_html/wp-includes/class-wp-hook.php(310): AAL_Hook_Plugins->hooks_deactivated_plugin()\n#4 /public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#5 /public_html/wp-incl…', referer:
       ```
   
 * Deactivating this plugin via FTP fixed the fatal error and allowed All In One
   WP Migration to finish its migration process.
 * The error was happening on both PHP 7 and 8.
 * Is it possible that you’re calling the `get_user_by()` function in a nonstandard
   location, such as an early-loaded WordPress hook where it isn’t guaranteed to
   exist yet? If so, you could probably fix the incompatibility by using `function_exists`.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * (@kingyes)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/plugin-breaks-site-migration/#post-16932477)
 * Hi [@sitebolts](https://wordpress.org/support/users/sitebolts/)
 * I added this support to our develop branch. It will release in the next release.
 * You can see the diff code there: [https://github.com/pojome/activity-log/pull/186/](https://github.com/pojome/activity-log/pull/186/)
 * Thank you.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/aryo-activity-log/assets/icon-256x256.png?rev=1944199)
 * [Activity Log - Monitor & Record User Changes](https://wordpress.org/plugins/aryo-activity-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aryo-activity-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aryo-activity-log/)
 * [Active Topics](https://wordpress.org/support/plugin/aryo-activity-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aryo-activity-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aryo-activity-log/reviews/)

 * 1 reply
 * 3 participants
 * Last reply from: [Yakir Sitbon](https://wordpress.org/support/users/kingyes/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/plugin-breaks-site-migration/#post-16932477)
 * Status: resolved