Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default HTML editor error Line 192 in configuration.php ???

    Hi I am having trouble with thisa part of the code. Line 192
    I wanted to change the editor in admin>my store to html but there is no options showing when i click on the editor line.
    I copied the code across from another sites configuration.php file but still no good.

    Can anyone tell me what is wrong with this code?


    if ($cInfo->set_function) {
    eval('$value_field = ' . $cInfo->set_function . '"' . htmlspecialchars($cInfo->configuration_value) . '");');
    } else {
    $value_field = zen_draw_input_field('configuration_value', $cInfo->configuration_value, 'size="60"');
    }
    'E-Start your web store' book - I Got it and now ..... I GET IT !....Well alot more of it anyway (-:

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: HTML editor error Line 192 in configuration.php ???

    You cannot change the editor by editing that file.

    What version of Zen Cart do you have?
    What versions has it been upgraded from?
    What addons/contributions have you installed?
    .

    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.

  3. #3
    Join Date
    Dec 2006
    Location
    Victoria, Australia
    Posts
    360
    Plugin Contributions
    0

    Default Re: HTML editor error Line 192 in configuration.php ???

    Thank you for your reply DrByte

    I am using version 1.3.6
    I have added the Image handler2

    What is happening is that when I am in Admin I cant swap the editor over from text to HTML as a default. When I select it the edit options are not showing up and I get that error message.
    'E-Start your web store' book - I Got it and now ..... I GET IT !....Well alot more of it anyway (-:

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: HTML editor error Line 192 in configuration.php ???

    It sounds like your upgrade to v1.3.6 didn't happen properly. You either missed some database updates, or missed updating some PHP files. This "symptom" may be an indication of one of several problems.

    Nevertheless, try this:

    1. Run this SQL query either in phpmyadmin or the sql patch tool:

    Code:
    UPDATE configuration SET set_function='zen_cfg_pull_down_htmleditors(' WHERE configuration_key='HTML_EDITOR_PREFERENCE';
    2. Edit admin/includes/functions/general.php
    around line 964 you should have:
    Code:
      function zen_cfg_pull_down_htmleditors($html_editor, $key = '') {
        global $editors_list;
        $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value');
    
        $editors_pulldown = array();
        foreach($editors_list as $key=>$value) {
          $editors_pulldown[] = array('id' => $key, 'text' => $value['desc']);
        }
        return zen_draw_pull_down_menu($name, $editors_pulldown, $html_editor);
      }
    Make sure that function definition exists in that file.

    If you've installed addons/contributions that alter this file you'll need to manually review all the changes those contributions have made.
    .

    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.

 

 

Similar Threads

  1. PHP error in /plugins/riCjLoader/config/jquery.form.php on line 11
    By ronswayoflife in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 7 Oct 2011, 10:03 AM
  2. any online editor for HTML,PHP file?
    By kitkitng in forum General Questions
    Replies: 1
    Last Post: 31 May 2011, 06:48 PM
  3. HTML Editor not available although updated in Configuration>My Store>HTML Editor
    By Dovente in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 22 Mar 2009, 05:09 PM
  4. Replies: 3
    Last Post: 13 Mar 2009, 05:20 PM
  5. HTML editor error Line 1 in configuration.php ???
    By blind1 in forum General Questions
    Replies: 3
    Last Post: 1 Sep 2007, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg