Forum
upgrading perch - ERRRR
Hi
I have a problem upgrading perch from 2.4.9 to 2.8.11
I get this error followed by many similar:
Warning: include(__DIR__/../inc/pre_config.php) [function.include]: failed to open stream: No such file or directory in /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/core/runtime/runtime.php on line 13
I added this to runtime.php to try and eradicate this error:
if( !defined( __DIR__ ) ) define( __DIR__, dirname(__FILE__) );
but then i get these errors/warnings:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/core/lib/PerchUtil.class.php on line 379
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/core/lib/PerchUtil.class.php on line 379
Parse error: syntax error, unexpected T_STRING in /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/core/lib/PerchUtil.class.php on line 379
Whats going wrong here?
diagnostics:
Perch is out of date. You are running Perch 2.4.9 and the latest is 2.8.11. Update instructions
PHP 5.5.28 is up to date
MySQL 5.5.32-31.0-log is up to date
Image processing available
PERCH INFORMATION
Perch: 2.4.9
Production mode: Production (100)
Installed apps: content (2.4.9), perch_forms (1.5), perch_gallery (2.8), perch_case_studies (3.5), perch_members (1.0.2), perch_blog (3.7.5), perch_ex_display (3.6.3), perch_backup (1.2), perch_twitter (3.1)
DB driver: PDO
DB tables: perch2_Case_Studies_authors, perch2_Case_Studies_categories, perch2_Case_Studies_comments, perch2_Case_Studies_posts, perch2_Case_Studies_posts_to_categories, perch2_Case_Studies_posts_to_tags, perch2_Case_Studies_tags, perch2_blog_authors, perch2_blog_categories, perch2_blog_comments, perch2_blog_posts, perch2_blog_posts_to_categories, perch2_blog_posts_to_tags, perch2_blog_tags, perch2_case_studies_authors, perch2_case_studies_categories, perch2_case_studies_comments, perch2_case_studies_posts, perch2_case_studies_posts_to_categories, perch2_case_studies_posts_to_tags, perch2_case_studies_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_ex_display_authors, perch2_ex_display_categories, perch2_ex_display_comments, perch2_ex_display_posts, perch2_ex_display_posts_to_categories, perch2_ex_display_posts_to_tags, perch2_ex_display_tags, perch2_forms, perch2_forms_responses, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_members, perch2_members_forms, perch2_members_member_tags, perch2_members_sessions, perch2_members_tags, perch2_my_sample_things, 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_shop_categories, perch2_shop_product_options, perch2_shop_products, perch2_shop_products_to_categories, perch2_twitter_settings, perch2_twitter_tweets, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 9
App runtimes:
<?php
include(PERCH_PATH.'/core/apps/content/runtime.php');
include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php');
include(PERCH_PATH.'/addons/apps/perch_gallery/runtime.php');
include(PERCH_PATH.'/addons/apps/perch_forms/runtime.php');
include(PERCH_PATH.'/addons/apps/perch_twitter/runtime.php');
include(PERCH_PATH.'/addons/apps/perch_case_studies/runtime.php');
include(PERCH_PATH.'/addons/apps/perch_ex_display/runtime.php');
include(PERCH_PATH.'/addons/apps/perch_members/runtime.php');
//include(PERCH_PATH.'/core/apps/categories/runtime.php');
?>
Scheduled tasks for perch_twitter: update_tweets (10 mins)
Editor plug-ins: markitup, ckeditor
H1: 6d4e002114b47eb27b46690946fe4a48
L1: f2e267781c38e5765b55b4d36851068f
headerColour: #ffffff
content_singlePageEdit: 0
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
latest_version: 2.8.8
headerScheme: light
dashboard: 1
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_shop_foxy_url:
perch_shop_foxy_api:
perch_shop_product_url: /shop/product.php?s={productSlug}
content_hideNonEditableRegions: 0
perch_gallery_basicUpload: 0
perch_shop_foxy_security: 0
logoPath: /admin/resources/Ream 35 years logo.jpg
perch_blog_post_url: /news/post.php?s={postSlug}
perch_case_studies_post_url: /our-work/post.php?s={postSlug}
perch_case_studies_slug_format: %Y-%m-%d-{postTitle}
perch_case_studies_akismet_key:
perch_ex_display_post_url: /ex-display/post.php?s={postSlug}
perch_ex_display_slug_format: %Y-%m-%d-{postTitle}
perch_ex_display_akismet_key:
update_2.1.4: done
perch_ex_display_update: 3.6.3
update_2.2.5: done
update_2.2.7: done
perch_blog_update: 3.7.5
perch_gallery_update: 2.7
on_sale_version: 2.8.11
update_2.4.9: done
perch_members_login_page: /members/login.php?r={returnURL}
perch_gallery_bucket_mode: single
perch_gallery_bucket: default
hide_pwd_reset: 0
content_frontend_edit: 0
perch_blog_comment_notify: 0
perch_ex_display_comment_notify: 0
update_2.7.4: done
update_2.8.11: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: urea_242519_0002
PERCH_DB_SERVER: cust-mysql01
PERCH_DB_DATABASE: reamcouk_242519_db2
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: langleyp@hotmail.com
PERCH_EMAIL_FROM_NAME: Paul langley
PERCH_LOGINPATH: /admin
PERCH_PATH: /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin
PERCH_CORE: /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/core
PERCH_SCHEDULE_SECRET: reamschedule
PERCH_RESFILEPATH: /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
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: /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS
PHP: 5.5.28
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.5.32-31.0-log
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, json, exif, mcrypt, mysqlnd, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, shmop, SimpleXML, soap, sockets, sqlite3, tokenizer, xml, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader
GD: Yes
ImageMagick: No
PHP max upload size: 8M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
DOCUMENT_ROOT: /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html
DOCUMENT_ROOT_REAL: /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: PHPSESSID=d794d502ccb88d889d2ea3ab06e6aac6; cmsa=1; __utmt=1; __atuvc=4%7C31%2C4%7C32; __atuvs=55cba5d715a5a408002; __utma=164594236.1071949647.1438595933.1439122868.1439409624.4; __utmb=164594236.3.10.1439409624; __utmc=164594236; __utmz=164594236.1438595933.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
HTTP_HOST: ream.co.uk
HTTP_REFERER: https://ream.co.uk/admin/core/settings/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36
MAGICK_THREAD_LIMIT: 1
PATH: /bin:/usr/bin:/usr/local/bin:/usr/local/php4/bin
PWD: /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/core/settings/diagnostics
REDIRECT_STATUS: 200
REMOTE_ADDR: 194.102.14.123
REMOTE_PORT: 20774
REQUEST_METHOD: GET
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_FILENAME: /websites/LinuxPackage02/re/am/_c/ream.co.uk/public_html/admin/core/settings/diagnostics/index.php
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
SCRIPT_URI: https://ream.co.uk/admin/core/settings/diagnostics/
SCRIPT_URL: /admin/core/settings/diagnostics/
SERVER_ADDR: 10.15.21.106
SERVER_ADMIN: hosting-support@webfusion.com
SERVER_NAME: ream.co.uk
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SIGNATURE: <address>Apache Server at ream.co.uk Port 80</address>
SERVER_SOFTWARE: Apache
UNIQUE_ID: VcuuLwoPC2oAADWrMQAAAAAT
VHOST: ream.co.uk
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1439411759.6339
REQUEST_TIME: 1439411759
Thanks
In the first instance, I would roll back to 2.4.9.
Then you should enquire of your host why
__DIR__
might not be defined in a PHP 5.5 installation.