• Plugin Author Michael Nelson

    (@mnelson4)


    On an earlier thread, @lorraine4 reported that subscribers couldn’t use Quick Print. (I suggested creating a new thread, but then thought I may as well do that instead of making them.)

    So, @lorraine4: I just double-checked and subscribers can use Quick Print on my test site, so I believe it’s a problem with a security setting in the security plugin(s) you’re using. You’ve mostly likely disabled some part of the REST API (a feature of WordPress websites that facilitates machine-to-machine communication) so subscribers can’t use it.
    This FAQ might help. If not, can you please share which security plugin you’re using?

Viewing 14 replies - 1 through 14 (of 14 total)
  • lorraine4

    (@lorraine4)

    Hi Mike

    If I can use Quick Print when I am logged in as an editor or Admin the REST API must be enabled.
    When I switch to a Subscriber login cannot initialize the Quick Print. Could the REST API get disabled when I switch to a subscriber login?

    Not sure how to check it is enabled when I log in as a subscriber.
    I have activated Query Monitor – would it show up there?
    Our site is hosted by hostgator.com and we use SiteLock SecureStarter for security.

    Thank you for your help!

    Lorraine

    Plugin Author Michael Nelson

    (@mnelson4)

    Hi @lorraine4, I just dove into the code a bit more and realized that there WAS a problem for subscribers to view the Print Page, but that was fixed quite a while ago. So maybe you just need to update the plugin further?
    What version of Print My Blog are you using?

    lorraine4

    (@lorraine4)

    Hi Mike

    I updated your plugin a couple of weeks ago to V3.18.3
    My PHP version is 7.4.32
    WP version is 6.03

    Plugin Author Michael Nelson

    (@mnelson4)

    Ok thanks, @lorraine4. Hmmm.

    Could the REST API get disabled when I switch to a subscriber login?

    Yes, it’s possible your security plugin or web service disables the REST API for subscribers. But more likely it’s still enabled, but subscribers don’t have the needed permissions to access some of the information.
    The fix I added a while back was that if there was such a permissions problem, PMB would try requesting only public information. And from my testing that works, but something’s different on your site, it seems.

    Not sure how to check it is enabled when I log in as a subscriber.
    I have activated Query Monitor – would it show up there?

    I don’t think Query monitor will help in this case.

    I’m afraid I’m not sure what’s going wrong for your subscribers when using Print My Blog Quick Print. I need more information in order to understand what’s going wrong and work on a fix.

    Seeing how I don’t have a subscriber account for your site to see the problem first-hand, here’s the somewhat technical steps to gathering some more information about what’s going wrong.

    Please follow those steps there to get some screenshots (or better yet just a screen recording) and share here. (You can’t upload files to this forum, but you can use a filesharing webapp like Google Docs to share a link to the files.)

    (BTW: I tried seeing if I could just subscribe to your site on the “User REgistration Form” page, but it’s not working.)

    lorraine4

    (@lorraine4)

    HI Michael

    You were correct. When I login as admin, I do not get a rest error.
    When I logged in under your name as a subscriber, I received the rest error
    Name
    Taxonomies?context=edit
    Response “code”: “rest_cannot_view”,
    “message”: “Sorry, you are not allowed to manage terms in this taxonomy.”,
    “data”: [“status”: 403
    Is there something that can be done to bypass this problem?

    I have created a user login and PW for the gardencluboflondon.ca as a subscriber.
    login name michaelnelson pw michaeln123.

    I appreciate you taking the time to trouble shoot this for us

    Lorraine

    lorraine4

    (@lorraine4)

    Hi Michael

    Our website was down for maintenance last night, but it is up and running now.

    Yes, I do have Query Monitor active, but it is only viewed by admin login.
    Not sure if you would see a rest error when a subscriber is online and tries to print.
    Would it help if I emailed you the Query Monitor information?
    Lorraine

    Plugin Author Michael Nelson

    (@mnelson4)

    Hi @lorraine4, thanks for the info. That gave me an idea and I’ve figured out the issue. I found that, some reason, your site’s REST API was returning a response with code 401 instead of 403. It’s a subtle difference, but my code didn’t know what to do with a 401. I’ve taught it though.
    Expect an update on Monday or Tuesday that will fix this issue.
    Thanks for working with me on debugging this!

    lorraine4

    (@lorraine4)

    Hi Michael

    Great to hear that you are able to modify your code to allow subscribers the ability to print from our web site. Looking forward to the updated plugin next week!

    I appreciate you taking the time to troubleshoot the problem and connecting with me.

    Thank you so much!

    Lorraine

    Plugin Author Michael Nelson

    (@mnelson4)

    Hi @lorraine4, version 3.18.6 of Print My Blog was just released and should fix the issue for subscribers.

    (Sorry this fix took longer than expected: it was an easy one, I just got the flu or something and kinda didn’t do anything for the last two days.)

    Thank you also for helping provide debug info. If you wouldn’t mind updating and double-checking the issue is fixed, that would be helpful.

    lorraine4

    (@lorraine4)

    Hi Michael

    Glad you are feeling better. A lot of viruses going around.

    Still have an issue with the quick print for Subscribers.
    Ok to print by admin and editor roles.
    Here is the error message/code I get.

    Message when go to print “Sorry, there was a problem initializing Post/

    taxonomies?context=edit 
    
    {    "code": "rest_cannot_view",
        "message": "Sorry, you are not allowed to manage terms in this taxonomy.",
        "data": {
            "status": 403
        }
    
    Version Print My Blog 3.8.16
    lorraine4

    (@lorraine4)

    Hi Michael

    Subscribers are still not able to print using your program.
    We get the below error code

    taxonomies?context=edit 
    
    {    "code": "rest_cannot_view",
        "message": "Sorry, you are not allowed to manage terms in this taxonomy.",
        "data": {
            "status": 403

    Will you be able to modify your code to correct this issue?

    Thank you for looking into this for us.

    Lorriane

    Plugin Author Michael Nelson

    (@mnelson4)

    Hi @lorraine4, I was pretty stumped why it was fixed for me but not you (even when I tested your site, simulating a subscriber user.)
    But then I tested on a different browser, and that was it: the error message is actually different in Google Chrome compared to Firefox.
    Ok, sorry: expect a fix early next week again.

    lorraine4

    (@lorraine4)

    Hi Michael

    Could you please check if the Quick Print works with Microsoft Edge browser when you update the code?
    We have had an issue using Firefox when it comes to editing our web site using the Glutenbiz theme.
    Thank you again for all your help.

    Lorraine

    Plugin Author Michael Nelson

    (@mnelson4)

    Hi @lorraine4, yes I’ve checked Microsoft Edge too (I don’t usually as, under the hood, it’s actually the same as Google Chrome).
    I just released 3.18.7 which should fix the issue again (I believe I’ve simulated what’s happening on your site with Chrome/Edge).
    Sorry, but could you again update and double-check it?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Subscribers unable to print’ is closed to new replies.