WordPress.org

Ready to get started?Download WordPress

Forums

P3 (Plugin Performance Profiler)
[resolved] Help! the plugin borke my site and I can't resolve i (7 posts)

  1. jzvestor
    Member
    Posted 2 years ago #

    we tried installing this plugin on our network and teh site went down and was replaced by this error"

    Fatal error: Unknown: Failed opening required '/home/trailshe/public_html/wp-content/plugins/p3-profiler/start-profile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0

    I tried renaming the plugin folder, and completely removing the plugin folder, neither or which brought the site back. Are there other files hiding somewhere?

    http://wordpress.org/extend/plugins/p3-profiler/

  2. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Check your site's .htaccess file. There should be a section in there like:


    # BEGIN p3-profiler
    php_value auto_prepend_file "/var/www/html/wordpress/wp-content/plugins/p3-profiler/start-profile.php"
    # END p3-profiler

    Remove that section.

  3. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    The plugin is designed to work in the "install -> activate -> deactivate -> delete" workflow. For sites using mod_php, the plugin attempts to add itself to .htaccess (this is the "php_value ..." line). This gives more accurate profiling results because it's guaranteed to load first.

    The .htaccess install/uninstall is automatically handled in the activate / deactivate logic. If you manually remove the plugin files while this .htaccess line is still there, it can cause this error.

    I'm looking into a more robust solution. Thanks for reporting this. If you can provide other information that would be helpful, please let me know.

  4. jzvestor
    Member
    Posted 2 years ago #

    I found the culprit, it was a few lines that p3 added to the end of the .htaccess if anyone else has the same problem. Remove those and you're good to go.

    Does this not work with MU?

  5. jzvestor
    Member
    Posted 2 years ago #

    ha, I see you answered me before I answered myself! thank you.

  6. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    I tested this with WordPress multisite with the .htaccess method. Did this cause problems for one site, or across the whole network?

  7. PhilEsq
    Member
    Posted 2 years ago #

    I posted this after I noticed it was marked resolved so I am reposting in a new thread. However, I do not see how to delete this post.

    I installed P3 in multisite but I have no idea where to run the profile I don't see any evidence, in the network admin, of P3 except in the list of plug-ins. I installed P3 from the plug-in dashboard and clicked on network activate.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic