API matches but getting error messages

I’ve got into a bit of a problem with the API Key so I’ve used a new key in Backlight settings and in LR Publisher. I’ve also checked that the URL matches (except that the LR version was backlight/publisher/ added.

When I “check authentication” in LR I get an error message which wtarts: JSON.lua:458: JSON.lua:197: can’t parse JSON at char 1 of: Class not found: AdminApplicationHelper. To fix this, reinstall Backlight at /backlight/installer. If the problem persists, please report error…"

Before I reinstall BL as in the initial installation guidance I just want to check that I won’t lose all the hours of new website designing and customisation that I’ve been working on. Is a new installation the right course? Or have I missed some other crucial step?

Oh. I’ve just realised something relating to my question above. When I look at my BL4 dashboard, the URL is www.mydomain.com/mytemporarydevelopment site/backlight/

because I’ve been building everything in a sub folder of the public html whilst maintaining my original website. Is that wrong?

On completing the website design in the development site, I changed the site URL from the development site to mydomain.com in Settings on the BL Dashboard mentioned above and I thought I’d copied everything from my development site to the main site.

Have I not followed the correct steps? I was basically following Rod’s tips here but perhaps I’ve missed something?

Reinstalling Backlight won’t change any of your settings or design. Clicking on Reinstall All won’t hurt anything

After you moved your development site file into the root of your site, did you log in to the main site and make those url changes?

No, I didn’t - I hadn’t appreciated that “logging on from the main site” meant not logging on in the same way I’ve done from the start which was via my development site folder. Sorry. When I did log on from the main site I got the same error message rather than the admin log in page. However, a reinstall of BL on the main site solved this - so it was probably nothing to do with the API mismatch.

I’m still not sure what I did wrong but it’s working now. Many thanks for your help and prompt responses.

Just for future reference - I still have the development site in a subfolder of my public html which will be useful for future testing. Does that mean I now have BL installed twice: once on the main site and once on the development site? And can I therefore be operate (design) those two independently?

And once I’m happy with a new development site it just a case of copying everything over via FTP except for “galleries” and “ttg-be”?

Thanks again Rod. Much appreciated. Nearly there…

Yes, and yes.

First delete any test galleries and sets.

once you’re happy with the design site, you can delete all your CE4 files other than the “galleries” folder and the “ttg-be” folder and copy in the Backlight files (index.php, .htaccess) and the “backlight” folder.

(ttg-be is not part of Backlight. The only thing it’s needed for would be migrating publisher control of albums and cart settings from a CE4 installation. After the migration, it can be deleted.)

Log into Backlight in the main site and fill in the correct site and company url.
Run the Publisher migration (also the Cart migration if you were using the cart)

If you now have both production and development BL 4 sites, if you make design changes on your development site, it’s best to export templates from the development site and into the production site.