Forum

Thread tagged as: Problem, Runway, Backup

Backup and Kraken issues

Hi, I am getting this error from Cron for my backup (runway) which is not running correctly. I have set it up to run every 23 hrs but nothing happens.

Parse error: syntax error, unexpected '[' in /home4/digitale/public_html/perch/core/runway/lib/PerchRouter.class.php on line 8

I have set up Kraken but I just get a list of images with each one having the same output which is Status (PENDING) original size 0 new size 0 saved 0

David Roberts

David Roberts 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Can you post your Diagnostic Report, please?

Rachel,

I have added the long version.

PERCH INFORMATION

Perch Runway: 2.8.13
Production mode: Production (100)
Installed apps: content (2.8.13), assets (2.8.13), categories (2.8.13), perch_blog (4.6), perch_kraken (1.0), perch_mailchimp (2.0.1), collection_1 (2.8.13), perch_backup (1.2)
DB driver: PDO
DB tables: perch2_backup_plans, perch2_backup_resources, perch2_backup_runs, perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_collection_index, perch2_collection_items, perch2_collection_revisions, perch2_collections, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_kraken_jobs, perch2_mailchimp_campaigns, perch2_mailchimp_history, perch2_mailchimp_log, perch2_mailchimp_stats, perch2_mailchimp_subscribers, perch2_navigation, perch2_navigation_pages, perch2_page_routes, 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
Users: 2
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'perch_mailchimp',
    );
Scheduled tasks for perch_mailchimp: update_list_stats (60 mins)
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for Backup: plan_1 (10 mins)
Editor plug-ins: markitup
H1: e6a5dcc1f4aeb4f13c4a027274984c01
L1: 3823e14d4b406f8869feb469e9132745
headerColour: #000000
content_singlePageEdit: 1
helpURL:
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.8: done
perch_mailchimp_secret: 7b9f1ae8592912b3bc5c6f21b50c6902
headerScheme: dark
update_runway_2.8.8: done
latest_version: 2.8.8
on_sale_version: 2.8.13
siteURL: https://digitaleducation.education
content_frontend_edit: 1
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
perch_backup_mysqldump_path:
perch_mailchimp_api_key: 5a44464b5363604ce3c47f27ed507e9f-us8
perch_mailchimp_list_id: 6398c6dc02
perch_mailchimp_campaign_url: /mailchimp/campaign.php?s={campaignSlug}
perch_blog_post_url: /{sectionSlug}/{postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 1
perch_kraken_api_key: 2ad9eac2711bd7fc665cbdee69efc34b
perch_kraken_api_secret: 30671c90a67d9be81c92b79d6f242be957d2328b
perch_kraken_url: https://digitaleducation.education/resources
perch_kraken_dev_mode:
perch_blog_comment_notify: 0
perch_blog_update: 5.0
update_runway_2.8.11: done
perch_mailchimp_update: 2.0
update_runway_2.8.13: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /home4/digitale/public_html
PERCH_SCHEDULE_SECRET: rkxh51eel9frh6wd
PERCH_DB_USERNAME: digitale_777
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: digitale_edu17
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: david@robertsdesign.biz
PERCH_EMAIL_FROM_NAME: David Roberts
PERCH_LOGINPATH: /perch
PERCH_PATH: /home4/digitale/public_html/perch
PERCH_CORE: /home4/digitale/public_html/perch/core
PERCH_RESFILEPATH: /home4/digitale/public_html/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_YOUTUBE_API_KEY: AIzaSyBUKc4VimJt955xlOKLqmHEGKPM5QqLlnc
PERCH_HTML5: 1
PERCH_TZ: UTC
PERCH_RWD: 1
PERCH_RUNWAY: 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: /home4/digitale/public_html/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS

PHP: 5.4.45
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.5.40-36.1-log
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, session, intl, json, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, PDO, pdo_sqlite, sqlite3, pdo_mysql, ffmpeg, imagick, ssh2, SourceGuardian, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: Yes
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: /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
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: 17956
SCRIPT_FILENAME: /home4/digitale/public_html/perch/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@digitaleducation.education
DOCUMENT_ROOT: /home4/digitale/public_html
REMOTE_ADDR: 195.147.229.28
SERVER_PORT: 80
SERVER_ADDR: 5.10.105.36
SERVER_NAME: digitaleducation.education
SERVER_SOFTWARE: Apache
HTTP_CF_CONNECTING_IP: 195.147.229.28
HTTP_DNT: 1
HTTP_REFERER: https://digitaleducation.education/perch/core/settings/diagnostics/
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_COOKIE: __cfduid=dbc4540771cdb1881d8e297273a441d5c1441140427; __utma=138693286.1780612471.1441140380.1442446824.1442484876.17; __utmb=138693286.1.10.1442484876; __utmc=138693286; __utmt=1; __utmz=138693286.1441140380.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __smToken=uZf5QsE1CE0YYyH4FqKxEhO8; cmsa=1; gs_p_GSN-081588-I=0; gs_u_GSN-081588-I=d5226e645a8c97089198af720ac59739:34899:47827:1442484868880; PHPSESSID=44df0ccd03a3e241ee9752f4723cbb03
HTTP_CF_VISITOR: {"scheme":"http"}
HTTP_X_FORWARDED_PROTO: http
HTTP_CF_RAY: 22740dd33717138f-LHR
HTTP_X_FORWARDED_FOR: 195.147.229.28
HTTP_CF_IPCOUNTRY: GB
HTTP_ACCEPT_ENCODING: gzip
HTTP_CONNECTION: close
HTTP_HOST: digitaleducation.education
proto: http
UNIQUE_ID: VfqS6QUKaSQAAEVJiWsAAAB7
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1442484969.5
REQUEST_TIME: 1442484969
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think perhaps the CLI version of PHP that cron is using is PHP < 5.4.

You should be able to check with

php -v

Yes, my default on the server is 5.3.29 but I run 5.4 by adding it to my .htaccess file AddHandler application/x-httpd-php54 .php. I guess this does not work in this case?

Drew McLellan

Drew McLellan 2638 points
Perch Support

.htaccess is used by Apache for web requests. Cron doesn't go via the web server at all - it runs the command line version of PHP, so .htaccess has no effect.

Yes the CLI would be 5.3.29.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It needs to be 5.4 minimum.

Ok, I have updated that to 5.4.

Is there any reason this is not working?

I have set up Kraken but I just get a list of images with each one having the same output which is Status (PENDING) original size 0 new size 0 saved 0?

Drew McLellan

Drew McLellan 2638 points
Perch Support

I think the URL in settings should be:

https://digitaleducation.education/perch/resources

Ok thanks. I will try that.

That just gives me a 404 in the URL and I have not seen any change in the backend?

Drew McLellan

Drew McLellan 2638 points
Perch Support

What do you mean by "a 404 in the URL" ?

It goes to a 404 page.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Right, but it won't when the image file name is appended to it, correct?

Yes, correct. When you add an image file name to the end it shows the image.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, that should be what's needed for Kraken then.

So why then to I get no change with any image, nothing has changed since the site has been live (only a couple of weeks)?

Status (PENDING) original size 0 new size 0 saved 0?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Does that happen for new jobs on the queue now that you've fixed the settings?

If you mean new images. I have not added any since then.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, new images or new sizes of existing images.