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 *

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.

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 Versions

Backlight 1.2.3
Pages module 1.2.3
Cart Add-on 4.1.5
Client Response Add-on 7.1.2
Theater Add-on 1.2.4
WordPress Add-on 1.2.3
Publisher 3.2.2

CE4 Versions

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

Subscribe to new posts