Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Viljami Kuosmanen

    (@zuige)

    Hi!

    Try adding this to your wp-config.php

    define('FETCH_COOKIES_ENABLED', true);

    Thanks for trying out our plugin!

    Colin

    (@colinsafranek)

    Hi, I know this is an old thread, but I am having a similar issue. I’m using a plugin called MemberPress which can restrict access to pages and posts based on user “membership levels” (custom roles).

    The above solution define('FETCH_COOKIES_ENABLED', true); certainly works, in that it gives the WP PDF Templates plugin access to the post content in order to successfully generate a PDF, but the problem is that anyone can access that PDF by navigating to the /pdf/ URL endpoint, even they do not have access to the post/page restricted content.

    It would be quite easy to realize that all the restricted content is available if you just append the /pdf/ endpoint to any restricted page’s url.

    Is there a way to prevent this kind of circumvention?

    Let me know what you think. And thanks for the great plugin!

    Colin

    (@colinsafranek)

    FYI:

    After a grueling and frustrating wild goose chase, myself and the WP Engine hosting company have finally realized that the above

    define('FETCH_COOKIES_ENABLED', true);

    line in wp-config.php will break the PDF generation functionality if the Awesome Support wordpress plugin is active.

    We have not discovered why yet, but have narrowed it down to that specific line in wp-config.php.

    @antti Kuosmanen Any ideas why that line might cause this?

    Colin

    (@colinsafranek)

    UPDATE:

    According to a couple of different plugin developers (Awesome Support and Easy Digital Downloads), you need to fix your plugin’s use of PHP sessions.

    Basically any other plugin that utilizes PHP Sessions conflicts with WordPress PDF Templates functionality, sometimes only when the FETCH_COOKIES_ENABLED is set to true, and sometimes REGARDLESS of that constant.

    Apparently, WP PDF Templates doesn’t work AT ALL when Easy Digital Downloads is also installed. That should be a big red flag for you, as EDD is a HUGELY popular plugin and very widely used. It is also created and maintained by a well known and accomplished plugin developer who is considered to be an authority on WP plugin best practices, clean code, and quality plugins.

    Please read this support thread to better understand what I am talking about.

    A fix would be great ASAP, so that I can continue to use the Awesome Support plugin in conjunction with your PDF Templates plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with Restricted Site Acess plugin’ is closed to new replies.