Forums / All Other Contributions/Addons / Problem getting ck editor to work properly in zc1.5

Problem getting ck editor to work properly in zc1.5

Views: 3,849

Results 1 to 18 of 18
6 Jan 2012, 11:37 PM
#1
bongobayfusion avatar

bongobayfusion

New Zenner

Join Date:
Jan 2012
Posts:
9
Plugin Contributions:
0

Problem getting ck editor to work properly in zc1.5

PROBLEM GETTING CK EDITOR TO WORK PROPERLY IN ZC1.5

Zen Cart 1.5
Upgraded from 1.3.8a

I just added ck editor to the site, but when I go to "Define Page Editor" or "Easy Page Editor" on the admin back end and select CK as the editor, and then select a file, the path shows up correctly, but the file code or source doesn't show up?

Its just a big empty box. It doesn't matter if I hit source or not, its still totally empty.

Is there a easy fix for this one?

Thanks for your help!

7 Jan 2012, 2:52 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problem getting ck editor to work properly in zc1.5

That suggests you've missed uploading one or more of the related files, or that there's a language problem.

I suggest downloading the latest version of the addon (updated today) and re-uploading the files.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Jan 2012, 10:04 PM
#3
vienkhach avatar

vienkhach

New Zenner

Join Date:
Dec 2010
Posts:
11
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

I upgraded from 1.3.9h to 1.5 and have the same problem.

It is strange that I can only see words in 1 file (define_site_map.php) the rest other files I don't see the contents.

I tried to redownload and uploaded the latest version but still the same. I also checked file permission and all the same, no difference.

I checked on mormal website they all there, no difference

I am not sure what is causing the problem that I can not see the contents of these files but define_site_map.php

Any help or suggestions would be great!

Thanks,

11 Jan 2012, 11:22 PM
#4
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

vienkhach:

I upgraded from 1.3.9h to 1.5 and have the same problem.

It is strange that I can only see words in 1 file (define_site_map.php) the rest other files I don't see the contents.

I tried to redownload and uploaded the latest version but still the same. I also checked file permission and all the same, no difference.

I checked on mormal website they all there, no difference

I am not sure what is causing the problem that I can not see the contents of these files but define_site_map.php

Any help or suggestions would be great!

Thanks,

Don't take this the wrong way I've made these school boy mistakes myself
have you downloaded the latest version for v1.5
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1626
renamed the folders to your admin name
and set ckeditor as your default in admin configuration/mystore/html editor

What ever your doing remember to KISS ( Keep It Simple Stupid )

12 Jan 2012, 3:12 AM
#5
crafts2gifts avatar

crafts2gifts

New Zenner

Join Date:
Apr 2009
Posts:
7
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

About the same problem here. My product descriptions are not showing when I try to edit my products. It is working for new product descriptions. Weird that the customer side still sees the descriptions as before.

I uploaded the correct files and double checked them.

My cache file is returning the error:

[11-Jan-2012 21:03:14] PHP Warning:  htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument in /home/craftsg1/public_html/Wholesale/demo/wolfyjr421/includes/modules/product/collect_info.php on line 401

I am still troubleshooting if anyone has some tips.

Thanks very much.

12 Jan 2012, 3:26 AM
#6
crafts2gifts avatar

crafts2gifts

New Zenner

Join Date:
Apr 2009
Posts:
7
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

I forgot to include the code for that file. Also, I am using ZC 1.5

Here is the code for around Line 401 @ /admin/includes/modules/product/collect_info.php:

<script language="javascript"><!--
updateGross();
//--></script>
<?php
    for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
          <tr>
            <td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td>
            <td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="main" width="25" valign="top"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
               [B][I][I][B] <td class="main" width="100%"><?php echo zen_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '30', htmlspecialchars((isset($products_description[$languages[$i]['id']])) ? stripslashes($products_description[$languages[$i]['id']]) : zen_get_products_description($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)); //,'id="'.'products_description' . $languages[$i]['id'] . '"'); ?></td>[/B][/I][/I][/B]
              </tr>
            </table></td>
          </tr>
<?php
    }
?>

The code in blue is line 401.

12 Jan 2012, 4:11 AM
#7
crafts2gifts avatar

crafts2gifts

New Zenner

Join Date:
Apr 2009
Posts:
7
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

Sorry for being a bit vague:blush:. Although I read these forums quite a bit, I do not post very often.

I hope that I am not barking up the wrong tree here.

Reading some other threads from older versions lead me to believe that CKEditor is the cause. I removed CKEditor and the text shows up fine (although it is all source code/plain text.)

I've used Winmerge to compare the file when working (CK Not Installed) and when not (CK installed). I can't find a difference so it leads me to believe that something is being modified by CK.

Perhaps my logic is flawed. I am not great at reading code. My symptoms are similar to Vien and Bongo but just a different file.

Any help or thoughts would be greatly appreciated.

12 Jan 2012, 4:58 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problem getting ck editor to work properly in zc1.5

crafts2gifts:

I removed CKEditor and the text shows up fine
Somehow I missed that in your earlier discussion.
Puzzling.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Jan 2012, 7:59 PM
#9
vienkhach avatar

vienkhach

New Zenner

Join Date:
Dec 2010
Posts:
11
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

OK i found the fix for my problem

Edit this file admin/includes/languages/english.php

with the following line from:

// charset for web pages and emails
define('CHARSET', 'utf-8');

to:

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

and now I can read all my pages again.

Also check includes/languages/english.php
and includes/languages/YOUR_TEMPLATE/english.php

for

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');

to make sure you have correct settings.

I would love to use 'utf-8' as default instead of 'iso-8859-1' for special characters (non-english) with my product descriptions but at least for now I know what caused the problem.

I am looking forward to change back to 'utf-8' as soon I figure out how make the editor can read all the pages with utf-8 setting.

Happy Zen Cart user!!!!

23 Jan 2012, 8:42 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problem getting ck editor to work properly in zc1.5

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Feb 2012, 6:15 PM
#11
uswebworx avatar

uswebworx

Zen Follower

Join Date:
Sep 2006
Location:
USA
Posts:
297
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

I had a customer install this and lost his sidebars on the main page, but they are there on other pages? Any idea?

Signature not needed

2 Feb 2012, 3:37 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problem getting ck editor to work properly in zc1.5

CKEditor isn't used on the storefront at all. So highly unlikely to be related.
Or else you've put the files in the wrong places and probably mangled other things in the process. Or installed other addons at the same time and the symptoms are caused by those other things instead.

Might help:
https://www.zen-cart.com/tutorials/index.php?article=82

Either that or WAY more information is needed for diagnosing the problem ... and should be in a completely new discussion thread.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Feb 2012, 3:42 AM
#13
uswebworx avatar

uswebworx

Zen Follower

Join Date:
Sep 2006
Location:
USA
Posts:
297
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

After reinstalling and checking a few other things its fixed thanks to this thread

Signature not needed

3 Feb 2012, 3:20 PM
#14
muskiemetal avatar

muskiemetal

New Zenner

Join Date:
Jan 2007
Posts:
4
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

I made all the modifications to the english and config files to iso charset and I still can't get the editor to come up.

It is in the My Store selection, and also shows up on the Define pages area, but when I select it, it just does nothing??

3 Feb 2012, 3:38 PM
#15
muskiemetal avatar

muskiemetal

New Zenner

Join Date:
Jan 2007
Posts:
4
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

Found it, disregard above. iso was the fix.

3 Feb 2012, 4:53 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problem getting ck editor to work properly in zc1.5

Thanks for confirming that restoring your site's configuration to match the character set of your data is what solved the problem.

Changing character sets is not recommended unless you know exactly what you're doing and have a solid business reason for making the change.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jul 2012, 9:11 PM
#17
digiwinkel avatar

digiwinkel

New Zenner

Join Date:
Jul 2010
Location:
Velsen-Zuid
Posts:
33
Plugin Contributions:
0

Re: Problem getting ck editor to work properly in zc1.5

After installing the latest CKE editor on my Zen 1.5 store (Dutch too) I found an empty screen when selected CKE editor as my default editor. After some searching I found the following file missing from the fileset:

editors/ckeeditor/lang/MYLANGUAGE.js (in my case: nl.js)

After adding this from a CKEeditor for Zen Cart 1.3.9h It all worked fine,.. It may help someone.

3 Jul 2012, 8:58 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Problem getting ck editor to work properly in zc1.5

Correct. If you read the documentation contained in the addon, you'll see that situation explained. Along with the reasons why.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.