Forum

Thread tagged as: Problem

confusion moving Perch site from draft to live

Moved a site from a draft on one server to its 'live' home on another host - no region content shows on the live site pages, although layout details are there such as headers and footers

In perch admin area all the pages and their editable regions are duplicated. The content (pages and their regions) from the draft site is there in the admin view. The regions on the duplicated pages are all showing as 'new'.

Any ideas on how this has occurred and how to rectify... other than copying everything from old but no show draft pages to new?

many thanks

Charlie Elsey

Charlie Elsey 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Did you change the page paths in the process of moving the site?

no I did not... the root relative paths are the same I believe... on the draft site, although buried several directories deep on server, the site was all in a directory called 'web' and on live site everything is in a directory called 'web'

is there something in config I need to fix?

Drew McLellan

Drew McLellan 2638 points
Perch Support

So your homepage is /index.php on both sites?

yes it is

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics report?

sorry Drew been away from office

duplicated pages have new page id if that helps

Perch: 2.8.34
Production mode: Production (100)
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_blog (5.0), perch_gallery (2.8.6), perch_members (1.5), perch_backup (1.2)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (9138), perch2_content_items (615), perch2_content_regions (52), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (0), perch2_pages (29), perch2_resource_log (1645), perch2_resource_tags (0), perch2_resources (250), perch2_resources_to_tags (0), perch2_settings (27), perch2_user_passwords (0), perch2_user_privileges (27), perch2_user_role_privileges (20), perch2_user_roles (2), perch2_users (2)
Users: 2
PHPMailer: 5.2.21
App runtimes: <?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'perch_backup',
        'perch_gallery',
        'perch_members',
    );

Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup, redactor
H1: 4bc6ade8d8596fd50696dd24c2ae73e4
L1: 9384d58091ef703fc75cbf7aac45141b
F1: 6a33f95eca3667f9e0c39bf5ca2980fe 
headerColour: #004ab6
content_singlePageEdit: 1
helpURL: 
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.34: done
latest_version: 2.8.15
on_sale_version: 
headerScheme: dark
dashboard: 1
perch_backup_mysqldump_path: 
perch_blog_site_name: blahdeblah Racing
perch_blog_post_url: /blog/post.php?s={postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key: 
perch_blog_max_spam_days: 1
perch_gallery_bucket_mode: dynamic
perch_gallery_bucket: default
perch_members_login_page: /members/login.php?r={returnURL}
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_gallery_basicUpload: 0
logoPath: /editbsr/resources/silks-smart2x100-1.png
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: bryansmartra
PERCH_DB_SERVER: mysql10.namesco.net
PERCH_DB_DATABASE: SMP17017_bryansmartra
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: charlie.elsey@blahdeblah.com
PERCH_EMAIL_FROM_NAME: Charlie Elsey
PERCH_LOGINPATH: /editbsr
PERCH_PATH: /var/www/web/editbsr
PERCH_CORE: /var/www/web/editbsr/core
PERCH_RESFILEPATH: /var/www/web/editbsr/resources
PERCH_RESPATH: /editbsr/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: /var/www/web/editbsr/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: 7.0.22
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.5.53-log
Free disk space: 4.45 TB 
Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, standard, mysqlnd, odbc, pcntl, mysqli, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, recode, Reflection, imap, shmop, SimpleXML, snmp, soap, sockets, exif, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, ionCube Loader
GD: Yes 
ImageMagick: No
PHP max upload size: 128M
PHP max form post size: 128M
PHP memory limit: 128M
Total max uploadable file size: 128M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PATH: /sbin:/usr/sbin:/bin:/usr/bin
DOCUMENT_ROOT: /var/www/web
ORIG_SCRIPT_NAME: /.platform.cgi-bin/php70-cgi
ORIG_PATH_TRANSLATED: /var/www/web/editbsr/core/settings/diagnostics/index.php
ORIG_PATH_INFO: /editbsr/core/settings/diagnostics/index.php
ORIG_SCRIPT_FILENAME: /usr/share/web/cgi-bin/php70-cgi
HTTP_CONNECTION: close
SCRIPT_NAME: /editbsr/core/settings/diagnostics/index.php
REQUEST_URI: /editbsr/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
REDIRECT_QUERY_STRING: extended
REDIRECT_URL: /editbsr/core/settings/diagnostics/index.php
REMOTE_PORT: 27670
SCRIPT_FILENAME: /var/www/web/editbsr/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@this.domain
CONTEXT_DOCUMENT_ROOT: /usr/share/web/cgi-bin
CONTEXT_PREFIX: /.platform.cgi-bin
REQUEST_SCHEME: http
REMOTE_ADDR: 217.39.207.1
SERVER_PORT: 80
SERVER_ADDR: 192.168.96.20
SERVER_NAME: www.blahdeblah-racing.com
SERVER_SOFTWARE: Apache
HTTP_COOKIE: cmsa=1; PHPSESSID=ddcaodo0l1bl1serhp1an82sp2;
HTTP_HOST: www.blahdeblah-racing.com
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
HTTP_ACCEPT_LANGUAGE: en-GB
HTTP_REFERER: https://www.blahdeblah-racing.com/editbsr/core/settings/diagnostics/
HTTP_ACCEPT: text/html, application/xhtml+xml, image/jxr, */*
rate_limit: 12500
REMOTE_HOST: 217.39.207.1
REDIRECT_STATUS: 200
REDIRECT_HANDLER: php70-script
REDIRECT_rate_limit: 12500
REDIRECT_REMOTE_HOST: 217.39.207.1
FCGI_ROLE: RESPONDER
PHP_SELF: /editbsr/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1503411462.5863
REQUEST_TIME: 1503411462
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, that looks fine. I'm not sure how to help, as I don't really understand what you're seeing.

here's a screenshot... as an example the original page bryansmart has id=15, the duplicate with 'new' regions has id=41

why in some cases do pages show up under 'web'

screenshot

Drew McLellan

Drew McLellan 2638 points
Perch Support

What happens if you delete the pages you don't want?

Drew McLellan said:

What happens if you delete the pages you don't want?

if I delete the pages with 'new' regions I get an error 404 page not found on the live site

looks like I will have to copy content over from original 'old' pages to the 'new'... unless there si something I can do by editing the database directly?

Drew McLellan

Drew McLellan 2638 points
Perch Support

How did you migrate this site? I would just start the migration again with a clean dump from the working copy.

I moved the site following your 'how to move a site' directions, exporting sql and then importing to new database. There were some issues with that (import trying to create tables within tables) but eventually got it to work, but with the problems I have above.

I will just copy content from old to new

Drew McLellan

Drew McLellan 2638 points
Perch Support

There were some issues with that (import trying to create tables within tables)

Whatever that describes is your issue.