Forums / All Other Contributions/Addons / fckeditor install 1.3.7

fckeditor install 1.3.7

Locked

Views: 4,554

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
25 Apr 2007, 1:07 AM
#1
alsmith avatar

alsmith

New Zenner

Join Date:
May 2004
Posts:
10
Plugin Contributions:
0

fckeditor install 1.3.7

I jus installed fckeditor on a new install of 1.3.7 and am getting this error on my product page.

Warning: Missing argument 1 for fckeditor() in /home/american/public_html/store/admin/includes/fckeditor.php on line 44

Fatal error: Call to undefined method: fckeditor->createfckeditor() in /home/american/public_html/store/admin/includes/modules/product/collect_info.php on line 415

Any ideas?

27 Apr 2007, 6:53 PM
#2
kevinlee avatar

kevinlee

New Zenner

Join Date:
Apr 2007
Posts:
14
Plugin Contributions:
0

Re: fckeditor install 1.3.7

i have the same issure
i have add the third moule ,i find when add the products !when display the error below
Warning: Missing argument 1 for fckeditor() in /home/kindman/public_html/client/031101/admin/includes/fckeditor.php on line 44

28 Apr 2007, 7:00 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: fckeditor install 1.3.7

alsmith:

Fatal error: Call to undefined method: fckeditor->createfckeditor() in /home/american/public_html/store**/admin/includes/modules/product/collect_info.php** on line 415
v1.3.7 doesn't have any reference to fckeditor on line 415 of that file.
This suggests that your collect_info.php file is out of date, either because it was missed during an upgrade or because it has been altered by uploading an incompatible contribution/mod to your site.

.
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.

8 May 2007, 8:12 AM
#4
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: fckeditor install 1.3.7

Hi
First sorry , i made new Thread , i did not know the was another one open ( can i closed it?)

here is my problem.

When I click on Meta Tag in my admin, this what I get

Fatal error: Cannot instantiate non-existent class: fckeditor in /home/tiledepo/public_html/store/admin/categories.php on line 851

And this is what on my line 851 starting at Line 850

if ($_SESSION['html_editor_preference_status']=='FCKEDITOR') {
(851) $oFCKeditor = new FCKeditor('metatags_description[' . $languages[$i]['id'] . ']') ;

$oFCKeditor->Value = zen_get_category_metatags_description($cInfo->categories_id, $languages[$i]['id']);
$oFCKeditor->Width = '97%' ;
$oFCKeditor->Height = '200' ;


Ty

8 May 2007, 10:28 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: fckeditor install 1.3.7

motti:

Fatal error: Cannot instantiate non-existent class: fckeditor

This suggests that you've not successfully uploaded all the files for the FCKEditor mod that you installed.
Perhaps your upload experienced a timeout or you skipped overwriting the files that needed to be updated.

.
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.

8 May 2007, 11:18 AM
#6
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: fckeditor install 1.3.7

You must enable FCKEDITOR in admin/includes/init_includes/init_html_editor.php. Copy this file to admin/includes/init_includes/overrides/init_html_editor.php and replace this code:

/**
 * List of installed editors should be here:
 * CONSTANTS are used for language-specific display names, and are defined in languages/extra_definitions/editors_list.php
 */
  $editors_list['NONE']      = array('desc' => EDITOR_NONE,      'handler' => '',              'special_needs' => '');
  $editors_list['HTMLAREA']  = array('desc' => EDITOR_HTMLAREA,  'handler' => 'htmlarea.php',  'special_needs' => '');
//  $editors_list['FCKEDITOR'] = array('desc' => EDITOR_FCKEDITOR, 'handler' => 'fckeditor.php', 'special_needs' => '');
//  $editors_list['TINYMCE']   = array('desc' => EDITOR_TINYMCE,   'handler' => 'tinymce.php',   'special_needs' => '');

by

/**
 * List of installed editors should be here:
 * CONSTANTS are used for language-specific display names, and are defined in languages/extra_definitions/editors_list.php
 */
  $editors_list['NONE']      = array('desc' => EDITOR_NONE,      'handler' => '',              'special_needs' => '');
  $editors_list['HTMLAREA']  = array('desc' => EDITOR_HTMLAREA,  'handler' => 'htmlarea.php',  'special_needs' => '');
  $editors_list['FCKEDITOR'] = array('desc' => EDITOR_FCKEDITOR, 'handler' => 'fckeditor.php', 'special_needs' => '');
//  $editors_list['TINYMCE']   = array('desc' => EDITOR_TINYMCE,   'handler' => 'tinymce.php',   'special_needs' => '');

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

8 May 2007, 11:52 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: fckeditor install 1.3.7

(or use the one supplied in the contribution zip)

.
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.

8 May 2007, 5:27 PM
#8
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: fckeditor install 1.3.7

Thank you both i work on it now and see if i got it

8 May 2007, 5:42 PM
#9
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: fckeditor install 1.3.7

Hello again a_berezin

This is how it looks before I changed it, and after the change I still got same errors.

/**

  • List of installed editors should be here:
  • CONSTANTS are used for language-specific display names, and are defined in languages/extra_definitions/editors_list.php
    */
    $editors_list['NONE'] = array('desc' => EDITOR_NONE, 'handler' => '', 'special_needs' => '');
    $editors_list['HTMLAREA'] = array('desc' => EDITOR_HTMLAREA, 'handler' => 'htmlarea.php', 'special_needs' => '');
    $editors_list['FCKEDITOR'] = array('desc' => EDITOR_FCKEDITOR, 'handler' => 'fckeditor.php', 'special_needs' => '');
    $editors_list['TINYMCE'] = array('desc' => EDITOR_TINYMCE, 'handler' => 'tinymce.php', 'special_needs' => '');


    Thank you for your help
8 May 2007, 8:27 PM
#10
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: fckeditor install 1.3.7

DrByte:

(or use the one supplied in the contribution zip)

I re upload the whole program and it is still the same

Any Idea

Tahnk You

9 May 2007, 4:46 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: fckeditor install 1.3.7

It appears that you may have modified the /admin/categories.php file or have installed an old version of it, which doesn't load the required components.

Please re-upload the master copy of that file from the v1.3.7 zip file, which you can obtain via the Zen Cart downloads area (sourceforge link).

.
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.

9 May 2007, 5:19 AM
#12
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: fckeditor install 1.3.7

Hi again

I did as you said, i copy the categories.php from a new zen 1.37 and this is what i got

Fatal error: Cannot instantiate non-existent class: fckeditor in /home/tiledepo/public_html/storedemo/admin/categories.php on line 849
:lookaroun
Ty again

9 May 2007, 10:01 AM
#13
drbyte avatar

drbyte

Sensei

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

Re: fckeditor install 1.3.7

Does this happen *only * when attempting to edit meta-tags?
Or also when editing product details?

.
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.

9 May 2007, 11:48 AM
#14
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: fckeditor install 1.3.7

DrByte:

Does this happen *only * when attempting to edit meta-tags?
Or also when editing product details?

I'm experiencing the same problem.

fckeditor works fine with define pages editor, ez-pages, category details and product details.

The error only occurs when editing category meta tags.
When editing product meta tags the normal editing screen appears and is functioning as expected.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 May 2007, 11:57 AM
#15
drbyte avatar

drbyte

Sensei

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

Re: fckeditor install 1.3.7

Ack! I missed the distinction of "category" edits vs "product", as the original post was about products.

To fix:

/admin/categories.php
around line 846 you have:for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $category_inputs_string_metatags_description .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' ; if ($_SESSION['html_editor_preference_status']=='FCKEDITOR') { $oFCKeditor = new FCKeditor('metatags_description[' . $languages[$i]['id'] . ']') ; $oFCKeditor->Value = zen_get_category_metatags_description($cInfo->categories_id, $languages[$i]['id']); $oFCKeditor->Width = '97%' ; $oFCKeditor->Height = '200' ; // $oFCKeditor->Config['ToolbarLocation'] = 'Out:xToolbar' ; // $oFCKeditor->Create() ; $output = $oFCKeditor->CreateHtml() ; $category_inputs_string_metatags_description .= '<br />' . $output; // $category_inputs_string_metatags_description .= '<IFRAME src= "' . DIR_WS_CATALOG . 'FCKeditor/fckeditor.html?FieldName=metatags_description[' . $languages[$i]['id'] . ']&Upload=false&Browse=false&Toolbar=Short" width="97%" height="200" frameborder="no" scrolling="yes"></IFRAME>'; // $category_inputs_string_metatags_description .= '<INPUT type="hidden" name="metatags_description[' . $languages[$i]['id'] . ']" ' . 'value=' . "'" . zen_get_category_metatags_description($cInfo->categories_id, $languages[$i]['id']) . "'>"; } else { $category_inputs_string_metatags_description .= zen_draw_textarea_field('metatags_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', zen_get_category_metatags_description($cInfo->categories_id, $languages[$i]['id'])); }Replace that with this:```
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$category_inputs_string_metatags_description .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' ;
$category_inputs_string_metatags_description .= zen_draw_textarea_field('metatags_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', zen_get_category_metatags_description($cInfo->categories_id, $languages[$i]['id']));
}

.
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.

9 May 2007, 12:27 PM
#16
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: fckeditor install 1.3.7

Thanks Chris,

Works fine.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

9 May 2007, 2:57 PM
#17
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: fckeditor install 1.3.7

Thank you

it is working perfect now
:smile:

5 Oct 2007, 10:49 AM
#18
redpaint avatar

redpaint

New Zenner

Join Date:
Jun 2007
Posts:
10
Plugin Contributions:
0

Re: fckeditor install 1.3.7

Hi All,

The solution above is wrong, it should be:

    for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
      $category_inputs_string_metatags_description .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' ;
      $category_inputs_string_metatags_description .= zen_draw_textarea_field('metatags_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', zen_get_category_metatags_description($cInfo->categories_id, $languages[$i]['id']));
    }

If you look closely you'll see that the previous solution above creates another instance of the keywords and not, in fact, the description.

6 Oct 2008, 10:02 AM
#19
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: fckeditor install 1.3.7

can any one else clarife this?