WordPress.org

Support

Support » Plugins and Hacks » P3 (Plugin Performance Profiler) » [Resolved] [Plugin: P3 (Plugin Performance Profiler)] Fatal error – "Cannot set profile flag file"

[Resolved] [Plugin: P3 (Plugin Performance Profiler)] Fatal error – "Cannot set profile flag file"

  • What’s this error?

    When I click o the “Fix this” button, it wants my FTP details. But wordpress as a whole can’t support secure FTP with a non-standard port (other than 22).

    Why do I need to provide FTP details for a plugin to work?

    Pls advise any workaround. Otherwise, a colossal waste of time.

    Thx

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Kurt Payne

    @kurtpayne

    Hi erick_paper,

    There’s a file that needs to be written to the plugin’s folder (p3-profiler/.profiling_enabled). It needs to be readable and writable by WordPress. If it isn’t set up correctly when the plugin is installed, then P3 offers to correct this situation using WordPress’ built in file system functions.

    P3 only passes the FTP credentials through to WordPress. They are not stored or sent anywhere else.

    These pages have more information on the exact API used:

    Tutorial: Using the WP_Filesystem

    http://codex.wordpress.org/Filesystem_API

    Thanks. My entire wp_content folder is writable.

    If P3 relies for anything on WordPress’ simple FTP creds, it won’t work at all. WordPress shamefully does not support SFTP with non-standard ports, which is quite common among server-hardened modern hosting environments.

    Plugin Contributor Kurt Payne

    @kurtpayne

    As far as WordPress SFTP support is concerned, I understand this is an important issue and I see that you have already opened a topic about this.

    As for P3, the latest version (1.1.2) was just released. One important change was made to the page that requests FTP credentials. The file that needs to be writable is displayed at the bottom of the page if you want to fix the permissions manually.

    So, our sites have FTP disabled completely. Does this mean we can’t use your plugin? Is there any way around this? I tried uploading the .profiling_enabled file and made it writable, but the plugin still won’t work.

    Plugin Contributor Kurt Payne

    @kurtpayne

    Hi Eric,

    Are you seeing the message in red that says “Cannot set profile flag file [click here to fix]” ?

    Correct. If I click on the ‘fix this’ button, it takes me to the FTP credentials page with this message at the bottom…

    Why am I being asked for this information?
    P3 cannot write to this file:
    /PATH/wp-content/plugins/p3-profiler/.profiling_enabled
    P3 needs to write to this file to toggle profiling for your site. If you want to fix this manually, please ensure the file is readable and writable by the web server.

    Plugin Contributor Kurt Payne

    @kurtpayne

    Eric,

    Can you verify that /PATH/wp-content/plugins/p3-profiler/.profiling_enabled exists and is writable by the webserver?

    Can you chmod the file, temporarily, to 666 to see if the message disappears?

    It works now. I had to disable and re-enable the plugin, then upload the .profiling file again, then set the file to 666 all before I accessed the plugin setting page.

    Thank you!

    Plugin Contributor Kurt Payne

    @kurtpayne

    Eric,

    You’re welcome! The main problem we’re facing is that if the plugin is loaded early, it can be more accurate when tracking the WordPress core, and some plugins. But if it’s loaded early, it’s outside of the WordPress framework, and that’s where we’re seeing most of our the support issues.

    We’re experimenting with a version of P3 that sacrifices a little accuracy for a lot more compatibility.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] [Plugin: P3 (Plugin Performance Profiler)] Fatal error – "Cannot set profile flag file"’ is closed to new replies.
Skip to toolbar