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.
Pages: 1
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
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 2/3 test site
Offline
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
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
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 2/3 test site
Offline
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 '
You may need to clear the template cache after doing so.
Offline
The apostrophe fix hadn't made it from Okapi to Pangolin. We'll have this in a future update.
Offline
Pages: 1