• Hi, Angelo!
    I’ve created a new premium feed and a new user with the Premium Subscriber role.
    When I try to access the feed using that user credentials – I can’t. The Login window keeps popping up as if something is wrong with the username/password (although I double checked them).

    My feed is – https://www.ranlevi.com/feed/mh_premium/
    I’m logging in using Chrome, latest version.

    Any ideas?
    Ran

Viewing 15 replies - 1 through 15 (of 18 total)
  • @ranlevi I’ve experienced this due to how apache/php was configured.

    https://stackoverflow.com/questions/17018586/apache-2-4-php-fpm-and-authorization-headers
    more info here: https://www.ads-software.com/plugins/authenticator/installation/

    Adding the following line to my .htaccess file corrected the issue.

    SetEnvIfNoCase ^Authorization$ “(.+)” HTTP_AUTHORIZATION=$1

    • This reply was modified 8 years, 1 month ago by bcg62.
    Plugin Author Angelo Mandato

    (@amandato)

    Hello @ranlevi,

    The solution @bcg62 is more than likely correct for your situation, but if not please reply and we’ll try a few more things. If you do reply needing additional help, please indicate the type of server (Apache, Nginx, etc..) and any possible details that may help us.

    Thanks @bcg62 with the details how to solve this issue!

    Thread Starter ranlevi

    (@ranlevi)

    Hi, @bcg62, thanks for helping out! ??
    I’ve modified my .htaccess file, with no success – maybe I did the modification wrong, somehow? Here’s the .htaccess content:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    #Ran - premium feed issue 21.10.16
    SetEnvIfNoCase ^Authorization$ “(.+)” HTTP_AUTHORIZATION=$1
    # END WordPress
    Plugin Author Angelo Mandato

    (@amandato)

    Can you talk a little bit about how your hosting is setup? Is PHP installed as a module or are you using FastCGI or something else? Do you know which version of PHP you are using?

    Thread Starter ranlevi

    (@ranlevi)

    Hi, Angelo. I’m hosted with DreamHost. It’s PHP 5.6 with FastCGI.
    Ran

    Plugin Author Angelo Mandato

    (@amandato)

    Hello @ranlevi,

    You may want to contact DreamHost for assistance. I believe they need to setup the server to allow for authentication. PHP in FastCGI is the problem and the fix @bcg62 can sometimes fix the issue but in your case it appears it did not. DreamHost should be familiar with basic auth issues with their service and have a specific solution for you. Please let us know the outcome when you contact them.

    Thread Starter ranlevi

    (@ranlevi)

    Got it – I’m opening a support ticket right now, and will update. Ran

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You can switch to PHP CGI on your own via your DreamHost panel.

    https://help.dreamhost.com/hc/en-us/articles/214895317-How-do-I-change-the-PHP-version-of-my-site-

    We do allow for basic authentication though, so that shouldn’t be an issue, however I noticed you’re on DreamPress. You will need to ask support to put an exception in your Varnish rules. Ask them this: “Can you please create a custom VCL to exclude the /feed/ folder from Varnish? I’m using a plugin that dynamically generates content there, and it’s not compatible with Varnish.”

    Thread Starter ranlevi

    (@ranlevi)

    Hi, @ipstenu! That’s immensely helpful – I’ll forward your advice to Dreamhost’s support ??
    Thanks a bunch!
    Ran

    Plugin Author Angelo Mandato

    (@amandato)

    Thanks @ipstenu! I would not have known that DreamHost was using Varnish.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Our managed WP hosting platform, DreamPress, plays merry cob with private folders and htpasswd stuff because it’s trying to cache everything ?? Always fun times. If you have any issues with tech support, link them to this post and tell them to ask me ?? They know where my desk is!

    Thread Starter ranlevi

    (@ranlevi)

    Sorry for not updating on the situation for some time: while trying to debug the issue,
    my website crashed and Dreamhost spent almost half a week bringing it back. No idea if the crash
    had anything to do with @ipstenu ‘s instructions above – might be just coincidence.

    Anyway, I still can’t log into the premium feed. Any other ideas? @ipstenu, will you be so kind
    as to take a deeper look at your end, maybe?

    Thanks ??
    Ran

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    All the vcl does is say ‘don’t cache this content’

    In and of itself it doesn’t have the ability to crash anything because it’s akin to opening the blinds on a window.

    I’ll take a look when I get into the office later today for you though ?? That is very peculiar!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Okay, taking a look into things, I see they set your memory usage pretty high. The concern with that is if you let WP use too much memory, you can cause instability in your server.

    The question would be WHY is WP needing so much memory. Looking at your error logs, I see you’re STILL hitting that premature end of scripts error the techs mentioned. I noticed you have broken-link-checker and wordpress-importer both installed and active. Can you deactivate both of those? BLC has a tendency to use a LOT of memory. And if you’re not actively importing anything, it’s safe to ditch the importer ?? It’s a rare exception to plugins, where you can just nuke it when you’re done.

    Also, since you’re no longer caching the /feed/ folder, all your feeds will tend to be a little slower than the rest of your site. It’s not being cached, after all :/

    Thread Starter ranlevi

    (@ranlevi)

    Hi, @ipstenu!
    First of all – Thanks ??

    I deactivated both plugings. I didn’t realize that the /feed folder isn’t being cached – now that you mention it, it is slower than the rest of the site.
    Ran

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Premium Feed – can’t login’ is closed to new replies.