View previous topic :: View next topic |
Author |
Message |
Alexw Smarty Rookie
Joined: 02 Dec 2011 Posts: 13
|
Posted: Fri Dec 02, 2011 11:20 am Post subject: MAC Safari - Unexpected input |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Dec 02, 2011 1:58 pm Post subject: |
|
|
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 |
|
Alexw Smarty Rookie
Joined: 02 Dec 2011 Posts: 13
|
Posted: Fri Dec 02, 2011 3:31 pm Post subject: |
|
|
I got 3.0.8....also your fix did not work...
Any other suggestions? |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Dec 02, 2011 4:10 pm Post subject: |
|
|
Okay this is a very old verison.
I would try to update to 3.1.6 |
|
Back to top |
|
Alexw Smarty Rookie
Joined: 02 Dec 2011 Posts: 13
|
Posted: Fri Dec 02, 2011 4:13 pm Post subject: |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Dec 02, 2011 4:17 pm Post subject: |
|
|
it's better to remove and add Smarty as some files have been removed from the package |
|
Back to top |
|
Alexw Smarty Rookie
Joined: 02 Dec 2011 Posts: 13
|
Posted: Sun Dec 04, 2011 1:41 pm Post subject: |
|
|
Still the same... |
|
Back to top |
|
Alexw Smarty Rookie
Joined: 02 Dec 2011 Posts: 13
|
Posted: Sun Dec 11, 2011 3:41 pm Post subject: |
|
|
Any solution for this. I still have complaints from my clients that are unable to visit the website... |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Sun Dec 11, 2011 6:44 pm Post subject: |
|
|
you cleared all compile and cache files, and have newest version? this can't be browser dependent. |
|
Back to top |
|
Alexw Smarty Rookie
Joined: 02 Dec 2011 Posts: 13
|
Posted: Sun Dec 11, 2011 6:46 pm Post subject: |
|
|
I don't use any cached files, because the site is dynamic.
And yes i cleared out the template_c directory. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Dec 12, 2011 2:27 am Post subject: |
|
|
The error indicates a syntax error in your config file. Care to show the config file around line 58? |
|
Back to top |
|
Alexw Smarty Rookie
Joined: 02 Dec 2011 Posts: 13
|
Posted: Mon Dec 12, 2011 3:11 pm Post subject: |
|
|
Here you go:
Code: | PAYMENTS_INVOICE_DATE = "Factuur Datum" |
|
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Dec 12, 2011 3:19 pm Post subject: |
|
|
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 |
|
Alexw Smarty Rookie
Joined: 02 Dec 2011 Posts: 13
|
Posted: Mon Dec 12, 2011 3:21 pm Post subject: |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Dec 12, 2011 3:28 pm Post subject: |
|
|
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 |
|
|