Forum

Thread tagged as: Problem

CKeditor not working in Paypal Shop product.html

Ckeditor works fine for all other pages on my site except for the product.html template on the Paypal Shop App

I am running latest version of the Paypal app and v2.8.14 of Perch.

code used


<perch:shop id="productDescHTML" type="textarea" editor="ckeditor" html="true" size="m" />

This just appears as a standard textarea in Perch without any editor options

Neil Duddridge

Neil Duddridge 1 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you are running 2.8.14 then you should update, so that would be my first suggestion.

Then please post your Diagnostics Report and the entire template.

Ok, I've updated Perch to latest version, problem still exists

Diagnostics


Perch: 2.8.18 Production mode: Production (100) Installed apps: content (2.8.18), assets (2.8.18), categories (2.8.18), perch_blog (4.6), perch_shop_paypal (1.2.3) DB driver: PDO DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_shop_categories, perch2_shop_log, perch2_shop_orders, perch2_shop_product_options, perch2_shop_products, perch2_shop_products_to_categories, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 2 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_shop_paypal', ); Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Editor plug-ins: ckeditor, markitup H1: 1885b494ff9542d70fc9ada282f8f546 L1: 0e0aa457fb855add168073f5d29e7c3c headerColour: #007742 content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 1 content_collapseList: 1 lang: en-gb update_2.8.8: done latest_version: 2.8.15 on_sale_version: 2.8.18 headerScheme: dark dashboard: 1 hide_pwd_reset: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 update_2.8.13: done perch_blog_post_url: /blog/post.php?s={postSlug} perch_blog_slug_format: %Y-%m-%d-{postTitle} perch_blog_akismet_key: perch_blog_max_spam_days: 1 perch_blog_comment_notify: 0 perch_gallery_update: 2.8.5 update_2.8.14: done perch_blog_update: 5.0 perch_shop_paypal_email: xxxx perch_shop_product_url: /shop/product.php?s={productSlug} perch_shop_display_oos: 0 update_2.8.18: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: xxxx PERCH_DB_SERVER: xxxxx PERCH_DB_DATABASE: xxxx PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: xxxx PERCH_EMAIL_FROM_NAME: xxxx PERCH_LOGINPATH: /site_admin PERCH_PATH: /var/sites/d/xxxx.co.uk/public_html/site_admin PERCH_CORE: /var/sites/d/xxxx.co.uk/public_html/site_admin/core PERCH_RESFILEPATH: /var/sites/d/xxxx.co.uk/public_html/assets PERCH_RESPATH: /assets PERCH_HTML5: 1 PERCH_RUNWAY: PERCH_ERROR_MODE: DIE PERCH_DATE_LONG: %d %B %Y PERCH_DATE_SHORT: %d %b %Y PERCH_TIME_SHORT: %H:%M PERCH_TIME_LONG: %H:%M:%S PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /var/sites/d/xxxx.co.uk/public_html/site_admin/templates PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_RWD: PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_STRIPSLASHES: PERCH_PROGRESSIVE_FLUSH: 1 PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_SESSION_TIMEOUT_MINS: 20 HOSTING SETTINGS PHP: 5.6.15 Zend: 2.6.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ MySQL server: 5.6.21 Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, mssql, standard, mysql, mysqlnd, mysqli, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, memcached, memcache, mhash, ionCube Loader, Zend Guard Loader GD: Yes ImageMagick: No PHP max upload size: 100M PHP max form post size: 100M PHP memory limit: 128M Total max uploadable file size: 100M Resource folder writeable: Yes Session timeout: 240 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: Yes DOCUMENT_ROOT: /var/sites/d/xxxx.co.uk/public_html GATEWAY_INTERFACE: CGI/1.1 HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_CONNECTION: close HTTP_COOKIE: cmsa=1; PHPSESSID=fb0dd1162bca433bb1fa4ac74af01222 HTTP_HOST: xxxx.co.uk HTTP_REFERER: https://xxxx.co.uk/site_admin/core/settings/diagnostics/ HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 HTTP_X_FORWARDED_FOR: xxxx PATH: /bin QUERY_STRING: extended REDIRECT_STATUS: 200 REMOTE_ADDR: xxxx REMOTE_PORT: 40577 REQUEST_METHOD: GET REQUEST_URI: /site_admin/core/settings/diagnostics/?extended SCRIPT_FILENAME: /var/sites/d/xxxx.co.uk/public_html/site_admin/core/settings/diagnostics/index.php SCRIPT_NAME: /site_admin/core/settings/diagnostics/index.php SERVER_ADDR: xxxxx SERVER_ADMIN: you@example.com SERVER_NAME: xxxx.co.uk SERVER_PORT: 80 SERVER_PROTOCOL: HTTP/1.1 SERVER_SOFTWARE: Apache PHP_SELF: /site_admin/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1449608315.55 REQUEST_TIME: 1449608315 argc: 1

The product.html templates is as follows



<div class="row"> <div class="col-md-6"> <div class="owl-carousel" data-plugin-options='{"items": 1}'> <div> <div class="thumbnail"> <img alt="<perch:shop id="productTitle" />" class="img-responsive img-rounded" src="<perch:shop id="productImage" label="Image" type="image" width="555" height="555" crop="true" bucket="shop" />"> </div> </div> </div> </div> <div class="col-md-6"> <div class="summary entry-summary"> <h1 class="mb-none"><strong><perch:shop id="productTitle" /></strong></h1> <p class="price"><span class="amount">&pound;<perch:shop id="productPrice" /></span></p> <p>Description</p> <perch:shop id="productDescHTML" type="textarea" editor="ckeditor" html="true" size="m" /> <perch:form id="_xclick" method="post" action="https://www.paypal.com/cgi-bin/webscr" class="cart"> <perch:input type="hidden" name="business" value="<perch:setting id="perch_shop_paypal_email" />" /> <perch:input type="hidden" name="currency_code" value="GBP" /> <perch:input type="hidden" name="cmd" value="_cart" /> <div class="quantity"> <input type="button" class="minus" value="-"> <input type="text" class="input-text qty text" title="Qty" value="1" name="add" min="1" step="1"> <input type="button" class="plus" value="+"> </div> <perch:if exists="productOptions_html"><perch:shop id="productOptions_html" encode="false" type="hidden" /></perch:if> <perch:input type="hidden" name="add" value="1" /> <perch:input type="hidden" name="item_name" value="<perch:shop id="productTitle" />" /> <perch:input type="hidden" name="item_number" value="<perch:shop id="productCode" />" /> <perch:input type="hidden" name="amount" value="<perch:shop id="productPrice" />" /> <button class="btn btn-primary btn-icon"><perch:input type="submit" name="add" value="Add to cart" /> Add to cart</button> </form> <!--<div class="product_meta"> <span class="posted_in">Categories: <a rel="tag" href="#">Accessories</a>, <a rel="tag" href="#">Bags</a>.</span> </div>--> </div> </div> </div>
Drew McLellan

Drew McLellan 2638 points
Perch Support

I'm not sure that's going to work. The Paypal Shop app is pretty old and about to be replaced.

Thanks Drew. To be honest, having spent today working on the Paypal app I am now rethinking using it as a shop app for my client. I've got them using Perch for the rest of their site so that won't change. I might just install OpenCart for them instead. Unfortunately I can't wait for your new Shop to be released so caught between a rock and hard place.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I certainly wouldn't use the Paypal app for anything new at this point.