Forum

Thread tagged as: Problem, Perch1

Problem on upgrade from 1.8.4 to current (2.8.8): pages don't have styling or im...

Hi all,

I admin a site for a church where I used to live. Great folks. The site had been running Perch 1.2 happily but with the EOL for Perch 1 and my schedule not permitting any real work on it until this weekend, I've upgraded today.

But there is an issue. The content appears, but there is no styling or images. Just text.

What I did: following the instructions for upgrading from Perch 1 to Perch 2, I first upgraded to Perch 1.8.4. That process worked well, with no errors. I verified the site was functional.

I followed the instructions for upgrading to Perch 2.8.8 and got no errors. The upgrade app copied over all the content and the site's structure is present (the architecture of the pages and their relationships, links, etc). There's just no styling or images. I tried republishing, but without effect.

Any clues appreciated!

--dan

My Perch diagnostics:
PERCH INFORMATION

Perch: 2.8.8
Production mode: Production (100)
Installed apps: content (2.8.8), assets (2.8.8), categories (2.8.8), perch_upgrade (1.6)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users, perch_contentItems, perch_settings, perch_users
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup
H1: b8ece11a973db33f58a87dfa3a3d308b
L1: f87d45d5b28c608de6323bbe5e75e96a
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.8: done
latest_version: 2.8.8
on_sale_version: 2.8.8
headerLinkColour: #000000
logoPath: /perch/resources/UUCNC_window.jpg
linkColour: #333333
editorMayDeleteRegions: 0
latestUpdate: 1.8.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: dbo295615203
PERCH_DB_SERVER: db2010.perfora.net
PERCH_DB_DATABASE: db295615203
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/New_York
PERCH_EMAIL_FROM: dan@danstocker.com
PERCH_EMAIL_FROM_NAME: Dan Stocker
PERCH_LOGINPATH: /perch
PERCH_PATH: /homepages/35/d156814736/htdocs/uucnc/perch
PERCH_CORE: /homepages/35/d156814736/htdocs/uucnc/perch/core
PERCH_RESFILEPATH: /homepages/35/d156814736/htdocs/uucnc/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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /homepages/35/d156814736/htdocs/uucnc/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:
Daniel Stocker

Daniel Stocker 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Are these images ones uploaded through Perch or just other assets? Perch doesn't manage your CSS unless you are using Feathers, which doesn't appear to be the case. So is the CS file actually there and at the location you expect?

Hi Rachel,

Thanks for the response. Yes to both. The only part of the site I've changed is the Perch folder. All site pages are at the same level as the Perch folder (i.e. the Perch folder itself lives among them). One such file is the CSS. That arrangement is untouched.

The images are just the copied resources from the earlier installations, per the upgrade instructions to copy the contents of Perch/resources and Perch/templates (which by the by, should be Perch/templates/content, lest one overwrite part of the 2.8.8 installation, it seems to me).

The impression is that there's just a config needed to get the engine to use the pages that are there.

Or perhaps some modification necessary to let it use the HTML in those files (to also include the CSS)?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

perch/templates is correct, and as explained we don't do anything with your CSS files. If the file is there, at the URL it should be, and not loading the most likely thing is it has the wrong permissions on your server.

What happens if you try and directly load the CSS file in your browser?

If you can show me a URL where this is happening I can take a look but this sounds like something other than a Perch issue from your description, so I'm not sure what else to suggest.

I agree that it seems too odd to be a systemic issue, but the site worked fine under 1.8.4 (after upgrade from 1.2) and following the upgrade instructions to 2 (in my case, 2.8.8) generated no errors. In point of fact, it's mostly there, just missing a few (key) elements. :)

The site in question is: UUCNC and you can find the CSS file at uucnc.css

Thanks again for your help!

Got an idea and checked the pages in the admin UI. All the page elements are "NEW" meaning (as I understand it) they aren't defined yet (i.e. don't have their prior value from the working site). Here's a screenshot.

How could that happen?

How can I fix it?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

PHP is terminating with an error. Is there anything in the error log?

Can I see your full DIagnostics Report?

Did the server pass the Compatibility Test for Perch 2?

I don't know where the error logs are for my package at 1&1. I'm looking into that. Where did you find that?

I've never heard of the Compatibility Test before. It wasn't in the upgrade instructions.

Here is my detailed Diagnostics Report:

Perch: 2.8.8
Production mode: Production (100)
Installed apps: content (2.8.8), assets (2.8.8), categories (2.8.8), perch_upgrade (1.6)
DB driver: PDO
DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users, perch_contentItems, perch_settings, perch_users
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup
H1: b8ece11a973db33f58a87dfa3a3d308b
L1: f87d45d5b28c608de6323bbe5e75e96a
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.8: done
latest_version: 2.8.8
on_sale_version: 2.8.8
headerLinkColour: #000000
logoPath: /perch/resources/UUCNC_window.jpg
linkColour: #333333
editorMayDeleteRegions: 0
latestUpdate: 1.8.4
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: dbo295615203
PERCH_DB_SERVER: db2010.perfora.net
PERCH_DB_DATABASE: db295615203
PERCH_DB_PREFIX: perch2_
PERCH_TZ: America/New_York
PERCH_EMAIL_FROM: dan@danstocker.com
PERCH_EMAIL_FROM_NAME: Dan Stocker
PERCH_LOGINPATH: /perch
PERCH_PATH: /homepages/35/d156814736/htdocs/uucnc/perch
PERCH_CORE: /homepages/35/d156814736/htdocs/uucnc/perch/core
PERCH_RESFILEPATH: /homepages/35/d156814736/htdocs/uucnc/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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /homepages/35/d156814736/htdocs/uucnc/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:
HOSTING SETTINGS

PHP: 5.5.26
Zend: 2.5.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $
MySQL server: 5.1.73-log
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, mbstring, mcrypt, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, imap, shmop, SimpleXML, soap, mysqli, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, mysql, cgi-fcgi
GD: Yes
ImageMagick: No
PHP max upload size: 40M
PHP max form post size: 8M
PHP memory limit: 120M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
REDIRECT_UNIQUE_ID: VZmkgQoucIcAAB5nBtcAAAA6
REDIRECT_SCRIPT_URL: /perch/core/settings/diagnostics/
REDIRECT_SCRIPT_URI: https://uucnc.org/perch/core/settings/diagnostics/
REDIRECT_DOCUMENT_ROOT: /kunden/homepages/35/d156814736/htdocs/uucnc
REDIRECT_UI_SUEXEC_FSTATD_UNIXSOCKET: /var/run/ui-fstatd.suexec.socket
REDIRECT_HANDLER: x-mapp-php5
REDIRECT_STATUS: 200
UNIQUE_ID: VZmkgQoucIcAAB5nBtcAAAA6
SCRIPT_URL: /perch/core/settings/diagnostics/
SCRIPT_URI: https://uucnc.org/perch/core/settings/diagnostics/
DBENTRY_HOST: uucnc.org
DBENTRY_VALUE: /kunden/homepages/35/d156814736/htdocs/uucnc:d0000#CPU 30 #MEM 61440 #CGI 786762 #NPROC 15 #TAID 39976815 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 6
DBENTRY_DOCROOT: /kunden/homepages/35/d156814736/htdocs/uucnc
DBENTRY_HASH: d0000
DBENTRY__CPU: 30
DBENTRY__MEM: 61440
DBENTRY__CGI: 786762
DBENTRY__NPROC: 15
DBENTRY__TAID: 39976815
DBENTRY__LANG: 3
DBENTRY__PARKING: 1
DBENTRY__STAT: 1
DBENTRY__CHROOT: 6
DBENTRY: /kunden/homepages/35/d156814736/htdocs/uucnc:d0000#CPU 30 #MEM 61440 #CGI 786762 #NPROC 15 #TAID 39976815 #LANG 3 #PARKING 1 #STAT 1 #CHROOT 6
HTTP_HOST: uucnc.org
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
HTTP_REFERER: https://uucnc.org/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: PHPSESSID=9bf24a00cca8729f7f2bcc14ee451d39; cmsa=1
PATH: /bin:/usr/bin
SERVER_SOFTWARE: Apache
SERVER_NAME: uucnc.org
SERVER_ADDR: 74.208.59.26
SERVER_PORT: 80
REMOTE_ADDR: 71.231.200.188
DOCUMENT_ROOT: /kunden/homepages/35/d156814736/htdocs/uucnc
SERVER_ADMIN: webmaster@uucnc.org
SCRIPT_FILENAME: /kunden/homepages/35/d156814736/htdocs/uucnc/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 33058
REDIRECT_QUERY_STRING: extended
REDIRECT_URL: /perch/core/settings/diagnostics/index.php
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
STATUS: 200
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_PATH_TRANSLATED: /kunden/homepages/35/d156814736/htdocs/uucnc/perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1436132481.3625
REQUEST_TIME: 1436132481
argc: 1

Found the Compatibility Checker and ran it. It reported "PASS: You're all set!"

I have the access logs for my shared hosting package, but not (specifically) error logs. I'll see 200s and 404s in there, but no details. If you let me know where you saw the errors, I'll try digging around that.

In the meantime, the wholesale reset of page elements seems to be the big issue.

I appreciate you having a look see on a Sunday! When you get back, please let me know how I can help troubleshoot or fix.

Thank you! --dan

Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you View Source you can see that parts of your page are missing. PHP is erroring on those pages so you need to find your PHP error log, that will be a different file to your access log, you may need to raise a ticket with your host.

I can't do anything more until I can see what PHP error is being thrown.

I'll engage their support, but those parts are "legitimately" blank, because they are "NEW". In other words, the system seems to be doing what it's supposed to, but the system is not configured right.

In the screenshot 5 posts back, all the page elements that are "NEW" had values in the pre-upgrade site.

The question is: how did they all get reset to "NEW" from years-long established values in the pre-upgrade site?

Drew McLellan

Drew McLellan 2638 points
Perch Support

I think that's just a quirk of the upgrade process - if you click through and pick the template the regions should have their content and not be new at all.

Hi Drew,

That's amazing. On a couple levels. Why would these (shared) elements lose their identity? I've managed to recover most of them (since I tend to use Code Block ..) but several are not at all obvious, and some are blank after trying one type and shifting to another.

How should I recover that (absolutely vital) meta data? Digging in the DB backup has given me some clues, but the encoding makes recovery difficult and tedious.

Look, I have respect for what you've built here. I gave you my money after all. But a little warning, amidst all the other useful instructions for upgrading, would have saved me some real trouble. Something along the lines of "Note what template is used for all shared page elements, you'll need to reset them."

If I had a big site, this would be a full-on nightmare.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You shouldn't need to reset them, it's not designed to work that way. This is a situation I've seen in less than 1% of all upgrades, but I have seen it happen. As most Perch 1 sites were very small at it happened vanishingly rarely, it was never an issue we were able to troubleshoot.

Your database should still have all your old Perch 1 tables. If you need a list of the templates, that's easy to come by:

SELECT contentPage, contentKey, contentTemplate
FROM perch_contentItems
ORDER BY contentPage ASC, contentKey ASC

HI Drew,

Thanks for your and Rachel's help. We're back in business. I appreciate your explanation that the quirk was a very rare event. Luckily it was just the common elements shared by all pages that were "lost". It was some work to restore, but nothing onerous. I definitely learned more about your great product in the meantime.

Your support was outstanding and I'm even happier a customer than before (and that's saying something!)

Cheers! --dan

Drew McLellan

Drew McLellan 2638 points
Perch Support

Thanks Dan!