Forum

Thread tagged as: Problem, Error, Configuration

Getting Blank page when adding new pages

When trying to add new pages, I'm getting a blank screen. The first error I see while entering the details for the new page is:

[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (urlify.php, line 0)

After typing the page name in manually and hitting submit I get:

[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (add, line 0)

Diagnostics are as follows:

Perch information

Perch: 3.0.11
Production mode: Production (100)
Installed apps: content (3.0.11), assets (3.0.11), categories (3.0.11), perch_forms (1.9)
DB driver: PDO
DB tables: perch3_categories (9), perch3_category_counts (0), perch3_category_sets (1), perch3_content_index (6241), perch3_content_items (590), perch3_content_regions (197), perch3_forms (0), perch3_forms_responses (0), perch3_menu_items (9), perch3_navigation (0), perch3_navigation_pages (2), perch3_page_templates (10), perch3_pages (51), perch3_resource_log (3084), perch3_resource_tags (0), perch3_resources (913), perch3_resources_to_tags (0), perch3_settings (21), perch3_user_passwords (0), perch3_user_privileges (31), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = [ 
    ];
Editor plug-ins: ckeditor
H1: 3d12ad81eca59cb9882fae275f9b04ca
L1: 92fcc2dc3a57d92346ff66947f4efd71
F1: 3b606135b33e6a102526838f4152a807
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
installedAt: 3.0.8
update_3.0.8: done
latest_version:
on_sale_version:
headerScheme: light
dashboard: 0
hide_pwd_reset: 0
keyboardShortcuts: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
content_skip_region_list: 0
logoPath: /siteadmin/resources/kingsford-logo-cmyk-1.png
update_3.0.1: done
update_3.0.11: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: sfc839n_kingsfor
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: sfc839n_kpreview
PERCH_DB_PREFIX: perch3_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: tony@kingsfordcreative.co.uk
PERCH_EMAIL_FROM_NAME: Tony Astley
PERCH_LOGINPATH: /siteadmin
PERCH_PATH: /home/sfc839n/public_html/preview/siteadmin
PERCH_CORE: /home/sfc839n/public_html/preview/siteadmin/core
PERCH_RESFILEPATH: /home/sfc839n/public_html/preview/siteadmin/resources
PERCH_RESPATH: /siteadmin/resources
PERCH_HTML5: 1
PERCH_SCHEDULE_SECRET: parsnip
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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/sfc839n/public_html/preview/siteadmin/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
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.0.26
Zend: 3.0.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
MySQL server: 5.6.38
Free disk space: 346.71 GB
Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, cgi-fcgi, bcmath, calendar, ctype, curl, dom, ftp, gd, imap, json, mcrypt, mysqlnd, PDO, Phar, posix, SimpleXML, sockets, sqlite3, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_sqlite, wddx, xmlreader
GD: Yes
ImageMagick: No
PHP max upload size: 10M
PHP max form post size: 10M
PHP memory limit: 128M
Total max uploadable file size: 10M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
TZ: Europe/London
REDIRECT_UNIQUE_ID: WipzL7nYksVOS5@AWtHN@AAAABA
REDIRECT_SCRIPT_URL: /siteadmin/core/settings/diagnostics/
REDIRECT_SCRIPT_URI: https://preview.ballandyoung.com/siteadmin/core/settings/diagnostics/
REDIRECT_HANDLER: application/x-httpd-ea-php70
REDIRECT_STATUS: 200
UNIQUE_ID: WipzL7nYksVOS5@AWtHN@AAAABA
SCRIPT_URL: /siteadmin/core/settings/diagnostics/
SCRIPT_URI: https://preview.ballandyoung.com/siteadmin/core/settings/diagnostics/
HTTP_HOST: preview.ballandyoung.com
HTTP_COOKIE: PHPSESSID=2d16ks18icsfln27fr03jl1bf4; cmsa=1; cpsession=%3aYr82EHQhsusdRNod%2c52c0e33e5ac18b04dc63e6687fdfd56f; timezone=Europe/London; __utma=115241364.2022388101.1512726166.1512726166.1512726166.1; __utmc=115241364; __utmz=115241364.1512726166.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5
HTTP_REFERER: https://preview.ballandyoung.com/siteadmin/core/settings/diagnostics/
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_ACCEPT_ENCODING: gzip, deflate
PATH: /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
SERVER_SOFTWARE: Apache
SERVER_NAME: preview.ballandyoung.com
SERVER_ADDR: 109.75.172.13
SERVER_PORT: 80
REMOTE_ADDR: 86.138.185.26
DOCUMENT_ROOT: /home/sfc839n/public_html/preview
REQUEST_SCHEME: http
CONTEXT_PREFIX: /cgi-sys
CONTEXT_DOCUMENT_ROOT: /usr/local/cpanel/cgi-sys/
SERVER_ADMIN: webmaster@preview.ballandyoung.com
SCRIPT_FILENAME: /home/sfc839n/public_html/preview/siteadmin/core/settings/diagnostics/index.php
REMOTE_PORT: 55933
REDIRECT_URL: /siteadmin/core/settings/diagnostics/index.php
REDIRECT_QUERY_STRING: extended
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /siteadmin/core/settings/diagnostics/?extended
SCRIPT_NAME: /siteadmin/core/settings/diagnostics/index.php
ORIG_SCRIPT_FILENAME: /usr/local/cpanel/cgi-sys/ea-php70
ORIG_PATH_INFO: /siteadmin/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /home/sfc839n/public_html/preview/siteadmin/core/settings/diagnostics/index.php
ORIG_SCRIPT_NAME: /cgi-sys/ea-php70
PHP_SELF: /siteadmin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1512731439.996
REQUEST_TIME: 1512731439
argc: 1
Tony Astley

Tony Astley 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Does your error log have any more detailed errors?

Not sure what I'm looking for? There are 100's of lines of logs.

Any pointers? Would it be a GET log?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you see any PHP errors?

Hello Drew,

I've managed to get display_errors activated for a while and got the following error:

Fatal error: Uncaught Error: Call to undefined function iconv() in /home/sfc839n/public_html/siteadmin/core/lib/PerchUtil.class.php:796 Stack trace: #0 /home/sfc839n/public_html/siteadmin/core/apps/content/PerchContent_Pages.class.php(475): PerchUtil::urlify('newpage3') #1 /home/sfc839n/public_html/siteadmin/core/apps/content/modes/page.add.pre.php(64): PerchContent_Pages->create_with_file(Array) #2 /home/sfc839n/public_html/siteadmin/core/apps/content/page/add/index.php(23): include('/home/sfc839n/p...') #3 {main} thrown in /home/sfc839n/public_html/siteadmin/core/lib/PerchUtil.class.php on line 796

Any use?

This error now also appears in the file name field:

<br /><b>Fatal error</b>:  Uncaught Error: Call to undefined function iconv() in /home/sfc839n/public_html/siteadmin/core/lib/PerchUtil.class.php:796Stack trace:#0 /home/sfc839n/public_html/siteadmin/core/async/urlify.php(5): PerchUtil::urlify('Tester')#1 {main}  thrown in <b>/home/sfc839n/public_html/siteadmin/core/lib/PerchUtil.class.php</b> on line <b>796</b><br />

More digging would suggest the iconv module is not installed, however the php info dump would suggest it is?

'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-php70/root/usr' '--exec-prefix=/opt/cpanel/ea-php70/root/usr' '--bindir=/opt/cpanel/ea-php70/root/usr/bin' '--sbindir=/opt/cpanel/ea-php70/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php70/root/etc' '--datadir=/opt/cpanel/ea-php70/root/usr/share' '--includedir=/opt/cpanel/ea-php70/root/usr/include' '--libdir=/opt/cpanel/ea-php70/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php70/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php70/root/usr/var' '--sharedstatedir=/opt/cpanel/ea-php70/root/usr/com' '--mandir=/opt/cpanel/ea-php70/root/usr/share/man' '--infodir=/opt/cpanel/ea-php70/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php70/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php70/root/etc/php.d' '--disable-debug' '--with-pic' '--without-pear' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl=/opt/cpanel/ea-openssl' '--with-openssl-dir=/opt/cpanel/ea-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-libxml-dir=/usr' '--with-system-tzdata' '--with-mhash' '--libdir=/opt/cpanel/ea-php70/root/usr/lib64/php' '--enable-pcntl' '--enable-opcache' '--disable-opcache-file' '--enable-phpdbg' '--with-imap=shared,/opt/cpanel/ea-php70/root/usr' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-webp-dir=/usr' '--with-gd=shared' '--with-gmp=shared' '--enable-calendar=shared' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-ctype=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-tcadb=/usr' '--enable-exif=shared' '--enable-ftp=shared' '--with-gettext=shared' '--with-iconv=shared' '--enable-sockets=shared' '--enable-tokenizer=shared' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-dom=shared' '--with-pgsql=shared' '--enable-simplexml=shared' '--enable-xml=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/opt/cpanel/libcurl' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/opt/cpanel/libmcrypt' '--with-tidy=shared,/opt/cpanel/libtidy' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-shmop=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr' '--enable-fileinfo=shared' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -Wno-pointer-sign' 'CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic'

Would having '--with-iconv=shared' cause any issues?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

As the error says, you don't have iconv installed. It should be there by default in PHP so you need to speak to your host.

Hello Rachel,

I've just this second updated the thread. The PHP info shows both '--with-iconv' and '--with-iconv=shared'.

Am I right in thinking this suggests it is?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

That would be a question for your host as PHP believes it is not, as that is why you are getting the error.

Thanks Rachel, I've asked the client to raise a support ticket with their host (they haven't given us direct access).

Just to wrap this up the web host has installed iconv and adding new pages is now working.

Thanks for your help.