Jump to content

system error


Ben224

Recommended Posts

Hi,

V5.1.1

Does anyone know what this might be?

I have about 8 of these errors all saying the same thing relating to various lines of code in main.php

[Exception] /home/public_html/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627 - Syntax Error in template "/home/public_html/skins/clientskin/templates/main.php" on line 116 "window.___gcfg = {lang: 'en-GB'};" - Unexpected ": ", expected one of: "}" , " "

Many thanks in advance

Link to comment
Share on other sites

Since this is not from a default skin, could you provide the section of code around line 116 in clientskin main.php, so someone might spot the problem more easily? Also, since this forum is meant for help with the core product, you should ask again on the 3rd party forum.

Link to comment
Share on other sites

Thanks for your response. I'm afraid that line 116 does not in fact contain any code at all which concerns me even more. Its just white space or line returns.

However I had the same error on a different line:

[Exception] /home/public_html/includes/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627 - Syntax Error in template "/home/public_html/skins/clientskin/templates/main.php" on line 64 "window.___gcfg = {lang: 'en-GB'};" - Unexpected ": ", expected one of: "}" , " "

The syntax looks fine to me. The code for line 64 in main.php is as follows:

<li><a href="{$STORE_URL}/index.php">{$LANG.common.home}</a></li>

Thanks again

Link to comment
Share on other sites

Would you please examine the skin cache folder under /cache/, look for a file that has the word "main.php" in it, open it for editing, and let us know if there is something on line 64 and 116?

If this is perhaps a compiled template of a skin file issue, we may then be able to map the Smarty compiled template version to the original skin version of the skin code.

Link to comment
Share on other sites

Hi,

Thanks for your response. I have had a look at the file you mention. Line 116 contains the following code:

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

it appears to be a section of the google analytics JS code.

Are you able to advise further?

Many thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...