preview window and cms_selflink error

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Signex

preview window and cms_selflink error

Post 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.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: preview window and cms_selflink error

Post 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
Signex

Re: preview window and cms_selflink error

Post 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
 
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: preview window and cms_selflink error

Post 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?
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: preview window and cms_selflink error

Post 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
Signex

Re: preview window and cms_selflink error

Post by Signex »

Ill check later that today. and i`ll let you know

thanks !!
Signex

Re: preview window and cms_selflink error

Post by Signex »

Tried different templates and all still the same error. very annoying  >:(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: preview window and cms_selflink error

Post by Dr.CSS »

Which editor are you using?...

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

Re: preview window and cms_selflink error

Post by Signex »

I`m using TinyMCE, i had the same problem using FCKeditor.

The source doesnt make any changes to it.
Signex

Re: preview window and cms_selflink error

Post by Signex »

bump, not on person has this problem?
Signex

Re: preview window and cms_selflink error

Post by Signex »

still searching for a solution... ;)
Locked

Return to “CMSMS Core”