Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Location
    Manchester, NH
    Posts
    52
    Plugin Contributions
    0

    Default Pasting HTML into order comment editor prints all HTML rather than rendering it

    • What version of Zen Cart are you using? 1.57c




    • Has your site been upgraded? When? From what version(s)? 1.56b




    • If you've upgraded, HOW did you upgrade? (official upgrade procedure or an automated script from your hosting company?) official upgrade procedure through freelancer so I'm cleaning up that mess and can't be 100% sure





    • What plugins/addons have you installed? When? If your problems are payment-related, what payment module(s) are you using? If it's shipping-related, which shipping module(s) are you using?


    UPS
    USPS
    BLUE PAY
    ULTIMATE URLS
    TABBED PRODUCTS PRO
    freeoptions shipping
    sales reports
    sales reports with graphs

    NOT SHIPPING OR PAYMENT RELATED




    • If your problems are language-pack related (non-English), have you checked that all the language files are loaded and correct?

    Not language related





    • HOW did you install Zen Cart? (upload via FTP and run zc_install, or a one-click install from your hosting company? (one-click installs might mean you don't have enough information about your site/server to make customizations easily))


    FTP





    • What version of PHP and MySQL is your server using? (See Admin->Tools->Server Info)


    PHP 7.4 reduced to 7.3 ready to reduce to 7.2 if that will end this hell.
    MySQL 5.7.32




    • WHEN did the problem "start"? How does that compare with other events of your hosting company, changes you've made to your site files/addons, or your admin settings, etc?



    Freelancer flipped up 1.57c update this morning and problem started thereupon



    • Please post the contents of related "debug logs" generated by Zen Cart (wrap the content in
      Code:
       and
      tags please!).


    below you will see another bug I am encountering that is that the SEO friendly url's cannot find a function zen_product_in_category which I fixed with the band aid of adding that function to usu.php Did I mention this day has been hell?

    Code:
    [15-Jan-2021 15:51:54 America/Chicago] PHP Notice: Undefined variable: show_top_submit_button in /includes/templates/template_default/templates/tpl_products_new_default.php on line 34
    [15-Jan-2021 15:51:54 America/Chicago] PHP Notice: Undefined variable: show_bottom_submit_button in /includes/templates/template_default/templates/tpl_products_new_default.php on line 70
    [15-Jan-2021 15:51:54 America/Chicago] PHP Notice: Undefined variable: show_top_submit_button in /includes/templates/template_default/templates/tpl_products_new_default.php on line 80
    [15-Jan-2021 15:51:54 America/Chicago] PHP Notice: Undefined variable: show_bottom_submit_button in /includes/templates/template_default/templates/tpl_products_new_default.php on line 80
    
    
    Code:
    [15-Jan-2021 15:44:09 America/Chicago] PHP Notice: Undefined variable: show_top_submit_button in /includes/templates/template_default/templates/tpl_products_new_default.php on line 34


    Code:
    15-Jan-2021 15:44:09 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require() called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: require(includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php): failed to open stream: No such file or directory in /includes/templates/template_default/templates/tpl_products_new_default.php on line 57.
    
    [15-Jan-2021 15:44:09 America/Chicago] PHP Fatal error: require(): Failed opening required 'includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /includes/templates/template_default/templates/tpl_products_new_default.php on line 57

    Code:
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] Request URI: /products_new?disp_order=6&page=4, IP address: 27.5.139.76
    #1 require(/includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php) called at [/includes/templates/template_default/templates/tpl_products_new_default.php:57]
    #2 require(/includes/templates/template_default/templates/tpl_products_new_default.php) called at [/includes/templates/mobishop_blue/common/tpl_main_page.php:113]
    #3 require(/includes/templates/mobishop_blue/common/tpl_main_page.php) called at [/index.php:94]
    --> PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL - assumed 'TEXT_PRODUCTS_MODEL' (this will throw an Error in a future version of PHP) in /includes/templates/mobishop_blue/templates/tpl_modules_products_new_listing.php on line 40.
    
    [15-Jan-2021 15:43:01 America/Chicago] PHP Notice: Undefined variable: show_bottom_submit_button in /includes/templates/template_default/templates/tpl_products_new_default.php on line 70
    [15-Jan-2021 15:43:01 America/Chicago] PHP Notice: Undefined variable: show_top_submit_button in /includes/templates/template_default/templates/tpl_products_new_default.php on line 80
    [15-Jan-2021 15:43:01 America/Chicago] PHP Notice: Undefined variable: show_bottom_submit_button in /includes/templates/template_default/templates/tpl_products_new_default.php on line 80
    

    i am discussing moving off this unsupported payment option with client
    Code:
    [15-Jan-2021 15:27:47 America/Chicago] PHP Notice: Undefined variable: data in /includes/modules/payment/bluepay_an.php on line 349
    [15-Jan-2021 15:27:48 America/Chicago] PHP Notice: Undefined property: bluepay_an::$transaction_id in /includes/modules/payment/bluepay_an.php on line 501



    not blank




    • If this is your first store, have you tested all aspects of transactions before going live?

    old store, orders are processing




    • In what ways is your site customized or different from a brand new uncustomized install?


    calls wordpress on same server to list blog entries onto zen cart page





    • Please post your site URL* so we can take a look at it. This is especially important if you're encountering display/layout problems, so the problem can be seen directly.

      b-naturals . com
    • If you're encountering problems that could be related to your server or hosting company, include the name of your hosting company (not their URL).

    liquidweb but it's not them so much as going to php 7.4 in my humble opine


    docs and forum: yes but I am not finding

    CLIENT is copying information from payment processor into editor on order page

    Client is using Microsoft Edge and that is intractable given client's how do you say.

    Client was forced to control-v rather than paste via menu, I have no idea if this is part of things so I'm adding it

    When client pastes HTML formatted from payment processor invoice into order page editor comments, the WYSIWYG editor accepts the paste as formatted HTML and displays it that way.

    BUT when order comment is saved, the editor adds lots of vertical space between each paragraph or break (not sure which) and generally lengthens the comment to double or triple original format in height.

    When one views that same comment under the INVOICE button rather than the EDIT button, the HTML is displayed as if it were text

    Code:
    <TABLE class="table table-condensed" width="491">
    <TR>
    <TD><dl>
    <dt>Transaction Type:</dt>
    <dd>VOID</dd>
    </dl>
    <dl>
    <dt>Transaction Date:</dt>
    <dd>2021-01-15 13:56:39</dd>
    </dl></TD>
    </TR>
    </TABLE>

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Pasting HTML into order comment editor prints all HTML rather than rendering it

    First observations:
    - you said you just upgraded to v1.5.7c ... but 1.5.7c isn't released yet. Where did you get that?
    - your "undefined variable" warnings are probably a result of your old template not having been upgraded. Some things were updated in v157
    - the "PHP Warning: Use of undefined constant TEXT_PRODUCTS_MODEL" is probably a result of your language files not being upgraded. Some defines were relocated/centralized in v157
    - downgrading PHP versions is not going to change any of this
    .

    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
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Pasting HTML into order comment editor prints all HTML rather than rendering it

    Regarding the HTML being rendered as HTML, in v156 it always showed raw HTML.

    In v157 it was changed to show raw HTML for the first-displayed non-blank comment, in case that comment was entered by the customer (which could have contained malicious html),
    and then for subsequent comments (such as would typically be provided by the administrator) it renders the HTML as HTML, so that clickable links can be provided to things like a tracking-number lookup etc.
    .

    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.

  4. #4
    Join Date
    Apr 2007
    Location
    Manchester, NH
    Posts
    52
    Plugin Contributions
    0

    Default Re: Pasting HTML into order comment editor prints all HTML rather than rendering it

    was just a senior momentt. It is 1.5.7b

 

 

Similar Threads

  1. Replies: 7
    Last Post: 23 Apr 2017, 06:39 AM
  2. HTML Editor preview changes to Plain Text with HTML code
    By Morph99 in forum Basic Configuration
    Replies: 5
    Last Post: 3 Jan 2011, 10:12 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. Product HTML Editor allow all HTML?
    By Astroman in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Oct 2008, 12:02 AM
  5. EasyPopulate-Trouble Pasting HTML into Excel
    By Christoff The One in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 17 Apr 2008, 08:04 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR