Skip to content

Fatal error in wp-migrate-db-pro-compatibility.php #143

@rosswintle

Description

@rosswintle

Hi folks,

This may be related to #128. And it's a weird edge case, so probably low priority.

I have a local dev server with an old verson of Migrate Pro (v2.0.2)

I wanted to test something with Migrate Lite, so I disabled Pro and installed the current versions of Migrate Lite from the repo (v2.5.0)

When I visited the settings page it installed wp-migrate-db-pro-compatibility.php in my mu-plugins folder.

This then fatal-errored with:

Fatal error: Uncaught Error: Call to undefined method DeliciousBrains\WPMDB\Common\Compatibility\Compatibility::register() in <path>/wp-content/mu-plugins/wp-migrate-db-pro-compatibility.php:45
Stack trace:
#0 <path>/wp-settings.php(372): include_once() 
#1 <path>/wp-config.php(78): require_once('/Users/rosswint...') 
#2 <path>/wp-load.php(50): require_once('/Users/rosswint...') 
#3 <path>/wp-admin/admin.php(34): require_once('/Users/rosswint...') 
#4 <path>/wp-admin/tools.php(40): require_once('/Users/rosswint...') 
#5 /Users/<username>/.composer/vendor/laravel/valet/server.php(234): require('/Users/<username>...') 
#6 {main}
thrown in /Users/rosswintle/db/migrate-test/wp-content/mu-plugins/wp-migrate-db-pro-compatibility.php on line 45

I can repeatedly recreate this in this WordPress install by:

  • Deleting the wp-migrate-db-pro-compatibility.php file
  • Deactivate WP Migrate Lite plugin
  • Activate WPMigrate Lite plugin
  • Visit Tools -> WP Migrate (this re-creates the wp-migrate-db-pro-compatibility.php file
  • Load any page - site now fatals

I've not got time to dig into code and figure out what's going on. But hopefully this report is useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions