Page 1 of 1

preview window and cms_selflink error

Posted: Tue Apr 03, 2007 9:11 am
by Signex
Hi,

On some pages when you press "preview" you get syntax errors, I never knew why this happened because on some pages it did, on others there was no error at all.

Here is an example;

Code: Select all

string(141) "Smarty error: [in preview:cmspreviewze7PgR line 44]: syntax error: invalid attribute name: 'diensten\' (Smarty_Compiler.class.php, line 1536)" string(141) "Smarty error: [in preview:cmspreviewze7PgR line 44]: syntax error: invalid attribute name: 'Diensten\' (Smarty_Compiler.class.php, line 1536)" string(142) "Smarty error: [in preview:cmspreviewze7PgR line 44]: syntax error: invalid attribute name: 'producten\' (Smarty_Compiler.class.php, line 1536)" string(142) "Smarty error: [in preview:cmspreviewze7PgR line 44]: syntax error: invalid attribute name: 'Producten\' (Smarty_Compiler.class.php, line 1536)"
I finally found that you only get these errors when you have cms_selflinks on a page, like the above error it has these links in the page;

Code: Select all

{cms_selflink page='diensten' text='Diensten'} 
{cms_selflink page='producten' text='Producten'}
does anyone has a fix for this error, while still keeping the cms_selflink ?

If you change the cms_selflink to a regular html link the error is gone.

sys info;

CMSMS 1.05
PHP 5.xx
MySQL 5.xx

Well its not an issue that i cant live with but i stil hope someone has a solution.

Re: preview window and cms_selflink error

Posted: Tue Apr 03, 2007 9:28 am
by Dee
The issue doesn't occur over here.
syntax error: invalid attribute name: 'Diensten\'
syntax error: invalid attribute name: 'diensten\'
Looks like your using

Code: Select all

{cms_selflink page='diensten\' text='Diensten\'} 
Check the content source code from your WYSIWYG if you're using one, it may have added the backslashes.

Regards,
D

Re: preview window and cms_selflink error

Posted: Tue Apr 03, 2007 10:27 am
by Signex

Code: Select all

<p>Voorbeelden vindt u onder {cms_selflink page='diensten' text='Diensten'} en {cms_selflink page='producten' text='Producten'}</p>
>:( Its not it, here`s an exact quote from the source
 

Re: preview window and cms_selflink error

Posted: Tue Apr 03, 2007 10:38 am
by KO
I have 1.0.5 and do not get those errors you mentioned with selflink. My links look very similar than yours. So maybe it's something else that is causing it?

Re: preview window and cms_selflink error

Posted: Tue Apr 03, 2007 10:40 am
by Dee
The issue isn't occurring on my 1.0.5 install either (used your exact quote).
I'm wondering if it's template dependent; try the same thing on a page using one of the CMS default templates to find out.

Regards,
D

Re: preview window and cms_selflink error

Posted: Tue Apr 03, 2007 10:53 am
by Signex
Ill check later that today. and i`ll let you know

thanks !!

Re: preview window and cms_selflink error

Posted: Wed Apr 04, 2007 8:33 pm
by Signex
Tried different templates and all still the same error. very annoying  >:(

Re: preview window and cms_selflink error

Posted: Thu Apr 05, 2007 12:56 am
by Dr.CSS
Which editor are you using?...

Did you look at the source to see if it is changing it?...

Re: preview window and cms_selflink error

Posted: Thu Apr 05, 2007 8:26 am
by Signex
I`m using TinyMCE, i had the same problem using FCKeditor.

The source doesnt make any changes to it.

Re: preview window and cms_selflink error

Posted: Fri Apr 06, 2007 12:51 pm
by Signex
bump, not on person has this problem?

Re: preview window and cms_selflink error

Posted: Tue Apr 10, 2007 10:47 am
by Signex
still searching for a solution... ;)