• Resolved keengamer

    (@keengamer)


    Hello, as I wrote here https://www.ads-software.com/support/topic/forbidden-download-of-complianz-file/ the PDF file does not work, it has 0 Kb.

    Is there a way of changing the folder where it’s uploaded or probably better to disable and remove this text completely from the terms?

    Also, you write that download.php is located in the uploads folder, it’s not. We have it just in your plugin and I am sure that it can run from the plugin folder.

    We have some security restrictions in place.

    How can we solve it?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support jarnovos

    (@jarnovos)

    Hi @keengamer,

    Indeed, seems that I wrote a wrong path in my previous post. Excuse me if that caused any confusion.

    But the behavior differs in your case, as opening the file doesn’t result in a 403 Forbidden error; although it does result in an empty PDF file being downloaded.

    The first thing I would try here is to give the plugin a bit of a nudge, so that it tries regenerating the document. Under Complianz -> Terms & Conditions -> Questions -> Communication, you will see the question Do you want to limit the interpretation of this document to your current language?

    Change the answer of this question to the other answer than you currently have it set to, save settings, and then change it back to the ‘original’ setting; then check if that resolves the behavior.

    If not, you can indeed decide to simply remove this section from your document; which you can do by editing the page in the Gutenberg editor, selecting the document block and setting the “Document Sync” option to “Edit document and stop synchronization”.

    Kind regards, Jarno

    Thread Starter keengamer

    (@keengamer)

    Switching the settings does not help. Still 0 B. Well, I don’t really want to stop syncing it if there will be some change in the future from your part, it would be fine to have it updated…

    Plugin Support jarnovos

    (@jarnovos)

    Hi @keengamer,

    It looks like the download issue with the 0 byte file starts occurring as soon as the “WP External Links” plugin is enabled. If I disable that plugin it instantly resolves the issue.

    Strange thing is that even if I exclude this link or the page/post ID in that plugin, it doesn’t fix the issue. But disabling that plugin entirely does work. Not sure what that plugin does exactly which causes this though.

    An alternative to remove the section from the document without ‘unsyncing’ it from the Wizard, would be to use a PHP snippet which replaces the HTML.

    Adding this snippet as a .php file in the /wp-content/mu-plugins/ folder on your site should do the trick: cmplz-edit-tc-html.php

    Kind regards, Jarno

    Thread Starter keengamer

    (@keengamer)

    Here is the solution https://www.ads-software.com/support/topic/not-working-with-complianz/

    It works. I’m surprised that you figured out that it’s doing that plugin ??

    • This reply was modified 10 months, 2 weeks ago by keengamer.
    Plugin Support jarnovos

    (@jarnovos)

    Hi @keengamer,

    Awesome, thanks for sharing the solution here as well!

    I was trying to replicate the behavior that I saw on your site but just couldn’t get it to occur whatever I did, so I finally tried installing that plugin as it was one of the only things I hadn’t tried yet ??

    Kind regards, Jarno

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PDF not working’ is closed to new replies.