Forum

Thread tagged as: Problem, Hosting, Forms

Can't Delete Regions (or Pages)

Hey there,

I'm having an issue with Perch where I cannot delete pages, or the regions on the pages.

Here's a quick summary of some issues that I'm running into. 1) When creating pages, they don't show up in Perch under (All), but they do show up in "By Region type". 2) I cannot delete regions from pages. 3) I cannot delete pages (probably because of #2) 4) Edits to fields are not working, or taking a long time to show up on the live site. (example: changing a url) 5) Content that I add for new pages isn't showing up on the site for hours, even though it shows up in Perch. (Hosting problem?)

I've removed any caching from my .htaccess file on my hosting platform, but it hasn't made any difference.

Here's my diagnostics report:

Perch LTM: 3.1.1
Production mode: Production (100)
Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_forms (1.9.1)
DB driver: PDO
DB tables: perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_content_index (5504), perch3_content_items (240), perch3_content_regions (59), perch3_forms (1), perch3_forms_responses (11), perch3_menu_items (9), perch3_navigation (1), perch3_navigation_pages (10), perch3_page_templates (3), perch3_pages (7), perch3_resource_log (3125), perch3_resource_tags (0), perch3_resources (683), perch3_resources_to_tags (0), perch3_settings (13), perch3_user_passwords (0), perch3_user_privileges (32), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = [
        'perch_forms' 
    ];
Editor plug-ins:
H1: 2ff25f2376c4d17f3070a4cfb2bf53f2
L1: 5534db62e280db5c80fac7a4dd08724f
F1: 3b606135b33e6a102526838f4152a807
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
installedAt: 3.0.8
update_3.0.8: done
latest_version:
on_sale_version: 3.1.1
update_3.0.10: done
update_3.1.1: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: db220052
PERCH_DB_SERVER: internal-db.s220052.gridserver.com
PERCH_DB_DATABASE: db220052_personalWebsite
PERCH_DB_PREFIX: perch3_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: captaindagoinc@gmail.com
PERCH_EMAIL_FROM_NAME: Justin Castaneda
PERCH_LOGINPATH: /perch
PERCH_PATH: /nfs/c12/h08/mnt/220052/domains/justincastaneda.com/html/perch
PERCH_CORE: /nfs/c12/h08/mnt/220052/domains/justincastaneda.com/html/perch/core
PERCH_RESFILEPATH: /nfs/c12/h08/mnt/220052/domains/justincastaneda.com/html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_RWD: 1
PERCH_DEBUG: 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: 8255e4c4a367cfa3e2bd
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /nfs/c12/h08/mnt/220052/domains/justincastaneda.com/html/perch/templates
PERCH_TEMPLATE_FILTERS:
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: 5.6.21
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.59
MySQL server: 5.6.33-79.0
Free disk space: 15.17 TB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, mhash, Zend OPcache
GD: Yes
ImageMagick: No
PHP max upload size: 99M
PHP max form post size: 99M
PHP memory limit: 99M
Total max uploadable file size: 99M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PHPRC: /home/220052/users/.home/../../etc
PWD: /etc/apache2/gs-bin
HTTP_CONNECTION: close
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: 20485
SCRIPT_FILENAME: /home/220052/domains/justincastaneda.com/html/perch/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@justincastaneda.com
DOCUMENT_ROOT: /home/220052/domains/justincastaneda.com/html
REMOTE_ADDR: 192.88.134.6
SERVER_PORT: 80
SERVER_ADDR: 216.70.123.61
SERVER_NAME: justincastaneda.com
SERVER_SOFTWARE: Apache/2.2.34
SERVER_SIGNATURE: <address>Apache/2.2.34 Server at justincastaneda.com Port 80</address>
PATH: /usr/local/bin:/usr/bin:/bin
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_REFERER: https://justincastaneda.com/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_COOKIE: _ga=GA1.2.27213534.1514845126; _gid=GA1.2.623508528.1532839659; PHPSESSID=4cbcfb1ed81cdbcabdba45fdbef8fd39; cmsa=1; visid_incap_1448702=O9YPvmvrSwObh5I5RWYuFyWGE1oAAAAAQUIPAAAAAACTqh9xxlRD9fZLxErpBMSP
HTTP_X_SUCURI_COUNTRY: US
HTTP_X_SUCURI_CLIENTIP: 72.208.225.94
HTTP_X_REAL_IP: 72.208.225.94
HTTP_X_FORWARDED_PROTO: http
HTTP_X_FORWARDED_FOR: 72.208.225.94
HTTP_HOST: justincastaneda.com
HTTP_PHPCONF: 652183770
SITE_HTMLROOT: /home/220052/domains/justincastaneda.com/html
SITE_CGIROOT: /home/220052/cgi-bin
SITE_ROOT: /home/220052
DATABASE_SERVER: internal-db.s220052.gridserver.com
ACCESS_DOMAIN: s220052.gridserver.com
WM_UCONTROL_XMLRPC_SERVER: https://10.0.0.13
proxy_nokeepalive: 1
force_proxy_request_1_0: 1
SCRIPT_URI: https://justincastaneda.com/perch/core/settings/diagnostics/
SCRIPT_URL: /perch/core/settings/diagnostics/
UNIQUE_ID: W14owdhGexcAAHNfQq0AAABv
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1532897473.2754
REQUEST_TIME: 1532897473
argc: 1

I used Docker and localhost to develop my Master Page and templates, but when pushing these templates and master pages to the live site, I'm running into issues where the content won't show up. If I made changes to a Master Page template and removed regions, and pushed them to my site, would that cause a problem with deleting said regions?

Justin Castaneda

Justin Castaneda 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Probably the first thing to do is check your license key is correct - you appear to be running in local test mode on a live site, which suggests the software may be have modified.

I may have updated Perch incorrectly in that case. In order to update, I downloaded the update from my account, replaced the core file, and then did an SFTP push up to my hosting site.

When I went to log in the hosting site, I got an error that said my security was incorrect and this site wasn't authorized.

I went through the /perch/setup again with my server credentials and my license key, and things appeared to be working correctly. However, I'm still having problems deleting regions/pages and assets, and the delay between page updates is almost too much.

Could this be related to the local test mode that you referenced?

Thanks for your help!

Update: I found the define('PERCH_LICENSE_KEY', x-LOCAL ); and entered the correct license key. I may have pushed this incorrect config.php to the server. We'll see if that helps. I also have a support ticket out with Media Temple to see if it's anything on their end.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Perch doesn't have any sort of delay built in - with the exception of a few parts of Blog and Events archiving stats counts which have a 10 min delay in Production mode but none in Development mode.

If you're seeing a delay when editing content then that points to a hosting issue.

Thanks for the help on this one Drew. I was able to reach out to Media Temple and found some hosting issues on their end. I also figured out how to add my IP address as a "Developer" in order to bypass their cache.