Posts by iosman123

    Hello,


    I seem to be having issues with a site sending emails. Upon testing under Settings / Email. If I try to send a test, the site times out with a 504 Gateway Time-out error and the following is logged in the server log.

    Code: Server Log

    1. Error 500 POST /perch/core/settings/email/ HTTP/1.0 https://www.###.gov.uk/perch/core/settings/email/ Apache SSL/TLS access
    2. Warning mod_fcgid: read data timeout in 60 seconds, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    3. Error Premature end of script headers: index.php, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    4. Error 24612#0: *204846 upstream timed out (110: Connection timed out) while reading response header from upstream nginx error

    I also commented out their SMTP settings and tried again. This results in Runway telling me "Invalid address: (setFrom) PERCH_EMAIL_FROM". And the server logs:

    Code: Server Log

    1. Warning mod_fcgid: stderr: PHP Warning: Use of undefined constant PERCH_EMAIL_FROM_NAME - assumed 'PERCH_EMAIL_FROM_NAME' (this will throw an Error in a future version of PHP) in /var/www/vhosts/###.gov.uk/httpdocs/public/perch/core/settings/modes/email.pre.php on line 27, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    2. Warning mod_fcgid: stderr: PHP Warning: Use of undefined constant PERCH_EMAIL_FROM - assumed 'PERCH_EMAIL_FROM' (this will throw an Error in a future version of PHP) in /var/www/vhosts/###.gov.uk/httpdocs/public/perch/core/settings/modes/email.pre.php on line 28, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error

    PHP

    1. Perch Runway: 3.1.4, PHP: 7.2.15, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $, with PDO
    2. Server OS: Linux, cgi-fcgi
    3. Installed apps: content (3.1.4), assets (3.1.4), categories (3.1.4), perch_blog (5.6.1), perch_events (1.9.5), perch_forms (1.12), chirp_seo (1.4.1), perch_mailchimp (3.1), pipit_sharing (1.1.0)
    4. App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_events', 'perch_forms', 'pipit_sharing', 'perch_mailchimp', 'chirp_seo', ];
    5. PERCH_LOGINPATH: /perch
    6. PERCH_PATH: /var/www/vhosts/###.gov.uk/httpdocs/public/perch
    7. PERCH_CORE: /var/www/vhosts/###.gov.uk/httpdocs/public/perch/core
    8. PERCH_RESFILEPATH: /var/www/vhosts/###.gov.uk/httpdocs/public/perch/resources
    9. Image manipulation: GD Imagick
    10. PHP limits: Max upload 16M, Max POST 16M, Memory: 256M, Total max file upload: 16M
    11. F1: 3b606135b33e6a102526838f4152a807
    12. Resource folder writeable: Yes
    13. SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
    14. REQUEST_URI: /perch/core/settings/diagnostics/
    15. DOCUMENT_ROOT: /var/www/vhosts/###.gov.uk/httpdocs/public
    16. HTTP_HOST: www.###.gov.uk


    As the error is referencing core files I wondered if something changed upon my recent update to Perch Runway 3.1.4?


    thanks

    iosman


    thanks my issue has been fixed.

    Hello,


    I am trying to output the brand slug on a product page as so...

    Code

    1. <a href="/shop/brands/<perch:shop id="brand" type="shop_brand" output="slug" />"><perch:shop id="brand" type="shop_brand"></a>

    ...the brand name displays perfectly but the brand slug isn't outputting at all...


    Code

    1. <a href="/shop/brands/">SKINADE®</a>


    ...how can I output the brand slug on the product page please?


    thanks

    iosman

    Hello,


    I'm having a weird issue – it's generating error log messages, but it appears that the admin is working fine.


    The error is:


    Code

    1. "Call to a member function userGivenName() on null" at [...]perch/core/runway/apps/content/async/get-lock.php line 39

    It appears to occur when I save a piece of content, for example at the URL:

    Code

    1. /perch/core/apps/content/edit/?id=12"

    I'm using a custom auth plugin. Looking in the content_locks table, the userID is 0.


    The immediate trace is:


    Code

    1. "[...]perch/core/lib/api/PerchAPI_AuthPlugin.class.php:69",
    2. "[...]perch/core/lib/PerchUsers.class.php:32",
    3. "[...]perch/core/inc/auth_light.php:14",
    4. "[...]perch/core/runway/apps/content/async/get-lock.php:6"

    My resume_session method returns an array (as per the docs https://docs.grabaperch.com/api/auth/) with keys email and role.


    As far as I can tell, if it can't get a lock, then it's looking for a PerchUser object which (obviously) it doesn't have.


    Am I doing something wrong?


    thanks

    iosman

    How can I test if the youtube video has a description? In other words, since the youtube_video id is an array, how can I test for the description key only?

    Code
    1. //This doesn't work!
    2. <perch:if exists="youtube_video" output="description">
    3. <perch:content cordless vacuum id="youtube_video"
    4. https://www.bestcordlessvacuumx.com type="youtube" output="description"/>
    5. <perch:else>
    6. Output something else
    7. </perch:if>


    thanks my issue has been fixed.


    thanks my issue has been fixed.

    Hello,


    So currently I have this in addons/plugins/editors/config.js:

    Code

    1. Perch.UserConfig.redactor = function(){
    2. // LOAD PLUGINS
    3. var load = function(cb) {
    4. cb();
    5. };
    6. // SETTINGS
    7. var get = function(profile, config, field) {
    8. // PLUGINS
    9. // FORMATTING
    10. config.formatting = ['p', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
    11. // BUTTONS
    12. config.buttons = ['bold','italic'];
    13. config.plugins = [];
    14. return config;
    15. };
    16. return {
    17. 'get': get,
    18. 'load': load
    19. }
    20. }();

    Display Less

    How can I specify different buttons and formatting, etc according to the size value I add to the textarea in the template? It was a really useful function to stop non-tech savvy editors from screwing things up!



    thanks

    iosman

    Hello,


    I seem to be having issues with a site sending emails. Upon testing under Settings / Email. If I try to send a test, the site times out with a 504 Gateway Time-out error and the following is logged in the server log.

    Code: Server Log

    1. Error 500 POST /perch/core/settings/email/ HTTP/1.0 https://www.###.gov.uk/perch/core/settings/email/ Apache SSL/TLS access
    2. Warning mod_fcgid: read data timeout in 60 seconds, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    3. Error Premature end of script headers: index.php, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    4. Error 24612#0: *204846 upstream timed out (110: Connection timed out) while reading response header from upstream nginx error

    I also commented out their SMTP settings and tried again. This results in Runway telling me "Invalid address: (setFrom) PERCH_EMAIL_FROM". And the server logs:

    Code: Server Log

    1. Warning mod_fcgid: stderr: PHP Warning: Use of undefined constant PERCH_EMAIL_FROM_NAME - assumed 'PERCH_EMAIL_FROM_NAME' (this will throw an Error in a future version of PHP) in /var/www/vhosts/###.gov.uk/httpdocs/ https://tweakboxx-app.com
      https://tweakbox-app.net https://tweakboxx.net public/perch/core/settings/modes/email.pre.php on line 27, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error
    2. Warning mod_fcgid: stderr: PHP Warning: Use of undefined constant PERCH_EMAIL_FROM - assumed 'PERCH_EMAIL_FROM' (this will throw an Error in a future version of PHP) in /var/www/vhosts/###.gov.uk/httpdocs/public/perch/core/settings/modes/email.pre.php on line 28, referer: https://www.###.gov.uk/perch/core/settings/email/ Apache error

    thanks

    iosman

    Hello,


    I an running a staging site for a client. When in the backend I find the < link on the side pane doesn't work. The staging site has forms app installed. When I look in browser's console there are several errors:

    Code

    1. Uncaught SyntaxError: Invalid or unexpected token app.6738d5d5f5664f7c5e34.js:1
    2. Uncaught ReferenceError: webpackJsonp is not defined at app.6738d5d5f5664f7c5e34.js:1
    3. js_lang.php:1 Uncaught TypeError: Cannot read property 'init' of undefined at js_lang.php:1

    Diagnostic information as follows:

    PHP

    1. Perch: 3.1.2
    2. Production mode: Production (100)
    3. Installed apps: content (3.1.2), assets (3.1.2), categories (3.1.2), perch_blog (5.6.1), perch_events (1.9.5), perch_forms (1.9.1)
    4. DB driver: PDO
    5. DB tables: perch3_blog_authors (3), perch3_blog_comments (0), perch3_blog_index (22586), perch3_blog_posts (554), perch3_blog_posts_to_tags (0), perch3_blog_sections (7), perch3_blog_tags (0), perch3_blog_webmention_queue (0), perch3_blogs (1), perch3_categories (0), perch3_category_counts (0), ometv chatroulette perch3_category_sets (2), perch3_content_index (2113), perch3_content_items (737), perch3_content_regions (257), perch3_events (1334), perch3_events_categories (3), perch3_events_to_categories (33), perch3_forms (2), perch3_forms_responses (500), perch3_menu_items (11), perch3_navigation (5), perch3_navigation_pages (64), perch3_page_templates (5), perch3_pages (84), perch3_resource_log (5914), perch3_resource_tags (3), perch3_resources (2901), perch3_resources_to_tags (6), perch3_settings (34), perch3_user_passwords (5), perch3_user_privileges (43), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (6)
    6. Users: 6
    7. App runtimes:
    8. <?php
    9. $apps_list = [
    10. perch_blog,
    11. perch_forms,
    12. perch_events
    13. ];
    14. Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
    15. Editor plug-ins:
    16. H1: f66f60b7f4ada3ad0eb474bf53364b0d
    17. L1: 4b5f93d994c838808a58990a8b1f3264
    18. F1: 3b606135b33e6a102526838f4152a807
    19. headerColour: #ffffff
    20. content_singlePageEdit: 1
    21. helpURL:
    22. siteURL: /
    23. hideBranding: 0
    24. content_collapseList: 1
    25. lang: en-gb
    26. installedAt: 3.0.10
    27. update_3.0.10: done
    28. latest_version:
    29. on_sale_version: 3.1.4
    30. perch_blog_update: 5.6
    31. perch_blog_post_url: /news/post.php?s={postSlug}
    32. perch_events_update: 1.8
    33. headerScheme: light
    34. perch_blog_site_name:
    35. perch_blog_slug_format: %Y-%m-%d-{postTitle}
    36. perch_blog_akismet_key: a0588b81059a
    37. perch_blog_max_spam_days: 0
    38. perch_events_detail_url: /events/event.php?s={eventSlug}
    39. dashboard: 0
    40. hide_pwd_reset: 0
    41. keyboardShortcuts: 0
    42. content_hideNonEditableRegions: 0
    43. content_frontend_edit: 0
    44. content_skip_region_list: 0
    45. assets_restrict_buckets: 0
    46. perch_blog_comment_notify: 0
    47. perch_blog_webmention_tx: 0
    48. perch_blog_webmention_rx: 0
    49. update_3.1.2: done
    50. sidebar_back_link: 0
    51. PERCH_DEVELOPMENT: 10
    52. PERCH_STAGING: 50
    53. PERCH_PRODUCTION: 100
    54. PERCH_DB_USERNAME: cargdbuser1
    55. PERCH_DB_SERVER: localhost
    56. PERCH_DB_DATABASE: admin_cargilfield
    57. PERCH_DB_PREFIX: perch3_
    58. PERCH_TZ: UTC
    59. PERCH_EMAIL_FROM: jamesh@thirdfloordesign.co.uk
    60. PERCH_EMAIL_FROM_NAME: james Holmes
    61. PERCH_LOGINPATH: /cms
    62. PERCH_PATH: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms
    63. PERCH_CORE: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms/core
    64. PERCH_RESFILEPATH: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms/resources
    65. PERCH_RESPATH: /cms/resources
    66. PERCH_TEMPLATE_FILTERS: 1
    67. PERCH_HTML5: 1
    68. PERCH_RUNWAY:
    69. PERCH_ERROR_MODE: DIE
    70. PERCH_DATE_LONG: %d %B %Y
    71. PERCH_DATE_SHORT: %d %b %Y
    72. PERCH_TIME_SHORT: %H:%M
    73. PERCH_TIME_LONG: %H:%M:%S
    74. PERCH_RUNWAY_ROUTED:
    75. PERCH_STRONG_PASSWORDS:
    76. PERCH_ASSET_VERSION: 6738d5d5f5664f7c5e34
    77. PERCH_DEBUG:
    78. PERCH_PREVIEW_ARG: preview
    79. PERCH_TEMPLATE_PATH: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms/templates
    80. PERCH_DEFAULT_DOC: index.php
    81. PERCH_DEFAULT_EXT: .php
    82. PERCH_PRODUCTION_MODE: 100
    83. PERCH_XHTML_MARKUP:
    84. PERCH_RWD: 1
    85. PERCH_HTML_ENTITIES:
    86. PERCH_SSL:
    87. PERCH_STRIPSLASHES:
    88. PERCH_PROGRESSIVE_FLUSH: 1
    89. PERCH_PARANOID:
    90. PERCH_FORCE_SECURE_COOKIES:
    91. PERCH_DEFAULT_BUCKET: default
    92. PERCH_TRANSLATION_ASSIST:
    93. PERCH_PASSWORD_MIN_LENGTH: 6
    94. PERCH_MAX_FAILED_LOGINS: 10
    95. PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
    96. PERCH_VERIFY_UPLOADS:
    97. PERCH_PRIV_ASSIST:
    98. PERCH_CUSTOM_EDITOR_CONFIGS:
    99. PERCH_ENABLE_EXIF: 1
    100. PERCH_AUTH_PLUGIN:
    101. PERCH_DB_CHARSET: utf8
    102. PERCH_DB_PORT:
    103. PERCH_DB_SOCKET:
    104. PERCH_APPS_EDITOR_PLUGIN: markitup
    105. PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
    106. Hosting settings
    107. PHP: 5.4.13
    108. Zend: 2.4.0
    109. OS: Linux
    110. SAPI: cgi-fcgi
    111. Safe mode: not detected
    112. MySQL client: 5.5.30
    113. MySQL server: 5.5.30
    114. Free disk space: 14.08 GB
    115. Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, curl, dom, fileinfo, gd, imagick, imap, json, ldap, exif, mcrypt, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, snmp, sqlite3, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader
    116. GD: Yes
    117. ImageMagick: Yes
    118. PHP max upload size: 128M
    119. PHP max form post size: 8M
    120. PHP memory limit: 128M
    121. Total max uploadable file size: 8M
    122. Resource folder writeable: Yes
    123. Session timeout: 24 minutes
    124. Native JSON: Yes
    125. Filter functions: Yes
    126. Transliteration functions: No
    127. PATH: /sbin:/usr/sbin:/bin:/usr/bin
    128. PP_CUSTOM_PHP_INI: /var/www/vhosts/system/cargilfield.thirdfloordigital.net/etc/php.ini
    129. PP_CUSTOM_PHP_CGI_INDEX: fastcgi
    130. SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
    131. REQUEST_URI: /cms/core/settings/diagnostics/?extended
    132. QUERY_STRING: extended
    133. REQUEST_METHOD: GET
    134. SERVER_PROTOCOL: HTTP/1.0
    135. GATEWAY_INTERFACE: CGI/1.1
    136. REMOTE_PORT: 57068
    137. SCRIPT_FILENAME: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net/cms/core/settings/diagnostics/index.php
    138. SERVER_ADMIN: root@localhost
    139. DOCUMENT_ROOT: /var/www/vhosts/thirdfloordigital.net/cargilfield.thirdfloordigital.net
    140. REMOTE_ADDR: 82.35.54.156
    141. SERVER_PORT: 80
    142. SERVER_ADDR: 205.186.165.244
    143. SERVER_NAME: cargilfield.thirdfloordigital.net
    144. SERVER_SOFTWARE: Apache
    145. SERVER_SIGNATURE: <address>Apache Server at cargilfield.thirdfloordigital.net Port 80</address>
    146. HTTP_COOKIE: PHPSESSID=il57p87n9i00ek2hk56p1m3152; cmsa=1
    147. HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9,la;q=0.8
    148. HTTP_ACCEPT_ENCODING: gzip, deflate
    149. HTTP_REFERER: http://cargilfield.thirdfloordigital.net/cms/core/settings/diagnostics/
    150. HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
    151. HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
    152. HTTP_DNT: 1
    153. HTTP_UPGRADE_INSECURE_REQUESTS: 1
    154. HTTP_CACHE_CONTROL: no-cache
    155. HTTP_PRAGMA: no-cache
    156. HTTP_CONNECTION: close
    157. HTTP_X_ACCEL_INTERNAL: /internal-nginx-static-location
    158. HTTP_X_FORWARDED_FOR: 82.35.54.156
    159. HTTP_X_REAL_IP: 82.35.54.156
    160. HTTP_HOST: cargilfield.thirdfloordigital.net
    161. UNIQUE_ID: XFh0mM26pfQAAEODUW8AAAAC
    162. FCGI_ROLE: RESPONDER
    163. PHP_SELF: /cms/core/settings/diagnostics/index.php
    164. REQUEST_TIME_FLOAT: 1549300888.7957
    165. REQUEST_TIME: 1549300888


    Thanks

    iosman

    Hello,


    My client alerted me that they can no longer log into their website to make updates or changes, and I confirmed that I'm not able to log in either.


    I get the message "Sorry, your license key isn't valid for this domain.", but when I log in and look at my Perch account at perchcms.com that domain is licensed. I'm not sure how to fix this - Can anyone make a recommendation?


    thanks

    iosman