Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

MAC Safari - Unexpected input
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
Alexw
Smarty Rookie


Joined: 02 Dec 2011
Posts: 13

PostPosted: Fri Dec 02, 2011 11:20 am    Post subject: MAC Safari - Unexpected input Reply with quote

Hello,

I have a CMS system using the Smarty engine. I got no problem with loading everything. Only when you using the MAC with a Safari i get the following error:
Code:

[Fri Dec 02 12:10:51 2011] [warn] mod_fcgid: stderr: PHP Fatal error:  Uncaught exception 'Exception' with message 'Unexpected input at line58: "' in /home/asclub-management/public_html/ControlPanel/inc/3rdparty/Smarty/sysplugins/smarty_internal_configfilelexer.php:127
[Fri Dec 02 12:10:51 2011] [warn] mod_fcgid: stderr: Stack trace:
[Fri Dec 02 12:10:51 2011] [warn] mod_fcgid: stderr: #0 /home/asclub-management/public_html/ControlPanel/inc/3rdparty/Smarty/sysplugins/smarty_internal_configfilelexer.php(51): Smarty_Internal_Configfilelexer->yylex1()
[Fri Dec 02 12:10:51 2011] [warn] mod_fcgid: stderr: #1 /home/asclub-management/public_html/ControlPanel/inc/3rdparty/Smarty/sysplugins/smarty_internal_config_file_compiler.php(54): Smarty_Internal_Configfilelexer->yylex()
[Fri Dec 02 12:10:51 2011] [warn] mod_fcgid: stderr: #2 /home/asclub-management/public_html/ControlPanel/inc/3rdparty/Smarty/sysplugins/smarty_internal_config.php(221): Smarty_Internal_Config_File_Compiler->compileSource(Object(Smarty_Internal_Config))
[Fri Dec 02 12:10:51 2011] [warn] mod_fcgid: stderr: #3 /home/asclub-management/public_html/ControlPanel/inc/3rdparty/Smarty/sysplugins/smarty_internal_config.php(247): Smarty_Internal_Config->compileConfigSource()
[Fri Dec 02 12:10:51 2011] [warn] mod_fcgid: stderr: #4 /home/asclub-management/public_html/ControlPanel/inc/3rdparty/Smarty/sysplugins/smarty_internal_data.php(255):  in /home/asclub-management/public_html/ControlPanel/inc/3rdparty/Smarty/sysplugins/smarty_internal_configfilelexer.php on line 127


All other browsers, like Internet Explorer, Chrome and Firefox, just works fine.
Safari on the MAC gives the above error.

Any fix for this?

Thanks,
Alexw
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Dec 02, 2011 1:58 pm    Post subject: Reply with quote

This is a message from the config file compiler. I can't see how this could be dependent of the type of browser.

Also config files should be compiled just once unless you did set $force_compile = true. So if the page did load once with other browsers it should not call the config file compiler again.

What Smarty version do you use?

Some older versions did have a problem if the last line in the config files was not terminated with a linebreak.

Make sure that you have a linebreak at the end of all *.conf files.
Back to top
View user's profile Send private message
Alexw
Smarty Rookie


Joined: 02 Dec 2011
Posts: 13

PostPosted: Fri Dec 02, 2011 3:31 pm    Post subject: Reply with quote

I got 3.0.8....also your fix did not work...

Any other suggestions?
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Dec 02, 2011 4:10 pm    Post subject: Reply with quote

Okay this is a very old verison.
I would try to update to 3.1.6
Back to top
View user's profile Send private message
Alexw
Smarty Rookie


Joined: 02 Dec 2011
Posts: 13

PostPosted: Fri Dec 02, 2011 4:13 pm    Post subject: Reply with quote

What is better, remove and add the smarty files?
Or replace? Because i got custom plugins to...don't know which one...
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Dec 02, 2011 4:17 pm    Post subject: Reply with quote

it's better to remove and add Smarty as some files have been removed from the package
Back to top
View user's profile Send private message
Alexw
Smarty Rookie


Joined: 02 Dec 2011
Posts: 13

PostPosted: Sun Dec 04, 2011 1:41 pm    Post subject: Reply with quote

Still the same...
Back to top
View user's profile Send private message
Alexw
Smarty Rookie


Joined: 02 Dec 2011
Posts: 13

PostPosted: Sun Dec 11, 2011 3:41 pm    Post subject: Reply with quote

Any solution for this. I still have complaints from my clients that are unable to visit the website...
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Sun Dec 11, 2011 6:44 pm    Post subject: Reply with quote

you cleared all compile and cache files, and have newest version? this can't be browser dependent.
Back to top
View user's profile Send private message Visit poster's website
Alexw
Smarty Rookie


Joined: 02 Dec 2011
Posts: 13

PostPosted: Sun Dec 11, 2011 6:46 pm    Post subject: Reply with quote

I don't use any cached files, because the site is dynamic.
And yes i cleared out the template_c directory.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Dec 12, 2011 2:27 am    Post subject: Reply with quote

The error indicates a syntax error in your config file. Care to show the config file around line 58?
Back to top
View user's profile Send private message Visit poster's website
Alexw
Smarty Rookie


Joined: 02 Dec 2011
Posts: 13

PostPosted: Mon Dec 12, 2011 3:11 pm    Post subject: Reply with quote

Here you go:
Code:
PAYMENTS_INVOICE_DATE = "Factuur Datum"
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Dec 12, 2011 3:19 pm    Post subject: Reply with quote

Alexw wrote:
Here you go:
Code:
PAYMENTS_INVOICE_DATE = "Factuur Datum"


Do you have a stray quote somewhere? It indicates the error at the quote, so look for a stray quote somewhere before this line.
Back to top
View user's profile Send private message Visit poster's website
Alexw
Smarty Rookie


Joined: 02 Dec 2011
Posts: 13

PostPosted: Mon Dec 12, 2011 3:21 pm    Post subject: Reply with quote

No, but not all Variables have quotes around them.
Does that affect anything?

Example:
Code:
PAYMENTS_INVOICE_DATE = "Factuur Datum"
PAYMENTS_SUBSCRIPTION = "Abonnement"
PAYMENTS_TRANSACTION_AMOUNT = "Transactie Bedrag"
PAYMENTS_DOMAIN = Domein
PAYMENTS_INVOICE = Factuur
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Mon Dec 12, 2011 3:28 pm    Post subject: Reply with quote

Alexw wrote:
No, but not all Variables have quotes around them.
Does that affect anything?

Example:
Code:
PAYMENTS_INVOICE_DATE = "Factuur Datum"
PAYMENTS_SUBSCRIPTION = "Abonnement"
PAYMENTS_TRANSACTION_AMOUNT = "Transactie Bedrag"
PAYMENTS_DOMAIN = Domein
PAYMENTS_INVOICE = Factuur


It shouldn't but, try changing things around, see if the error persists. If there is a bug and we can repeat it, we'll fix it. Also, make sure there is no BOM at the beginning of the file.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Bugs All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP