Page 1 of 2

Smarty Errors related to CSS problem?

Posted: Mon Oct 13, 2008 1:40 pm
by DavidRad
I'm running CMS Version 1.4.1 on FreeBSD 6.2-RELEASE-p10 and all system requirements are "OK". However, my homepage doesn't seem to be fetching the css properly:  http://www.whatsthebigidea.com/cms/index.php

I thought it might be a rewrite issue, so I removed the "friendly url" options and .htaccess rules though still no good.  I do see the below code when previewing pages through the pages editor:


string(164) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: 'http://wiki.cmsmadesimple.org/\' (Smarty_Compiler.class.php, line 1547)" string(147) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'CMS' (Smarty_Compiler.class.php, line 1555)" string(148) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Made' (Smarty_Compiler.class.php, line 1555)" string(150) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Simple' (Smarty_Compiler.class.php, line 1555)" string(158) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Documentation\' (Smarty_Compiler.class.php, line 1555)" string(147) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: 'documentation\' (Smarty_Compiler.class.php, line 1547)" string(140) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: '_blank\' (Smarty_Compiler.class.php, line 1547)" string(164) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: 'http://forum.cmsmadesimple.org\' (Smarty_Compiler.class.php, line 1547)" string(147) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'CMS' (Smarty_Compiler.class.php, line 1555)" string(148) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Made' (Smarty_Compiler.class.php, line 1555)" string(150) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Simple' (Smarty_Compiler.class.php, line 1555)" string(150) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Forum\' (Smarty_Compiler.class.php, line 1555)" string(139) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: 'forum\' (Smarty_Compiler.class.php, line 1547)" string(140) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: '_blank\' (Smarty_Compiler.class.php, line 1547)" string(172) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: 'http://www.cmsmadesimple.org/IRC.shtml\' (Smarty_Compiler.class.php, line 1547)" string(155) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Information' (Smarty_Compiler.class.php, line 1555)" string(149) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'about' (Smarty_Compiler.class.php, line 1555)" string(147) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'the' (Smarty_Compiler.class.php, line 1555)" string(147) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'CMS' (Smarty_Compiler.class.php, line 1555)" string(148) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Made' (Smarty_Compiler.class.php, line 1555)" string(150) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'Simple' (Smarty_Compiler.class.php, line 1555)" string(147) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'IRC' (Smarty_Compiler.class.php, line 1555)" string(152) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: expecting '=' after attribute name 'channel\' (Smarty_Compiler.class.php, line 1555)" string(137) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: 'IRC\' (Smarty_Compiler.class.php, line 1547)" string(140) "Smarty error: [in preview:cmspreviewBpBtdF line 119]: syntax error: invalid attribute name: '_blank\' (Smarty_Compiler.class.php, line 1547)" string(179) "Smarty error: [in preview:cmspreviewBpBtdF line 121]: syntax error: invalid attribute name: 'http://www.gnu.org/licenses/licenses.html#GPL\' (Smarty_Compiler.class.php, line 1547)" string(151) "Smarty error: [in preview:cmspreviewBpBtdF line 121]: syntax error: expecting '=' after attribute name 'General' (Smarty_Compiler.class.php, line 1555)" string(150) "Smarty error: [in preview:cmspreviewBpBtdF line 121]: syntax error: expecting '=' after attribute name 'Public' (Smarty_Compiler.class.php, line 1555)" string(152) "Smarty error: [in preview:cmspreviewBpBtdF line 121]: syntax error: expecting '=' after attribute name 'License\' (Smarty_Compiler.class.php, line 1555)" string(137) "Smarty error: [in preview:cmspreviewBpBtdF line 121]: syntax error: invalid attribute name: 'GPL\' (Smarty_Compiler.class.php, line 1547)" string(140) "Smarty error: [in preview:cmspreviewBpBtdF line 121]: syntax error: invalid attribute name: '_blank\' (Smarty_Compiler.class.php, line 1547)"

Any help would be welcomed.

Thanks!!

Re: Smarty Errors related to CSS problem?

Posted: Mon Oct 13, 2008 1:55 pm
by DavidRad
It seems to work ONLY when I have debug on in config.php... ??

Re: Smarty Errors related to CSS problem?

Posted: Mon Oct 13, 2008 5:06 pm
by alby
DavidRad wrote: It seems to work ONLY when I have debug on in config.php... ??
Delete all files in tmp/templates_c and tmp/cache and disable debug in config.php
Post a message when you are ready, in this way we can look your errors

Alby

Re: Smarty Errors related to CSS problem?

Posted: Tue Oct 14, 2008 10:41 am
by DavidRad
Thanks for the reply. I did what you instructed, though there are no apparent errors, on the Apache logo file or printed on the homepage: http://www.whatsthebigidea.com/cms/index.php. BTW, if I hard code the style sheet directly in a copy of the homepage, it works fine. Also, if I try manually calling http://www.whatsthebigidea.com/cms/styl ... p?cssid=39 or http://www.whatsthebigidea.com/cms/styl ... p?cssid=31 in a browser I get a scrambled output.

Re: Smarty Errors related to CSS problem?

Posted: Tue Oct 14, 2008 10:56 am
by alby

Re: Smarty Errors related to CSS problem?

Posted: Tue Oct 14, 2008 11:00 am
by DavidRad
Maybe I'm slow. What should I interpret from your reply? Thanks.

Re: Smarty Errors related to CSS problem?

Posted: Tue Oct 14, 2008 11:03 am
by alby
DavidRad wrote: Maybe I'm slow. What should I interpret from your reply? Thanks.
Have you tried to open link?

Alby

Re: Smarty Errors related to CSS problem?

Posted: Tue Oct 14, 2008 11:07 am
by DavidRad
Sure. The bottom "NO" links appear scrambled. Are they not supposed to be parsed via php and corrected displayed?

I sure could use some help here...

Posted: Wed Oct 15, 2008 11:53 am
by DavidRad
Still can't get the CSS to work.  ???

Re: Smarty Errors related to CSS problem?

Posted: Wed Oct 15, 2008 2:10 pm
by Russ
Is this the same problem you posted here:
http://forum.cmsmadesimple.org/index.php/topic,26702.0/topicseen.html

If so please try and not post twice ;-)

Check your config.php paths? I think I've seen this before and it was solved by either checking you rights or by putting it in the root of the domain not in a subdirectory. You could also look as using the 'RewriteBase' in your .httaccess file if required?

Re: Smarty Errors related to CSS problem?

Posted: Wed Oct 15, 2008 2:15 pm
by duclet
This seems to be an encoding problem. It looks to be exporting it as Unicode. Unfortunately, PHP as it currently stands, does not really support Unicode all that well.

Re: Smarty Errors related to CSS problem?

Posted: Wed Oct 15, 2008 2:53 pm
by Pierre M.
Russ wrote: Is this the same problem you posted here:
http://forum.cmsmadesimple.org/index.php/topic,26702.0/topicseen.html

If so please try and not post twice ;-)
Yes, Russ is right : DavidRad, please follow forum rules, don't cross post.

Pierre M.

Re: Smarty Errors related to CSS problem?

Posted: Wed Oct 15, 2008 8:07 pm
by alby
DavidRad wrote: Sure. The bottom "NO" links appear scrambled. Are they not supposed to be parsed via php and corrected displayed?
This "files" are not encoded but compress with gz (try to save url with .gz)
Now check your config.php for:
$config['output_compression'] and put to false

Alby

Re: Smarty Errors related to CSS problem?

Posted: Wed Oct 15, 2008 9:37 pm
by DavidRad
alby wrote:
DavidRad wrote: Sure. The bottom "NO" links appear scrambled. Are they not supposed to be parsed via php and corrected displayed?
This "files" are not encoded but compress with gz (try to save url with .gz)
Now check your config.php for:
$config['output_compression'] and put to false

Alby
Sorry for the double post :-\

The config.php says: $config['output_compression'] = false;

I tried coping the site from ./cms into root and still the gzip problem exists.

Re: Smarty Errors related to CSS problem?

Posted: Wed Oct 15, 2008 9:45 pm
by caldazar
Hello,

I did a fresh install of CMS Version 1.4.1 and have the exact same issue. Older versions worked fine on the same server.

CSS encoding is messed up unless I turn on debug mode, then it appears fine.

I have compression set to false:
$config['output_compression'] = false;

Any other ideas?

I may have to use an older version as I need a solution soon.