WordPress.org

Ready to get started?Download WordPress

Forums

P3 (Plugin Performance Profiler)
PHP ERROR (13 posts)

  1. valentino321
    Member
    Posted 2 years ago #

    When i try to launch a Scan i can't and i have a php error :

    Warning: file_put_contents(/var/www/"mysite"/wp-content/uploads/profiles/.htaccess) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/"mysite"/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 550
    
    Warning: file_put_contents(/var/www/"mysite"/wp-content/uploads/profiles/index.php) [function.file-put-contents]: failed to open stream: No such file or directory in /var/www/"mysite"/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 553
    
    Warning: opendir(/var/www/"mysite"/wp-content/uploads/profiles) [function.opendir]: failed to open dir: No such file or directory in /var/www/"mysite"/wp-content/plugins/p3-profiler/classes/class.p3-profiler-plugin-admin.php on line 475
    
    Cannot read profiles directory

    An issue?

    Thanks

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

  2. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Under settings -> media, what is the value of "Store uploads in this folder" ?

  3. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi valentino321, did you resolve this?

  4. garnser
    Member
    Posted 2 years ago #

    Hi,

    I actually have the same issue although I worked around it, for some reason the P3_PROFILES_PATH isn't called correctly, in my case I hardcoded it, I've no clue as to why this would be needed though

  5. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi garnser,

    P3_PROFILES_PATH is set from information returned by wp_upload_dir(). In 1.3.0 and later, this is set in the 'admin_init' hook. Previously it was set when the plugin was loaded (before the 'plugins_loaded' hook).

    Are you still changing this manually in v1.3.1?

    Do you have a custom upload path set in Settings -> Media -> Store uploads in this folder?

  6. garnser
    Member
    Posted 2 years ago #

    Hi Kurt,

    Yes we're using 1.3.1 although as asked we are using a custom upload path, the profiles directory has been created and the permissions is all alright.

  7. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi garnser,

    Is wp_upload_dir() returning your custom upload path?

  8. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Hi garnser, were you able to look into this further?

  9. valentino321
    Member
    Posted 2 years ago #

    There are no values under settings-->media but just settings about size images.

    Thank you to help me

  10. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    valentino321

    Are you running multisite?

    In your original message, you gave this path: /var/www/"mysite"/wp-content/uploads/profiles/index.php. Did you add the double quotes around mysite?

  11. valentino321
    Member
    Posted 2 years ago #

    No i have only 1 site.

    When i upload media, they go to upload folder (FTP), and the permission is 755.

  12. valentino321
    Member
    Posted 2 years ago #

    And these errors appear when i try to launch a scan on my site.

    regards

  13. Kurt Payne
    Member
    Plugin Contributor

    Posted 2 years ago #

    Do you have any plugins that enhance/affect media uploads or media management on your site? I'm curious if anything is hooking upload_dir.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags