• Resolved allanext

    (@allanext)


    Hi,

    I’ve just installed the plugin and I can set everything up but when I click on the attachment i get a new blank page and the file is not downloaded.

    The log error file give a:

    PHP Warning: in_array() expects parameter 2 to be array, null given in

    php -v
    PHP 7.0.33 (cli) (built: Jan 9 2019 22:04:26) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

    apachectl -v
    Server version: Apache/2.4.48 (Amazon)
    Server built: Jul 8 2021 16:24:43

    WordPress 5.7.2
    Woocommerce 5.4.2

    Any hints?
    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    Hello Allanext,

    Thanks for reaching out to us.

    This issue is might related to the permision of the attachment file.

    Generally, PHP Warning never cause an issue to showcase the attachments.

    Can you please check the attachment permision and set it to 776 and it might work for you?

    It might be possible that, this is your site specific issue and you can try it with another site and check its working fine or not.

    Best Regards,
    Hitendra & Dotstore Team

    Thread Starter allanext

    (@allanext)

    Hi Hitendra,

    thanks for getting back to me. The actual permissions of the file are:

    -rw-rw-r-- 1 apache apache 1216923 Aug 5 05:04 uploads/2021/07/file.pdf

    I’ve set the permissions to 776 as suggested but nothing happened.

    if I put the url of the file:

    https://site.comt/wp-content/uploads/2021/07/file.pdf

    The file loads properly. Is there something in some redirect or security that get’s blocked?

    Thank you,
    allanext

    Plugin Support Hitendra Chopda

    (@hitendra-chopda)

    hello Allanext,

    Thanks for reaching out to us again and for sharing the URL.

    Yes, this might be a redirection issue because once we try to open your PDF file then it’s redirecting to us another site.

    Can you please configure our plugin with the default WordPress theme and plugins?

    So we can confirm that issue is related to our plugin or another theme of plugin conflicts.

    Let us know still you need any help on this.

    Best Regards,
    Hitendra & Dotstore Team

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Doesn’t download attachment’ is closed to new replies.