Broken Web Fonts, Publisher, and .htaccess, Oh my!

I just encountered something odd with Publisher.

All of a sudden it stopped working for my main site. I was getting error messages when editing albums and it wouldn’t authenticate, showing this message:

error-authenticate

I have two instances of Publisher set up for my main site and I got the same error for both.
I hadn’t changed anything in the setup and everything was up to date.
My other sites all authenticated just fine. Those instances are all in sub domains.

So on a whim, I changed the API url from
http://www.barbeephoto.com/ttg-be/publisher/
to
http://barbeephoto.com/ttg-be/publisher/

and it then worked.

I was initially wondering if it could be due to a change in Publisher, but then I remembered that several weeks ago I did make a site change. I noticed that the Font Awesome icons on my blog (only the  blog) were all of a sudden exhibiting the broken web fonts issue in Firefox. So I added the needed code to fix that in the .htaccess file that sits in the root of the site. Among other things, it rewrites http://www. to http://

(In case you’re unfamiliar with the problem, broken web fonts look like little rectangles that have some hex code inside instead of the actual Font Awesome icons you were expecting.)

I’m assuming that was what caused the Publisher problem. If so, I’m guessing that others may encounter it too.

EDIT: I emailed Ben about this and he confirmed it is due to meddling with .htaccess:

“…This has come up a handful of times.  The basic rule is that the API URL needs to be in the format after any redirects come into play.  So if there are redirects from non-www to www, then the API URL should begin with www (and vice versa)…”

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About this site

This site is: a repository of time-savers and best practices from a user's perspective, picked up from several years of using TTG plugins.
This site is not: a support site.
Read more here.

Subscribe to new posts

Tip Jar

If this site has saved you some time, kept your hair attached, or otherwise prevented you from tossing the mouse through the monitor, feel free to donate.

Categories


Highly recommended. This is my go-to Lightroom book. Click on the book image. (affiliate link)

Affiliate link!

Current TTG versions

Backlight  4 & 5

See the Backlight Modules page on your site for latest Backlight and module versions and changelogs.

You’ll also find the latest version number and download link for the Lightroom Publisher plugin.
(BL 3 and later)

 

Backlight 1 Versions

Backlight 1.2.4
Pages module 1.2.4
Cart Add-on 4.1.7
Client Response Add-on 7.1.3
Theater Add-on 1.2.6
Galleria Add-on 1.0.0
WordPress Add-on 1.2.6
Publisher 3.2.3

Backlight 1 has seen its end of life. See this post.

CE4 Versions

note: CE4 is no longer being developed or sold. See this post.

TTG-BE: 2.0.5a
Autoindex: 7.0.8
Cart: 3.1.4a
CRG: 6.1.3a
Gallery: 6.1.10
Pages: 7.0.15
Publisher: 2.3.3
Stage: 6.1.6
Theme for WordPress: 3.1.2