Smartyproblems with spaces - only in cms ?? Topic is solved

General project discussion. NOT for help questions.
Post Reply
piratos

Smartyproblems with spaces - only in cms ??

Post by piratos »

Here a tag from the german smarty handbook:

{mailto address="me@domain.com" text="Der angezeigte Linktext"}

And this is the error:

Fatal error: Smarty error: [in preview:cms50.tmp line 322]: syntax error: expecting '=' after attribute name 'angezeigte' (Smarty_Compiler.class.php, line 1532) in C:\xampp\htdocs\beta3\lib\smarty\Smarty.class.php on line 1088

This works

{mailto address="me@domain.com" text="Der_angezeigte_Linktext"}


It is now a smarty problem or once from the cms ??
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Smartyproblems with spaces - only in cms ??

Post by Ted »

Very stange.  I put this on my TODO list to check out.
piratos

Re: Smartyproblems with spaces - only in cms ??

Post by piratos »

I have sometimes the same problem  with 

Code: Select all

{cms_selflink page="contact-us" text="Contact Us"} 
in your first page.  Smarty don't like the spaces.
piratos

Smarty Big Bug

Post by piratos »

In beta3 and in the dailys all Smarty tags works only corrcet  with ' parameter'  not with "parameter".

Many errors are gone if you use 'parameter'
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Smartyproblems with spaces - only in cms ??

Post by Ted »

I pasted this into the default page of an svn install.

Code: Select all

<p>{cms_selflink page="contact-us" text="Contact Us"}</p>
Resulting html:

Code: Select all

<p><a href="http://cms.wishy.org:8080/index.php?page=contact-us">Contact Us</a></p>
Needless to say, it seems to be working right for me.

I'm on PHP5.0.3 on linux.  I also tried it on my OS X machine and it works good there, too.

Is it a platform thing?  Or maybe " is turning into " or something weird?
piratos

Re: Smartyproblems with spaces - only in cms ??

Post by piratos »

This error was found by random from user miketmc , but he didn't  see it as an general error  . miketmc works with . PHP 4.3.11 and linux - webserver.


I work with 5.04 Windows and Linux. 

" " works most but not for ever  '  ' works always.

All of my Smarty line 1088 errors are gone.

All predefined tags  of the smarty handbook works now without problems.
Last edited by piratos on Sun May 29, 2005 11:14 am, edited 1 time in total.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Smartyproblems with spaces - only in cms ??

Post by Ted »

This is fixed.  The bug was in the new version of TinyMCE.  That's why I never saw the problem...  becuase I also turn off the WYSIWYG.
piratos

Re: Smartyproblems with spaces - only in cms ??

Post by piratos »

Yes it works now !
Post Reply

Return to “General Discussion”