Page 1 of 1
Probably solved problem with fatal error and smarty error
Posted: Sun Aug 06, 2006 2:57 pm
by reinhardmohr
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
Re: Probably solved problem with fatal error and smarty error
Posted: Sun Aug 06, 2006 7:29 pm
by Elijah Lofgren
reinhardmohr 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"
I have fixed this in the SVN version of Xinha:
http://viewsvn.cmsmadesimple.org/viewsv ... a&view=rev
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:
I've done the same think for FCKeditor and the fix should be included with CMSMS 1.0 beta3.
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.)
Your explanation was clear.

I'm glad you're using CMSMS. Let us know if you have any more problems or questions.
Hope this helps,
Elijah
Re: Probably solved problem with fatal error and smarty error
Posted: Mon Aug 07, 2006 1:11 pm
by Teddy
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
Re: Probably solved problem with fatal error and smarty error
Posted: Mon Aug 07, 2006 1:15 pm
by Elijah Lofgren
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"
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.
Hope this helps,
Elijah
Re: Probably solved problem with fatal error and smarty error
Posted: Mon Aug 07, 2006 1:16 pm
by Dr.CSS
Have you tried just using single 'quotes' .
Re: Probably solved problem with fatal error and smarty error
Posted: Mon Aug 07, 2006 7:22 pm
by reinhardmohr
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
Hi Ted,
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