• Resolved LanceB

    (@lanceb)


    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
    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://ww.wp.xz.cn/extend/plugins/customer-area/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    Hi,

    I’ll try to reproduce that and get back to you.

    Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    Could you also tell me which plugin version you are running?

    Thread Starter LanceB

    (@lanceb)

    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

    (@vprat)

    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

    (@lanceb)

    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

    (@vprat)

    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

    (@kal11)

    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

    (@vprat)

    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

    (@vprat)

    I have released version 1.4 today, your bug should be fixed (make sure to refresh the permalink structure too)

    kal11

    (@kal11)

    Just English mate

    Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    Is the bug fixed after updating to 1.4.0 and rebuilding the permalinks?

    kal11

    (@kal11)

    I’ve just tried it and t worked like magic thank you very much for your hard work

    Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    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.

    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

    (@vprat)

    Hi,

    we are working on the documentation. You can see this in the meantime:

    http://ww.wp.xz.cn/support/topic/hiding-files-before-log-in?replies=5#post-4225158

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

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