• 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

    https://www.ads-software.com/extend/plugins/p3-profiler/

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

    (@kurtpayne)

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

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Hi valentino321, did you resolve this?

    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

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    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?

    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.

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    Hi garnser,

    Is wp_upload_dir() returning your custom upload path?

    Plugin Contributor Kurt Payne

    (@kurtpayne)

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

    Thread Starter valentino321

    (@valentino321)

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

    Thank you to help me

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    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?

    Thread Starter valentino321

    (@valentino321)

    No i have only 1 site.

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

    Thread Starter valentino321

    (@valentino321)

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

    regards

    Plugin Contributor Kurt Payne

    (@kurtpayne)

    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.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: P3 (Plugin Performance Profiler)] PHP ERROR’ is closed to new replies.