Title: Error When Accessing File
Last modified: August 21, 2016

---

# Error When Accessing File

 *  Resolved [LanceB](https://wordpress.org/support/users/lanceb/)
 * (@lanceb)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/)
 * Hello,
 * The Customer Area plugin that you created for WordPress is exactly what I have
   been looking for. However I am having some problems with the functionality and
   hope there is a fix for this. I have tried looking for troubleshooting information
   on your site or the wordpress plugin site but have not found anything.
 * I am running WP version 3.5.1 and tried the typical steps of activating the default
   Twenty Eleven theme and deactivating all other plugins to check for theme and/
   or theme conflict but am still having the same issues.
 * Here is what is happening:
    - **File upload works when admin is assigned as owner**
    - **404 error occurs when trying to access file as admin through the new customer
      area page**
    - **Cannot upload file when other user is assigned as owner**
    - **This error is displayed when trying to assign customer file to user:**
    - Warning: copy(/home/globalcn/public_html/ers/wp-content/customer-area/2_518c26d0b5710/
      test-document.pdf) [function.copy]: failed to open stream: Permission denied
      in/home/globalcn/public_html/ers/wp-content/plugins/customer-area/includes/
      core-addons/private-file/private-file-admin-interface.class.php on line 271
    - Warning: Cannot modify header information – headers already sent by (output
      started at /home/globalcn/public_html/ers/wp-content/plugins/customer-area/
      includes/core-addons/private-file/private-file-admin-interface.class.php:271)
      in /home/globalcn/public_html/ers/wp-includes/pluggable.php on line 876
 * The website is located at [http://ecorecoverysystems.com](http://ecorecoverysystems.com)
   
   I am currently in development of the website so there is a redirect to a temporary
   splash page using the JF3 Maintenance Redirect plugin. If needed I can grant 
   you access to troubleshoot.
 * Thank you in advance for any help you can provide.
 * [http://wordpress.org/extend/plugins/customer-area/](http://wordpress.org/extend/plugins/customer-area/)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/error-when-accessing-file/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-when-accessing-file/page/2/?output_format=md)

 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740455)
 * Hi,
 * I’ll try to reproduce that and get back to you.
 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740461)
 * Could you also tell me which plugin version you are running?
 *  Thread Starter [LanceB](https://wordpress.org/support/users/lanceb/)
 * (@lanceb)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740516)
 * Hi Thanks for your response,
 * I just updated to the latest plugin version today 1.3.1. It now seems to work
   great when the owner is assigned to admin.
 * However when you try to update the owner you get this error:
    Warning: copy(/
   home/globalcn/public_html/ers/wp-content/customer-area/2_518c26d0b5710/website-
   mock-up.jpg) [function.copy]: failed to open stream: Permission denied in /home/
   globalcn/public_html/ers/wp-content/plugins/customer-area/includes/core-addons/
   private-file/private-file-admin-interface.class.php on line 271
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/globalcn/public_html/ers/wp-content/plugins/customer-area/includes/core-
   addons/private-file/private-file-admin-interface.class.php:271) in /home/globalcn/
   public_html/ers/wp-includes/pluggable.php on line 876
 * If I then refresh it seems that it does assign it to the new user anyway, but
   then if that user tries to download or view the file you get this error:
 * File not found or inaccessible!
    /home/globalcn/public_html/ers/wp-content/customer-
   area/2_518c26d0b5710/website-mock-up.jpg website-mock-up.jpg
 * Thanks again
 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740520)
 * Hi,
 * The plugin stores each owner’s files into a subdirectory of you WordPress’ wp-
   content directory.
 * When you change the owner, the plugin will copy the file from the previous owner’s
   directory to the new owner’s directory. That’s when you encounter your bug: the
   copy is failing, most probably because the directory is protected (“Permission
   denied”).
 * Make sure the directory for customer area has all the permissions for file copy/
   deletion.
 * And because that copy fails, the file is not found when the new owner tries to
   download it (“File not found or inaccessible!”).
 *  Thread Starter [LanceB](https://wordpress.org/support/users/lanceb/)
 * (@lanceb)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740522)
 * Thanks so much. That worked.
 * The customer area folder was set to 755. Changed it to 775 and everything seems
   to be running smooth.
 * Thanks again for your help.
 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740524)
 * You’re welcome. Thanks for the good review as well. I’ll try to add something
   in the settings to warn about such permissions if they are not set properly.
 * By the way, please send me some ideas for new features if you have any, I am 
   actively looking for new things to integrate.
 * Vincent
 *  [kal11](https://wordpress.org/support/users/kal11/)
 * (@kal11)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740563)
 * Hey there I’ve just used your plugin and it’s great except when a client or a
   customer tries to view or download a file from their client area it gave out 
   404 error which I’m not used to get from any other plugin or page on my website
   but I’ve figured out a way round changing the permalinks to custom structure 
   with date and post name thats the only way that it has worked and by the way 
   I have checked the permissions via ftp
 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740568)
 * Just to make sure I fixed the right bug, are you using any other language than
   English in your site?
 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740570)
 * I have released version 1.4 today, your bug should be fixed (make sure to refresh
   the permalink structure too)
 *  [kal11](https://wordpress.org/support/users/kal11/)
 * (@kal11)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740571)
 * Just English mate
 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740572)
 * Is the bug fixed after updating to 1.4.0 and rebuilding the permalinks?
 *  [kal11](https://wordpress.org/support/users/kal11/)
 * (@kal11)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740573)
 * I’ve just tried it and t worked like magic thank you very much for your hard 
   work
 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [13 years ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740575)
 * You’re welcome. Please leave a review and a rating if you’re happy with the plugin&
   support. Also don’t forget to checkout our new extensions on [http://www.marvinlabs.com/shop](http://www.marvinlabs.com/shop).
 *  [fmonteiros](https://wordpress.org/support/users/fmonteiros/)
 * (@fmonteiros)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740661)
 * Helo!
 * Basicaly, I have the same kind of problem.
 * At the puglin menu, I create a private page, but when the user login the page
   and the files don’t appear.
 * Is there a Tutorial, step by step, to show how create this customer área?
 * Thanks!
 *  Plugin Contributor [Vincent Mimoun-Prat](https://wordpress.org/support/users/vprat/)
 * (@vprat)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/error-when-accessing-file/#post-3740669)
 * Hi,
 * we are working on the documentation. You can see this in the meantime:
 * [http://wordpress.org/support/topic/hiding-files-before-log-in?replies=5#post-4225158](http://wordpress.org/support/topic/hiding-files-before-log-in?replies=5#post-4225158)

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/error-when-accessing-file/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/error-when-accessing-file/page/2/?output_format=md)

The topic ‘Error When Accessing File’ is closed to new replies.

 * ![](https://ps.w.org/customer-area/assets/icon-256x256.png?rev=1288039)
 * [WP Customer Area](https://wordpress.org/plugins/customer-area/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/customer-area/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/customer-area/)
 * [Active Topics](https://wordpress.org/support/plugin/customer-area/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/customer-area/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/customer-area/reviews/)

 * 16 replies
 * 5 participants
 * Last reply from: [flpnvs](https://wordpress.org/support/users/flpnvs/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/error-when-accessing-file/page/2/#post-3740673)
 * Status: resolved