Support » Plugin: WP Customer Area » Error on install

  • Resolved anishagarwal01

    (@anishagarwal01)


    Hi,
    I installed the plugin and trying to test it, setup was done as instructed,

    I am getting error message multiple times :
    Deprecated: Required parameter $file follows optional parameter $post_id in C:\xampp\htdocs\wordpress\wp-content\plugins\customer-area\src\php\functions\functions-private-files.php on line 76

    Note: I am using in my localhost , so I can share my website link.

    How do I fix it?

    Also, I want to use the plugin only for file attachment feature, few questions:

    1. Can I delete the menu and rest of the pages?
    2. How to hide archive, details on my file/my-file page, it giving lot of information , I just want file link and download option.
    3. Any shortcode for file option to add in new page? I dont want to use dashboard / page / my-account feature

    Please help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter anishagarwal01

    (@anishagarwal01)

    Seems error is due to conflict with Astra theme, is there a way it can be resolved?

    Also, on file download link its showing Author, Date, Assigned to field, can it be hidden to just show download link?

    Plugin Contributor Foobar Studio

    (@foobarstudio)

    On our side, you can fix our code on file customer-area\src\php\functions\functions-private-files.php on line 76

    Change

    function cuar_get_the_attached_file_link($post_id = null, $file, $action = 'download', $force_download = false)

    to

    function cuar_get_the_attached_file_link($post_id, $file, $action = 'download', $force_download = false)

    Thread Starter anishagarwal01

    (@anishagarwal01)

    Thanks, it got resolved. I also tried to declare the variable post_id as string, that also resolved the issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.