Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-12-20 04:45:53

paulpegg
Member
Registered: 2013-03-07
Posts: 252

First try error

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

#2 2016-12-20 05:12:15

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#3 2016-12-20 06:16:30

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#4 2016-12-20 07:20:18

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: First try error

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

#5 2016-12-20 07:43:08

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#6 2016-12-20 07:48:34

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: First try error

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

#7 2016-12-20 07:55:54

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

Thanks, i will redo it that way.

Paul

Offline

#8 2016-12-20 14:50:23

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: First try error

I suggest NOT publishing to a /galleries folder inside of /backlight. Your publishing destinations should be separate from the application folder.


Matt

The Turning Gate, http://theturninggate.net

Offline

#9 2016-12-20 17:05:15

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: First try error

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

#10 2016-12-21 01:50:56

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#11 2016-12-21 02:13:13

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#12 2016-12-21 03:45:53

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: First try error

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

#13 2016-12-21 03:52:19

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

Yes, but I removed the apostrophe completely but it continues to get in the template file.

Offline

#14 2016-12-21 03:58:44

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: First try error

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

#15 2016-12-21 04:37:54

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#16 2016-12-21 05:44:28

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: First try error

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

#17 2016-12-22 02:59:12

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#18 2016-12-22 23:39:21

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: First try error

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

#19 2016-12-23 04:17:17

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#20 2016-12-23 05:40:08

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

I added another Album and republished. No changes to the appearance. I sent you a user ID and PW for backlight administration.

Offline

#21 2016-12-23 06:14:57

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: First try error

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

#22 2016-12-23 07:38:39

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

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

#23 2016-12-23 08:29:19

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: First try error

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/
paul-e.jpg


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#24 2016-12-23 08:50:04

paulpegg
Member
Registered: 2013-03-07
Posts: 252

Re: First try error

OK. You are seeing the colors but I am not. ????

Offline

#25 2016-12-23 09:01:44

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: First try error

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

Board footer

Powered by FluxBB