Forum
Error creating a new page
Hi when creating a new page and using a master template and adidng it goes to this page with a 500 error: https://nsfg.website/perch/core/apps/content/page/edit/?id=10&created=true
Any ideas why this may be?
I notice going back and viewing pages the page is actually created though...
Cheers
With any support request we need to see your Diagnostic Report and relevant code, so in this case the Master Page code. You should have been asked for this on the form where you created this thread.
Also, if you are getting a "500 error" then we need to know what the actual error in your error log is, a 500 error is an error notification.
get the 500 error on this page too https://nsfg.website/perch/core/apps/content/page/edit/?id=9
diagmnostics: Perch: 2.8.25 Production mode: Production (100) Installed apps: content (2.8.25), assets (2.8.25), categories (2.8.25), perch_events (1.9.2) DB driver: PDO DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (290), perch2_content_items (53), perch2_content_regions (100), perch2_events (5), perch2_events_categories (2), perch2_events_to_categories (5), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (4), perch2_pages (15), perch2_resource_log (42), perch2_resource_tags (0), perch2_resources (17), perch2_resources_to_tags (0), perch2_settings (18), perch2_user_passwords (0), perch2_user_privileges (28), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (3) Users: 3 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_events', ); Scheduled tasks for perch_events: update_category_counts (60 mins) Editor plug-ins: markitup, ckeditor H1: 833a77379621e3411b6cdeeda38bb6e5 L1: 6aaa042c635b75bacb02262eaef934d6 F1: dc1fef2ad0fcd9f943c02ebb43d85dbc headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 0 content_collapseList: 1 lang: en-gb update_2.8.25: done latest_version: 2.8.15 on_sale_version: 2.8.27 perch_events_update: 1.8 headerScheme: light perch_events_detail_url: /events/event.php?s={eventSlug} dashboard: 0 hide_pwd_reset: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 logoPath: /perch/resources/NFSG_Perch_Logo.png PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: cl59-nsfg PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: cl59-nsfg PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: langleyp@hotmail.com PERCH_EMAIL_FROM_NAME: paul langley PERCH_LOGINPATH: /perch PERCH_PATH: /home/sites/nsfg.website/public_html/perch PERCH_CORE: /home/sites/nsfg.website/public_html/perch/core PERCH_RESFILEPATH: /home/sites/nsfg.website/public_html/perch/resources PERCH_RESPATH: /perch/resources 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_RUNWAY_ROUTED: PERCH_STRONG_PASSWORDS: PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /home/sites/nsfg.website/public_html/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_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_SESSION_TIMEOUT_MINS: 20 HOSTING SETTINGS
PHP: 5.3.28 Zend: 2.3.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $ MySQL server: 5.5.47 Free disk space: 17.13 TB Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, session, standard, mysqlnd, pcntl, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, mysql, shmop, SimpleXML, sockets, exif, tokenizer, xml, cgi-fcgi, bcmath, curl, dom, fileinfo, gd, imap, intl, json, ldap, mbstring, mcrypt, mssql, OAuth, odbc, pdo_dblib, PDO_ODBC, pdo_pgsql, pgsql, posix, soap, SQLite, sysvmsg, sysvsem, sysvshm, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend Guard Loader GD: Yes ImageMagick: No PHP max upload size: 64M PHP max form post size: 64M PHP memory limit: 128M Total max uploadable file size: 64M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No PATH: /usr/local/bin:/usr/bin:/bin UNIQUE_ID: VvPydH8AAAEAAj-tsuwAAAAP SCRIPT_URL: /perch/core/settings/diagnostics/ SCRIPT_URI: https://nsfg.website/perch/core/settings/diagnostics/ HTTP_HOST: nsfg.website HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36 HTTP_REFERER: https://nsfg.website/perch/core/settings/diagnostics/ HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_COOKIE: cmsa=1; PHPSESSID=g2ts5t5gacjo38rca8a451vfn5 HTTP_CONNECTION: close SERVER_SIGNATURE: <address>Apache/2.4.18 (Unix) Server at nsfg.website Port 80</address> SERVER_SOFTWARE: Apache/2.4.18 (Unix) SERVER_NAME: nsfg.website SERVER_ADDR: 10.0.230.46 SERVER_PORT: 80 REMOTE_ADDR: 194.102.14.123 DOCUMENT_ROOT: /home/sites/nsfg.website/public_html REQUEST_SCHEME: http CONTEXT_DOCUMENT_ROOT: /home/sites/nsfg.website/public_html SERVER_ADMIN: root@localhost SCRIPT_FILENAME: /home/sites/nsfg.website/public_html/perch/core/settings/diagnostics/index.php REMOTE_PORT: 47902 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: 1458827892
What error are you getting logged for that HTTP 500?
Im not sure - i'll need to contact hosts probably as is a shared environment
Ta
Parse error: syntax error, unexpected '[', expecting ')' in /home/sites/nsfg.website/public_html/perch/core/apps/content/modes/page.edit.pre.php on line 57
I think you just need to be running the current version. It has some fixes for your old version of PHP.
https://grabaperch.com/update
i updated perch to currennt version but still the 500 error...
Perch: 2.8.27 Production mode: Production (100) Installed apps: content (2.8.27), assets (2.8.27), categories (2.8.27), perch_events (1.9.2) DB driver: PDO DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (308), perch2_content_items (60), perch2_content_regions (121), perch2_events (5), perch2_events_categories (2), perch2_events_to_categories (5), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (4), perch2_pages (18), perch2_resource_log (50), perch2_resource_tags (0), perch2_resources (17), perch2_resources_to_tags (0), perch2_settings (19), perch2_user_passwords (0), perch2_user_privileges (29), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (3) Users: 3 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_events', ); Scheduled tasks for perch_events: update_category_counts (60 mins) Editor plug-ins: markitup, ckeditor H1: 833a77379621e3411b6cdeeda38bb6e5 L1: 6aaa042c635b75bacb02262eaef934d6 F1: 2edba60ed1f613d6dd804feb202456a2 headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 0 content_collapseList: 1 lang: en-gb update_2.8.25: done latest_version: 2.8.15 on_sale_version: 2.8.27 perch_events_update: 1.8 headerScheme: light perch_events_detail_url: /events/event.php?s={eventSlug} dashboard: 0 hide_pwd_reset: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 logoPath: /perch/resources/NFSG_Perch_Logo.png update_2.8.27: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: cl59-nsfg PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: cl59-nsfg PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: langleyp@hotmail.com PERCH_EMAIL_FROM_NAME: paul langley PERCH_LOGINPATH: /perch PERCH_PATH: /home/sites/nsfg.website/public_html/perch PERCH_CORE: /home/sites/nsfg.website/public_html/perch/core PERCH_RESFILEPATH: /home/sites/nsfg.website/public_html/perch/resources PERCH_RESPATH: /perch/resources 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_RUNWAY_ROUTED: PERCH_STRONG_PASSWORDS: PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /home/sites/nsfg.website/public_html/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.3.28 Zend: 2.3.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $ MySQL server: 5.5.47 Free disk space: 16.91 TB Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, session, standard, mysqlnd, pcntl, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, mysql, shmop, SimpleXML, sockets, exif, tokenizer, xml, cgi-fcgi, bcmath, curl, dom, fileinfo, gd, imap, intl, json, ldap, mbstring, mcrypt, mssql, OAuth, odbc, pdo_dblib, PDO_ODBC, pdo_pgsql, pgsql, posix, soap, SQLite, sysvmsg, sysvsem, sysvshm, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend Guard Loader GD: Yes ImageMagick: No PHP max upload size: 64M PHP max form post size: 64M PHP memory limit: 128M Total max uploadable file size: 64M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No PATH: /usr/local/bin:/usr/bin:/bin UNIQUE_ID: Vvv3g38AAAEAAaHanPkAAAAM SCRIPT_URL: /perch/core/settings/diagnostics/ SCRIPT_URI: https://nsfg.website/perch/core/settings/diagnostics/ HTTP_HOST: nsfg.website HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36 HTTP_REFERER: https://nsfg.website/perch/core/settings/diagnostics/ HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_COOKIE: cmsa=1; PHPSESSID=hfhoitf1iglkpcgnpnv24mr4r6 HTTP_CONNECTION: close SERVER_SIGNATURE: <address>Apache/2.4.18 (Unix) Server at nsfg.website Port 80</address> SERVER_SOFTWARE: Apache/2.4.18 (Unix) SERVER_NAME: nsfg.website SERVER_ADDR: 10.0.230.46 SERVER_PORT: 80 REMOTE_ADDR: 194.102.14.119 DOCUMENT_ROOT: /home/sites/nsfg.website/public_html REQUEST_SCHEME: http CONTEXT_DOCUMENT_ROOT: /home/sites/nsfg.website/public_html SERVER_ADMIN: root@localhost SCRIPT_FILENAME: /home/sites/nsfg.website/public_html/perch/core/settings/diagnostics/index.php REMOTE_PORT: 53314 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: 1459353475
What error are you getting?