Help - Search - Members - Calendar
Full Version: FCK Editor Problem in CC 3.0.13
CubeCart Forums > CubeCart Version 3 > Installation & Upgrade Help (Version 3)
BBUK
Since upgrading from 3.0.12 to 3.0.13, the Editor in Admin backend creates errors in the pages you create. Specifically, it adds \" all over the place and won't display the images. It simply fouls up the HTML as soon as you click "Update"
Any ideas?
espresso
QUOTE(BBUK @ Oct 22 2006, 05:09 PM) *
Since upgrading from 3.0.12 to 3.0.13, the Editor in Admin backend creates errors in the pages you create. Specifically, it adds \" all over the place and won't display the images. It simply fouls up the HTML as soon as you click "Update"
Any ideas?

I'm having this exact same error and need it fixed, please if anyone knows how to fix this let me know my site is my income and now it's trashed.
peanutp
QUOTE(espresso @ Oct 22 2006, 08:13 PM) *
QUOTE(BBUK @ Oct 22 2006, 05:09 PM) *

Since upgrading from 3.0.12 to 3.0.13, the Editor in Admin backend creates errors in the pages you create. Specifically, it adds \" all over the place and won't display the images. It simply fouls up the HTML as soon as you click "Update"
Any ideas?

I'm having this exact same error and need it fixed, please if anyone knows how to fix this let me know my site is my income and now it's trashed.



I have just noticed this too!! Support, can this please be addressed asap.

Cheers

PEte
espresso
It isn't a problem with the FCKEditor, it actually disabled this for the home.php and even using the text editor it still does the exact same problem.

To verify it Is a problem with 3.0.13 you can disable the FCKEditor and text to see:

To Disable the FCK on the homepage:

Find:

<tr>
<td colspan="2" class="tdRichText">
<?php
$oFCKeditor = new FCKeditor('copy');
$oFCKeditor->BasePath = $GLOBALS['rootRel'].'admin/includes/rte/';
$oFCKeditor->Value = stripslashes($home['copy']);
$oFCKeditor->Create();
?>
</td>
</tr>

Replace with:

<tr>
<td colspan="2" class="tdText">
<textarea name="copy" class="textbox" rows="6" style="width: 560px;" ><?php if(isset($home['copy'])) echo stripslashes($home['copy']); ?></textarea>
</td>
</tr>
Citrus
The problem lies within the magic quotes security patch added to includes/ini.inc.php file.

Line 104:
CODE
$val = (!get_magic_quotes_gpc ()) ? addslashes ($val) : $val;


If this line is commented out and the site docs' text (removing the backslashes) is re-saved, it displays correctly.
peanutp
QUOTE(Citrus @ Oct 23 2006, 12:16 PM) *
The problem lies within the magic quotes security patch added to includes/ini.inc.php file.

Line 104:
CODE
$val = (!get_magic_quotes_gpc ()) ? addslashes ($val) : $val;


If this line is commented out and the site docs' text (removing the backslashes) is re-saved, it displays correctly.


Thank you so much for that, has just solved the problem. :-)

Cheers

Pete
Citrus
No problem wink.gif

Looking into whether it poses a security threat being disabled though...at least it identifies the culprit!
vrakas
I run into this same problem (CC3.0.14) and will HAVE to do as you guys suggested and thanks for the info smile.gif

@Al, is this the solution or is there something else you will provide us?
Does this affect any other functions of CC?

I have added this to the pinned post for now smile.gif
Al
Thanks for the info guys. I know how to go about fixing it but it may take a little work.

I'd suggest making an exception to the addslashes rule in the ini.inc.php file.

i.e. Make every instance of the FCKEditor have the same variable name.

If variable name !== FCK's Name -> add slashes. That should fix it.

I'll get on the case asap.
vrakas
Thanks Al, we will wait for this wink.gif
vrakas
Any news or modifications yet?
jacky
I'm really sorry, i still don't understand how to do it,i removed the backslash before "ADD" and it comes more trouble in the homepage
// add slashes if magic quotes is off
$val = (!get_magic_quotes_gpc ()) ? addslashes ($val) : $val;

many thanks in advance
vrakas
Follow this and it will work wink.gif

QUOTE
The problem lies within the magic quotes security patch added to includes/ini.inc.php file.

Line 104:
CODE$val = (!get_magic_quotes_gpc ()) ? addslashes ($val) : $val;

If this line is commented out and the site docs' text (removing the backslashes) is re-saved, it displays correctly.
Al
Thats a good temp fix. I haven't had a chance to get onto this yet.
vrakas
QUOTE
Thats a good temp fix. I haven't had a chance to get onto this yet.

We are waiting for 4 days now and then is holidays so can we have it before that? wink.gif
Al
I can't make wine out of water sadly.
vrakas
QUOTE(Al @ Dec 15 2006, 07:54 PM) *
I can't make wine out of water sadly.

Ok, thank you for this reply.
Al
I tell you what......... I wish I could! smile.gif
jacky
Hello there, thanks for your help. i think it maybe little bit different in here. i want to insert a link : <a href="http://clocks.thehomefurnishingstore.com/" title="Fine Selection Of Clocks" target="_blank">Fine Selection Of Clocks</a><br>

when i submit it then it automatic change to
<a title="\&quot;Fine" href="\&quot;http://clocks.thehomefurnishingstore.com/\&quot;" target="\&quot;_blank\&quot;" of="" selection="">Fine Selection Of Clocks</a><br/>

which make the link not available anymore, hope someone could help me out with this one.
not really understand the structure the great guy just gave.

many thanks
vrakas
Wouldnt we all?

Sadly, i also found that this problem occurs in other places of the CC cart even though i upgraded FCK to the latest version and comment out the line.

It will still show the &quot in the sentense when the receiver gets an email from the tell a friend.

ex: I found this '12&quot; Mandarin Spawn 2' and thought that you may be interested.

Thanks.


@jacky
Try and do as above and see if there is a diference wink.gif

Remember to backup before you do any changes.
jacky
thanks man, hope there will be some solution soon smile.gif
vrakas
Am sure they will be, there always is wink.gif
antzypants
Hi

I'm experiencing many errors on my product description pages and site docs and was wondering if the fckeditor could be the problem?

Can someone pls tell me and if the changes mentioned earlier should be made.

Much appreciated

Thanks
Antz

These are the errors on all pages.

Line 34
Char 1
Error: object required
Code: 0
URL: //mia-g.com.au/infant-girls/cat_2htm
jacky
still no solutions, hope someone can solve the prolem.
many thanks and happy holiday
design@jlum.com
Yes, I am also waiting to see a solution and know it is being worked on.
Thanks for all the excellent work that has been put into this product and
a good forum so I know I am not the only one with a certain problem.
Hope everyone has had a good Holiday. smile.gif

Linda
Stevie68
This is still happening with 3.0.16 and i would have thought it would be fixed by now. Any update please Al?
Ive tried upgrading the RTE but for some reason the upgrade isnt working.
gdowkpc
I'm having a problem that I can't seem to find addressed anywhere.

I am running a site with PostNuke. The url is http://www.nwham.com. The store is at http://nwham.com/store.

When I try to edit products or the home page, with what I guess is FCK Editor, I see a messed up version of the homepage of my Web site (not the home store page.).

The error says: Module store/admin/includes/rte/editor/fckeditor not available

This may be a conflict between PostNuke and CubeCart. Anyone come across this?

- Garrett
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.