Forum

Thread tagged as: Problem, Error

500 Error updating a page

Okay, so I have an issue that keeps resulting in a 500 error. the page is simple, just a header, and a repeater tag that uses a text input and two file inputs. ideally, 20-30 repeating items will be listed on the page. There is no perch error report as the server simply results in a 500 error. below you will see the template used and the basic diagnostics. I have all the PDFs already in the assets, the 500 error takes place after I have entered 2-3 people and selected their PDFs from the resource bucket.

the names are Czech, so they use special characters. wondering if that has anything to do with it. the file names of the PDFs do not use any special characters, only standard non-accented Latin alphabet.

    <perch:content id="heading" type="text" label="Header" required="true" title="true" />

    <perch:repeater id="clients">
        <perch:content type="text" id="name" label="Name" />
        <perch:content id="prace" type="file" label="Závěrečná práce" />
        <perch:content id="cert" type="file" label="Certifikát" />
    </perch:repeater>
Perch: 3.0.12
Production mode: Production (100)
Installed apps: content (3.0.12), assets (3.0.12), categories (3.0.12), perch_blog (5.6.1)
DB driver: PDO
DB tables: perch3_blog_authors (2), perch3_blog_comments (0), perch3_blog_index (7710), perch3_blog_posts (91), perch3_blog_posts_to_tags (0), perch3_blog_sections (1), perch3_blog_tags (0), perch3_blog_webmention_queue (0), perch3_blogs (1), perch3_categories (1), perch3_category_counts (1), perch3_category_sets (1), perch3_content_index (8716), perch3_content_items (378), perch3_content_regions (76), perch3_menu_items (9), perch3_navigation (8), perch3_navigation_pages (55), perch3_page_templates (9), perch3_pages (101), perch3_resource_log (1748), perch3_resource_tags (2), perch3_resources (494), perch3_resources_to_tags (4), perch3_settings (30), perch3_user_passwords (0), perch3_user_privileges (36), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (2)
Users: 2
App runtimes:
<?php
    $apps_list = [
        'perch_blog',
    ];
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
Editor plug-ins: ckeditor
H1: 55b82a1293d836b82c58f8f263e1dc39
L1: d295066be09eb16fed3e48ba5a767ab5
F1: 3b606135b33e6a102526838f4152a807
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
hideBranding: 1
content_collapseList: 1
lang: en-gb
installedAt: 3.0.9
update_3.0.9: done
latest_version:
on_sale_version:
headerScheme: light
dashboard: 1
hide_pwd_reset: 0
keyboardShortcuts: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
content_skip_region_list: 1
assets_restrict_buckets: 0
perch_blog_update: 5.6
perch_blog_post_url: /perch/blog/post.php?s={postSlug}
perch_blog_site_name: ČESKÁ ASOCIACE CHEERLEADERS
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
perch_blog_webmention_tx: 0
perch_blog_webmention_rx: 0
siteURL: /
logoPath: /perch/resources/cach.png
update_3.0.12: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: xenoplexus
PERCH_DB_SERVER: mysql.idowebsitestuff.com
PERCH_DB_DATABASE: cach_cz
PERCH_DB_PREFIX: perch3_
PERCH_TZ: Europe/Prague
PERCH_EMAIL_FROM: blake.myers@xenoplexus.com
PERCH_EMAIL_FROM_NAME: Blake Myers
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/cach_cz/cach.xenoplexus.com/perch
PERCH_CORE: /home/cach_cz/cach.xenoplexus.com/perch/core
PERCH_RESFILEPATH: /home/cach_cz/cach.xenoplexus.com/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_GMAPS_API_KEY: AIzaSyDmWkei0P40fcL4KkQCom-jvQfqlgt6pZ4
PERCH_RWD: 1
PERCH_DEBUG: 1
PERCH_TEMPLATE_FILTERS: 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_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_ASSET_VERSION: f704e7442d11292c99b5
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/cach_cz/cach.xenoplexus.com/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_ENABLE_EXIF: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 7.1.10
Zend: 3.1.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $
MySQL server: 5.6.34-log
Free disk space: 24,26 GB
Extensions: Core, date, libxml, pcre, sqlite3, filter, mbstring, SPL, PDO, Reflection, pdo_sqlite, hash, session, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, standard, ftp, gd, gettext, exif, iconv, imap, json, mcrypt, mysqlnd, openssl, pcntl, pdo_mysql, posix, pspell, mysqli, SimpleXML, soap, sockets, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib, imagick, memcached, Zend OPcache
GD: Yes
ImageMagick: Yes
PHP max upload size: 64M
PHP max form post size: 65M
PHP memory limit: 90M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /bin:/usr/bin:/sbin:/usr/sbin
RAILS_ENV: production
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 55019
SCRIPT_FILENAME: /home/cach_cz/cach.xenoplexus.com/perch/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@cach.xenoplexus.com
DOCUMENT_ROOT: /home/cach_cz/cach.xenoplexus.com
REMOTE_ADDR: 86.49.108.144
SERVER_PORT: 80
SERVER_ADDR: 64.111.108.27
SERVER_NAME: cach.xenoplexus.com
SERVER_SOFTWARE: Apache
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_DNT: 1
HTTP_REFERER: https://cach.xenoplexus.com/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: close
HTTP_COOKIE: PHPSESSID=d5af367c0664108ef1b92ea1d0d0ed61; cmsa=1
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_HOST: cach.xenoplexus.com
DH_USER: cach_cz
dsid: 35116414
SCRIPT_URI: https://cach.xenoplexus.com/perch/core/settings/diagnostics/
SCRIPT_URL: /perch/core/settings/diagnostics/
UNIQUE_ID: WjZye0BvbBsAAH8qQ1kAAAAD
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1513517691,3603
REQUEST_TIME: 1513517691
Blake Myers

Blake Myers 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you checked your error log to see what the error is?

[Sun Dec 17 06:08:16 2017] [error] [client 86.49.108.144] Premature end of script headers: index.php, referer: https://cach.xenoplexus.com/perch/core/apps/content/edit/?id=103
[Sun Dec 17 06:08:16 2017] [error] [client 86.49.108.144] File does not exist: /home/cach_cz/cach.xenoplexus.com/internal_error.html, referer: https://cach.xenoplexus.com/perch/core/apps/content/edit/?id=103
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think the error probably points to a server configuration issue. Does the same thing work in your dev environment?