Hi,

I have installed printfriendly module, but I have one important problem.
When a user is logged as user role "admin", printfriendly works fine and the pop-up to print current page opens itself.
When a anonymous user or or an authenticated user goes to the same page, the popup is not launched and we are automatically redirected to printfriendly.com

Sorry for my poor english

Thanks,

Sincerely

Alexander

Comments

Alexander94 created an issue. See original summary.

mattfarrow’s picture

Hi Alexander

I'm guessing you have set the permissions for the module appropriately.

By default, the print-friendly button appears only for administrators only, but you can change that at Admin > People > Permissions.

On my local test install, I've given the Access PrintFriendly permission to the Anonymous User and Anonymous User roles, and once applied, the button appears on the page as anticipated.

Similarly, regardless of which user I log in as, the functionality appears to work much as expected.

If you're still experiencing this issue, perhaps you could provide the steps to reproduce, together with screenshots of what you're seeing.

Cheers
Matt

alexander94’s picture

Thanks for your answer

I changed the permissions and it seems there is no problem with that because printfriendly button appears on the page, even if we are logged as administrator or if we are a visitor.

When the administrator clicks on printfriendly links, the lightbox appears on screen ( > perfect). When an anonymous user clicks on those links, the user is redirected to printfriendly.com (> fails)

Alexander

mattfarrow’s picture

Hi Alexander

That's strange. It's working fine for me, regardless of whether I'm authenticated or anonymous.

Couple of questions for you:

  1. Which version of Drupal Core are you using?
  2. Do you see the same behaviour for new as well as existing pages?
  3. What happens if you clear your caches?
  4. Which browser(s) are you using to test this and on which OS?

Cheers
Matt

alexander94’s picture

I'm using Drupal 8.5.1

I see the same behaviour for every page.
Nothing happens when I clear the cache... :(

I'm testing on Firefox, Chrome, and Opera... the same thing happens on each browser...

When I copy / paste the source code of the generated page in a local environment, the popup works! I'm wondering if there is a problem with the internal cache or something else?

Alexander

mattfarrow’s picture

Hi Alexander

That is strange. I've been testing on Drupal 8.6, so there may be a potential conflict there.

I'll retest on 8.5.1 to see if I get the same behaviour.

Cheers
Matt

alexander94’s picture

I have installed a drupal 8.5.1 on my local environment and it's working. There is probably a conflict with the site theme. For the moment, I did not find anything.

mattfarrow’s picture

Hi Alexander

Which theme are you using?

Cheers
Matt

alexander94’s picture

I'm using ZURB Foundation 6 8.x-6.0-alpha4, but I have overloaded this theme to create my own. I will test again this weekend.

Thanks for your interest and your answers.

EktaPuri’s picture

Any solution for this? I am having same issue.
On my local environment (WAMP) its works for anonymous as well as for admin, all is good here buttons visibility and generate pdf as well.

But my server(Linux) behave different buttons are appearing but only admin or logged in user see the popup to print, generate PDF or email whereas anonymous user get redirected and asks for print friendly browser extension.

I have installed the plugin and given permission to anonymous user which make the button visible but click on button is going to link instead of showing popup.

printfriendly’s picture

The ClientSide lightbox is a Pro feature. You need to purchase a Pro subscription for your domain, and it will automatically switch to the on page lightbox.

Purchase for your domain at https://www.printfriendly.com/button/pro

fabsgugu’s picture

Status: Active » Closed (outdated)