WordPress.org

Ready to get started?Download WordPress

Forums

Developer
[resolved] Theme Test Drive Activation Error (3 posts)

  1. Siobhan
    Administrator
    Posted 1 year ago #

    I'm getting a fatal error when I try to install the Theme Test Drive plugin.

    Fatal error: Call to undefined function get_error_message() in /Applications/MAMP/htdocs/beta/wp-content/plugins/developer/developer.php on line 363

    I've tried this on both WordPress 3.4.2 and 3.5 RC2 installed on localhost using MAMP.

    Here's a screenshot of the issue: http://cl.ly/image/0308443N0D2T

    Update: same issue with Reveal IDs:

    Fatal error: Call to undefined function get_error_message() in /Applications/MAMP/htdocs/beta/wp-content/plugins/developer/developer.php on line 347

    Screenshot: http://cl.ly/image/071F1n0g0r1A

    http://wordpress.org/extend/plugins/developer/

  2. Sergey Biryukov
    WordPress Dev
    Posted 1 year ago #

    The undefined function error is fixed in Developer 1.1.2:
    https://github.com/Automattic/developer/commit/c4e01c31ac288dabd721b04fa47d67beae4c6278

    Reveal IDs was also replaced with Simply Show IDs:
    https://github.com/Automattic/developer/commit/ec161cdac5fb9ad46ca677086035c759e22582fa

    However, there's still an error when installing Theme Test Drive:

    <br />
    <b>Warning</b>:  Illegal offset type in isset or empty in <b>wp-includes/class-wp-error.php</b> on line <b>117</b><br />
    ERROR: Failed to activate plugin:

    This is caused by passing the WP_Error object itself as the error code:
    http://plugins.trac.wordpress.org/browser/developer/tags/1.1.2/developer.php#L364

    Once I replaced that with $activate_result->get_error_message(), I got the proper message:

    ERROR: Failed to activate plugin: Plugin file does not exist.

    The plugin looks for theme-test-drive/theme-test-drive.php file, which doesn't exist. The correct file is theme-test-drive/themedrive.php.

    I've created a pull request: https://github.com/Automattic/developer/pull/38.

  3. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 1 year ago #

    Thanks Sergey, we'll take a look tomorrow.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags