When I edited the preinstalled page "Tags used only in this particular page" and previewed it I got a long error code that started with "Fatal error: Smarty error:". Then followed very much error code and line numbers and so on. When I looked at it in the forum I found many similar reports but no solution. So I worked on it.
That's what I found out:
When I edited the above mentioned page I worked in a wysiwyg-editor (Xinha, but probably same problem with other editors). These editors seem to swap the quotation-marks " with the html-substitute " for the quotation marks. But they don't do it around all words. So what happens is that we get faulty parameters for the smarty tags. Pretty often they are expected as
"parameter"
but the wysiwyg-editors edits them as
"parameter"
That‘s what causes the fatal errors. The only workaround I could find was to go to User Preferences and switch wysiwyg to none, then go back to edit the page, do a preview, notice the returned error code and substitute the " by ". This must be repeated several times until all the faulty parameters are cleared and then it all works again. But be careful: I don't think that all parameters are faulty or that everything should be swapped. So just look at the error code.
(I am really still new to CMS and that‘s my first post here, so I hope I made it all clear. Please excuse if I left something unclear.)
Reinhard
Probably solved problem with fatal error and smarty error
-
reinhardmohr
- Forum Members

- Posts: 112
- Joined: Sun Aug 06, 2006 2:36 pm
- Elijah Lofgren
- Power Poster

- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
Re: Probably solved problem with fatal error and smarty error
I have fixed this in the SVN version of Xinha: http://viewsvn.cmsmadesimple.org/viewsv ... a&view=revreinhardmohr wrote: When I edited the above mentioned page I worked in a wysiwyg-editor (Xinha, but probably same problem with other editors). These editors seem to swap the quotation-marks " with the html-substitute " for the quotation marks. But they don't do it around all words. So what happens is that we get faulty parameters for the smarty tags. Pretty often they are expected as
"parameter"
but the wysiwyg-editors edits them as
"parameter"
If you'd rather not upgrade to the SVN version of Xinha you can just apply this fix: http://viewsvn.cmsmadesimple.org/viewsv ... tmlarea.js
All you need to do is to open up xinha/htmlarea.js and delete or comment out this line:
Code: Select all
str = str.replace(/\x22/g, """);
Your explanation was clear.reinhardmohr wrote: That‘s what causes the fatal errors. The only workaround I could find was to go to User Preferences and switch wysiwyg to none, then go back to edit the page, do a preview, notice the returned error code and substitute the " by ". This must be repeated several times until all the faulty parameters are cleared and then it all works again. But be careful: I don't think that all parameters are faulty or that everything should be swapped. So just look at the error code.
(I am really still new to CMS and that‘s my first post here, so I hope I made it all clear. Please excuse if I left something unclear.)
I'm glad you're using CMSMS. Let us know if you have any more problems or questions.
Hope this helps,
Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 
-
Teddy
Re: Probably solved problem with fatal error and smarty error
I seem to have the same problem but I do not understand a word of your explanation on how to solve this prodblem while using the FCKeditor.
Could you please explain this easier so even I understand?
Thanks in advance
Ted
By the way......Im using version 0.13 "Canary"
My error code look like this.....I put it out in another topic: http://forum.cmsmadesimple.org/index.ph ... 071.0.html
Could you please explain this easier so even I understand?
Thanks in advance
Ted
By the way......Im using version 0.13 "Canary"
My error code look like this.....I put it out in another topic: http://forum.cmsmadesimple.org/index.ph ... 071.0.html
Last edited by Teddy on Mon Aug 07, 2006 1:13 pm, edited 1 time in total.
- Elijah Lofgren
- Power Poster

- Posts: 811
- Joined: Mon Apr 24, 2006 1:01 am
Re: Probably solved problem with fatal error and smarty error
The easiest way to solve it with FCKeditor is to use the latest CMSMS 1.0 beta. The FCKeditor change is much harder to apply. There should be CMSMS 1.0 beta4 released today. The FCKeditor included with that should not mess with quotes.Teddy wrote: I seem to have the same problem but I do not understand a word of your explanation on how to solve this prodblem while using the FCKeditor.
Could you please explain this easier so even I understand?
Thanks in advance
Ted
By the way......Im using version 0.13 "Canary"
Hope this helps,
Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. 
Re: Probably solved problem with fatal error and smarty error
Have you tried just using single 'quotes' .
-
reinhardmohr
- Forum Members

- Posts: 112
- Joined: Sun Aug 06, 2006 2:36 pm
Re: Probably solved problem with fatal error and smarty error
Hi Ted,Teddy wrote: I seem to have the same problem but I do not understand a word of your explanation on how to solve this prodblem while using the FCKeditor.
Could you please explain this easier so even I understand?
Thanks in advance
Ted
By the way......Im using version 0.13 "Canary"
My error code look like this.....I put it out in another topic: http://forum.cmsmadesimple.org/index.ph ... 071.0.html
I didn't understand anything of your error codes - sorry. All I could do was to turn off the wysiwyg-editors (FCKEditor, too) by going to Preferences>User Preferences and switch Wysiwyg-editors to "None". Then go back and look at the page. Now there might be some " -word-like things. They are substitutes for quotation marks ". But some parameters require quotation marks " and not the "-substitutes. So by swapping them I could fix the faulty parameters. But as I am not a specialist I was lucky not "fixing" the wrong parameters - it's a little bit of trial and error. Later on I switched back to the Wysiwig-editor.
Good luck
Reinhard

