Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
I downloaded backlight last night, followed the setup through Designer and created a test album set and album. Published and got this error
Unexpected error: syntax error, unexpected 's' (T_STRING) in 89-page-1.1.1-1-3-menu_6-87-index-1.1.1-3-2.view.template on line 31
thanks
Paul
Offline
I found your previous reply to a similar error, dug out the file and found it did not like the apostrophe in the title on line 31. I fixed that and the error went away but the default pages do not display.
I installed backlight in a sub off the root at http://corvette-photography.com/backlight. I see that the galleries folder was put in the root rather than /backlight. Could this be the problem?
The site is http://corvette-photography.com/galleri … utoRefresh
Last edited by paulpegg (2016-12-20 05:14:51)
Offline
This is screwy. I did everything i can think of to get rid of the 's on line 31 of both the "include" and page" template files but it keeps coming back. In LR I deleted the Album Set and album and created new ones with no apostrophes anyplace in the titles. I republished the set and album and the problem persists with the same error! I cleared the designer cache and after republishing found the the same error is back in the cache folder.
The new site is http://corvette-photography.com/galleri … Set/Album/
Last edited by paulpegg (2016-12-20 06:21:44)
Offline
I installed backlight in a sub off the root at http://corvette-photography.com/backlight. I see that the galleries folder was put in the root rather than /backlight. Could this be the problem?
What do you have in Backlight > Settings > Site URL ?
You say you have backlight in a "sub"? Is that a sub-folder or sub-domain. You have backlight installed in the root of corvette-photography.com right now. The galleries folder being in the root (corvette-photography.com/galleries/) is then the right place for it to be.
Apostrophes in album set and album titles shouldn't be causing a problem (they will if you try including them in a slug though).
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
It is in a sub folder.
/backlight has all the files I installed according to the instructions. The root contains the files for the main corvette-photography.com site which is not a part of this project. I am only testing backlight to see if I think it is worth the effort. I will create a sub-domain for backlight sites if I go forward. I would prefer that /galleries is in /backlight/galleries to keep these apart.
Offline
If you've installed backlight in a subfolder, then the url to the backlight site should be corvette-photography.com/sub-folder/
your "galleries" folder would be at corvette-photography.com/sub-folder/galleries.
If you've created a sub-folder for testing backlight and have named that folder "backlight" then the backlight folder from the unzipped download should be uploaded to the corvette-photography.com/backlight/ folder. You'd then need to go to corvette-photography.com/backlight/backlight/ to log in
Your galleries folder would then be at corvette-photography.com/backlight/galleries/
to keep the confusion at a minimum, I suggest naming your test sub-folder something other than "backlight"
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks, i will redo it that way.
Paul
Offline
I suggest NOT publishing to a /galleries folder inside of /backlight. Your publishing destinations should be separate from the application folder.
Offline
Can you please email me the template file with the error, using the Email link under my picture? I'd like to see where it is breaking in case it's something we can improve.
Offline
Ben,
I sent you a comprehensive email with all that I have done today and the latest template file. I basically deleted everything I did yesterday and started over with all different set and album titles. I did not follow Matts suggestion above because I didn't see it until I did all this and the same error persists even though there is no apostrophe s anywhere in my setup. the galleries folder is still in the root rather than in ../backlight/test1/
Offline
I deleted the entire setup in TTG Publisher and started over. I edited the publisher setup to make the galleries off the root in /test/galleries and republished. All is in the proper place but the site will not load in Chrome with the identical error. Somewhere that original "sin" ('s) is embedded someplace.
http://corvette-photography.com/test/ga … umber-one/
Last edited by paulpegg (2016-12-21 03:07:41)
Offline
Ben, this looks like it can happen if an apostrophe is used in the Page Title field of a Page Template. I was able to replicate the problem on my own test site.
If the apostrophe is escaped, it works fine.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Yes, but I removed the apostrophe completely but it continues to get in the template file.
Offline
do you have a caching utility running on your server? Maybe something your host added?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Rod found the bad entry on the Page Setup. i blanked it out and the site loads but as a list. This is another problem to dig into.
Offline
the css is missing
what url are you using in Backlight > Settings > Site URL? I looks like it should be http://corvette-photography.com/test/
your Galleries page is just a directory listing. Have you assigned an album set template to the Galleries top-level galleries folder?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
OK. We found the problem with the apostrophe in the page Title. i continued to have problems and decided to go the old fashioned way. I deleted everything I had installed on the server and in Lightroom and started over with a clean slate and a new path http://corvette-photography.com/test2/galleries/ . Everything works!!! I used all the defaults in the templates so it is not too pretty right now.
I really like what you did with Oliver Blum and may head off in that direction.
Thanks for you great help again. I only build a new site every few years so the brain needs to be reprogrammed each time. I am just starting with backlight but already see the power of the interface. I have a long way to go.
Best regards,
Paul
Offline
Those new errors are not related. Your fresh installation is missing one or more files. Try uploading the backlight/ files again.
I have applied a fix to work around apostrophes which we'll add to the next maintenance update.
Offline
I extracted the files again and uploaded them to the server. I then made some very garish color changes to see if designer was working, but no, nothing appears to change when I refresh the site. Am I missing something? Should I republish the site from LR?
Offline
I added another Album and republished. No changes to the appearance. I sent you a user ID and PW for backlight administration.
Offline
You may also need to clear template cache
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I did that too. I noticed a new template for each time I saved changes in Designer. I cleared them all out. I used the Designer clear cache and went in through the ftp client and they were still there so I deleted them there again.
Last edited by paulpegg (2016-12-23 07:40:06)
Offline
after you clear the template cache, once you refresh a page or view another, the file will be created in the cache again. That's why you're seeing that they're still there. They're just being recreated though.
Are you sure that the page you're viewing to see changes happening is using the same template that you're working on?
right now, I'm seeing some maybe garish (?) colors on your site at http://corvette-photography.com/test2/galleries/
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
OK. You are seeing the colors but I am not. ????
Offline
It's working for me. I logged in and set your home page to auto-refresh. Changed the masthead colour to orange and pressed enter. The home page updated correctly. Changed it back to red and pressed enter. The home page updated correctly.
Offline