Forum

Thread tagged as: Error, Runway, Events

Editing events in Events app results in 500 error

Hello Perchers,

I tried updating an event on a client’s site that I set up a couple of months ago using the Events app.

Problem

When I view the events list in Perch Runway and click on an event to edit it, I get a 500 error. The front end is working fine, I just get the errors in the Perch back end and cannot edit or add new events anymore.

What I tried

Seeing another forum thread (https://forum.grabaperch.com/forum/04-11-2016-events-app-admin-fatal-php-error) and my PHP error (see below) mentioning repeaters, I noticed I use repeaters because my events sometimes have multiple dates and I need a repeater in addition to the standard event date. Removing the repeaters in the template does not solve the problem, same HTTP 500 error.

According to my git commits, the file "PerchFieldTypes.class.php" that is mentioned in the PHP error log was changed in June when I updated Perch to 2.8.29. I haven’t edited events since then, so this change might be the source of the problem and it slipped my attention.

Kind regards Jannis

event.html (excerpt)

<perch:events id="eventDateTime" type="date" format="%A, %e %B %Y" time="true" label="Datum" />
<perch:repeater id="eventDates" label="Weitere Termine für Weiterbildung" order="2">
    <perch:events id="eventDateTimeFurther" type="date" format="%A, %e %B %Y" time="true" label="Weiteres Datum" />
</perch:repeater>

Diagnostics report

PERCH INFORMATION

Perch Runway: 2.8.31
Production mode: Production (100)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_blog (4.6), collection_6 (2.8.31), collection_2 (2.8.31), perch_events (1.9.2), perch_forms (1.8.3), collection_5 (2.8.31), collection_1 (2.8.31)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (4), perch2_blog_comments (17), perch2_blog_index (1917), perch2_blog_posts (49), perch2_blog_posts_to_tags (10), perch2_blog_sections (1), perch2_blog_tags (12), perch2_categories (4), perch2_category_counts (3), perch2_category_sets (1), perch2_collection_index (1658), perch2_collection_items (260), perch2_collection_revisions (89), perch2_collections (4), perch2_content_index (2380), perch2_content_items (216), perch2_content_regions (37), perch2_events (17), perch2_events_categories (4), perch2_events_to_categories (17), perch2_forms (3), perch2_forms_responses (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (17), perch2_page_templates (29), perch2_pages (24), perch2_resource_log (1191), perch2_resource_tags (0), perch2_resources (565), perch2_resources_to_tags (0), perch2_settings (28), perch2_user_passwords (0), perch2_user_privileges (41), perch2_user_role_privileges (41), perch2_user_roles (3), perch2_users (4)
Users: 4
App runtimes:
<?php
    $apps_list = array(
        'content' ,
        'categories',
        'perch_blog',
        'perch_events',
        'perch_forms',
    );
Scheduled tasks for perch_events: update_category_counts (60 mins)
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: ae5d0192b6778e39c8bee6b9ac48ef8e
L1: 8a19b1026ba6bae64dd63099835329c6
F1: 0243314cd872a1b8ddf8ff917af81c7e
headerColour: #f0a92f
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 0
lang: dede2
update_2.8.13: done
perch_events_update: 1.8
headerScheme: dark
update_runway_2.8.13: done
latest_version: 2.8.15
on_sale_version: 2.8.31
perch_blog_update: 5.0
perch_blog_post_url: /news/{postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 1
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_events_detail_url: /weiterbildung/{eventSlug}
update_runway_2.8.14: done
logoPath: /perch/resources/vkk-logo--dreifarbig.png
update_runway_2.8.29: done
update_runway_2.8.31: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /
PERCH_SCHEDULE_SECRET: iCZFASw5YnmWrOof
PERCH_DB_SERVER: db1211.mydbserver.com
PERCH_DB_DATABASE: usr_p128160_2
PERCH_DB_USERNAME: p128160
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: jannis@immerwiederdesign.de
PERCH_EMAIL_FROM_NAME: Jannis Borgers
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/www/p128160/html/typo3/perch
PERCH_CORE: /home/www/p128160/html/typo3/perch/core
PERCH_RESFILEPATH: /home/www/p128160/html/typo3/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_TZ: Europe/Berlin
PERCH_RUNWAY: 1
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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/www/p128160/html/typo3/perch/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_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.5.21-pl0
Zend: 2.5.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $
MySQL server: 5.5.28
Free disk space: 192,59 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, mssql, standard, mysqlnd, mysqli, odbc, mysql, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, pspell, Reflection, imap, shmop, SimpleXML, soap, sockets, exif, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, apache2handler, apcu, gnupg, imagick, mhash, apc, ionCube Loader, Zend OPcache
GD: Yes
ImageMagick: Yes
PHP max upload size: 50M
PHP max form post size: 50M
PHP memory limit: 2048M
Total max uploadable file size: 50M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
TMP: /home/www/p128160/tmp
TEMP: /home/www/p128160/tmp
TMPDIR: /home/www/p128160/tmp
MAGICK_TMPDIR: /home/www/p128160/tmp
MAGICK_TEMPORARY_PATH: /home/www/p128160/tmp
HTTP_HOST: vkk-ev.de
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER: https://vkk-ev.de/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4
HTTP_COOKIE: cmsa=1; PHPSESSID=qdo1lluc1pumfka9im24i91pc6
PATH: /bin:/sbin:/usr/bin:/usr/sbin
SERVER_SOFTWARE: Apache
SERVER_NAME: vkk-ev.de
SERVER_ADDR: 172.16.41.56
SERVER_PORT: 80
REMOTE_ADDR: 80.149.192.205
DOCUMENT_ROOT: /home/www/p128160/html/typo3/
SERVER_ADMIN: [no address given]
SCRIPT_FILENAME: /home/www/p128160/html/typo3/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 31460
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1469008467,241
REQUEST_TIME: 1469008467

PHP error log

(Note: The folder "typo3" is a remnant of an old Typo3 installation that has been removed, but the domain still points to that folder.)

[20-Jul-2016 13:58:55 Europe/Berlin] PHP Catchable fatal error:  Argument 2 passed to PerchFieldType::__construct() must be an instance of PerchXMLTag, instance of PerchRepeater given, called in /home/www/p128160/html/typo3/perch/core/lib/PerchFieldTypes.class.php on line 66 and defined in /home/www/p128160/html/typo3/perch/core/lib/PerchFieldType.class.php on line 71
[20-Jul-2016 13:58:58 Europe/Berlin] PHP Catchable fatal error:  Argument 2 passed to PerchFieldType::__construct() must be an instance of PerchXMLTag, instance of PerchRepeater given, called in /home/www/p128160/html/typo3/perch/core/lib/PerchFieldTypes.class.php on line 66 and defined in /home/www/p128160/html/typo3/perch/core/lib/PerchFieldType.class.php on line 71
Jannis Borgers

Jannis Borgers 0 points

  • 5 years ago

Hi Jannis,

You are running Events 1.9.2, according to the change log 1.9.3 included a change to fix repeaters in events.

I'd update your events app and see if that fixes it.

Wow, that’s embarrassing! Problem solved.

Thank you, Dexter!