Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2017-12-17 01:52:34

Ianp259
Member
Registered: 2016-09-03
Posts: 9

I am getting an error

I have been getting an error.
Unexpected error: syntax error, unexpected T_STRING in 97-page-1.2.2.3-11-12-menu_13-104-content-1.2.2.3-6-13-admin.view.template on line 30
I have tried reloading the module pages etc from the latest update - any help please

Offline

#2 2017-12-17 04:19:55

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

Re: I am getting an error

can you post a link to your site?
Did this error pop up after updating, or have you added or changed any pages?
Were you previously using the Okapi Backlight modules (from version 1.1 or earlier)?
If so, did you perhaps delete any of those modules when you updated?


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

Offline

#3 2017-12-17 07:28:15

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 3,430

Re: I am getting an error

Are you using PHPlugins?  If so, check that you don't have any syntax errors.

Otherwise, can you open the mentioned file in a text editor such as Notepad, which will be found at backlight/data/designer/cache/97-page-1.2.2.3-11-12-menu_13-104-content-1.2.2.3-6-13-admin.view.template and paste the first 30 lines into a comment.

Offline

#4 2017-12-17 18:43:44

Ianp259
Member
Registered: 2016-09-03
Posts: 9

Re: I am getting an error

www.p2images.co.uk

File dump
<?php
    if (!defined('PATH_TO_BASE')) {
        define('PATH_TO_BASE', './../../');
    }
?>
<?php
    $customPath = '/'.'backlight/custom';
    $customStylesheetEnabled = (bool) '';
    $customStylesheetFilename = $customStylesheetEnabled ? '' : '';
?><?php
    $phpluginsFilename = 'phplugins-sample.php';
?><?php
    define( 'TTG_ROOT', __FILE__ );

    define( 'TTG_HOOK', '/www/sites/dcd/a88/www.p2images.co.uk/web/backlight/custom/phplugins' );

    define( 'TTG_COMP', 'TTG CE4-Gallery 4.0' );

  define('PASSWORD_ENABLED', isset($enablePassword) && $enablePassword);
  define('LOGGED_IN', isset($logged_in) && $logged_in);

    if (TTG_HOOK && $phpluginsFilename && file_exists( TTG_HOOK . '/'.$phpluginsFilename)) {
        require_once TTG_HOOK . '/'. 'phplugins-sample.php';
    }

    if (function_exists('ttg_user_load')) {
        $void = ttg_user_load( TTG_COMP, TTG_ROOT );
    }
?><?php
    $siteTitle = 'Pilling's Photographic Images';

[snipped to first 30 lines by Ben]

Offline

#5 2017-12-17 22:25:56

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

Re: I am getting an error

I think the problem could be the apostrophe in the site title
(From line 30 of the code you posted above)

See this similar thread: http://community.theturninggate.net/vie … 699#p43699


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

Offline

#6 2017-12-18 05:07:36

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 3,430

Re: I am getting an error

Well spotted, Rod! It looks like we’re not escaping these properly. I’ll look for a fix. In the meantime you’ll need to either drop the apostrophe in Site Title or substitute it with something safe, such as &apos;

You may need to clear the template cache after doing so.

Offline

#7 2017-12-18 06:32:06

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 3,430

Re: I am getting an error

The apostrophe fix hadn't made it from Okapi to Pangolin.  We'll have this in a future update.

Offline

Board footer

Powered by FluxBB