Forum

Thread tagged as: Problem, Runway, Shop

Stripe Checkout

Hello, I am setting up a shop in perch runway using stripe, starting basic and building it up. On my development machine MAMP things seemed to be working ok with checkout. Now I have deployed to a staging server I am getting the following error displayed in the browser after entry of card details.

Fatal error: Uncaught exception 'Guzzle\Http\Exception\CurlException' with message '[curl] 35: Unsupported SSL protocol version [url] https://api.stripe.com/v1/charges' in /home/teap/millers/perch/addons/apps/perch_shop/lib/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php:359 Stack trace: #0 /home/teap/millers/perch/addons/apps/perch_shop/lib/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php(292): Guzzle\Http\Curl\CurlMulti->isCurlException(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array) #1 /home/teap/millers/perch/addons/apps/perch_shop/lib/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php(257): Guzzle\Http\Curl\CurlMulti->processResponse(Object(Guzzle\Http\Message\EntityEnclosingRequest), Object(Guzzle\Http\Curl\CurlHandle), Array) #2 /home/teap/millers/perch/addons/apps/perch_shop/lib/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php(240): Guzzle\Http\Curl\CurlMulti->processMessages() #3 /home/teap/millers/perch/addons/apps/perch_shop/lib/vendor/g in /home/teap/millers/perch/addons/apps/perch_shop/lib/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php on line 359

The order confirmation emails are still being sent but the order is not appearing in perch admin orders or in the stripe dashboard (I am in test mode)

I assume this is a server configuration issue with my host but I do not know where to begin or what to ask for?

Here is my diagnostic report:

Perch Runway: 2.8.31
Production mode: Production (100)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_blog (5.0), perch_forms (1.8.3), perch_shop_orders (1.0.8), perch_shop_products (PERCH_SHOP_VERSION), perch_shop (1.0.8), perch_members (1.5)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (1), perch2_blog_comments (0), perch2_blog_index (74), perch2_blog_posts (2), perch2_blog_posts_to_tags (4), perch2_blog_sections (1), perch2_blog_tags (4), perch2_blogs (1), perch2_categories (13), perch2_category_counts (2), perch2_category_sets (2), perch2_collection_index (0), perch2_collection_items (0), perch2_collection_revisions (0), perch2_collections (0), perch2_content_index (36), perch2_content_items (23), perch2_content_regions (19), perch2_forms (0), perch2_forms_responses (0), perch2_members (1), perch2_members_forms (1), perch2_members_member_tags (0), perch2_members_sessions (2), perch2_members_tags (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (9), perch2_page_templates (17), perch2_pages (15), perch2_resource_log (21), perch2_resource_tags (0), perch2_resources (24), perch2_resources_to_tags (0), perch2_scheduled_tasks (1), perch2_settings (34), perch2_shop_addresses (12), perch2_shop_admin_index (64), perch2_shop_brands (7), perch2_shop_cart (29), perch2_shop_cart_data (24), perch2_shop_cart_items (10), perch2_shop_countries (250), perch2_shop_currencies (152), perch2_shop_customers (1), perch2_shop_emails (1), perch2_shop_index (449), perch2_shop_option_values (2), perch2_shop_options (1), perch2_shop_order_items (11), perch2_shop_order_promotions (0), perch2_shop_order_statuses (9), perch2_shop_orders (5), perch2_shop_orders_meta (1), perch2_shop_product_files (0), perch2_shop_product_option_values (6), perch2_shop_product_options (3), perch2_shop_product_tags (0), perch2_shop_products (10), perch2_shop_promotions (0), perch2_shop_search (6), perch2_shop_shipping_zone_countries (1), perch2_shop_shipping_zones (1), perch2_shop_shippings (2), perch2_shop_tax_exhibits (14), perch2_shop_tax_group_rates (1), perch2_shop_tax_groups (1), perch2_shop_tax_locations (1), perch2_shop_tax_rates (1), perch2_shop_variants (6), perch2_user_passwords (0), perch2_user_privileges (76), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_forms',
        'perch_blog',
        'perch_members',
        'perch_shop',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: ffe60c9aafb5ff55ad5f21b8e5238359
L1: 93ce63b776575d6e7621c77f773b629e
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #006699
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.31: done
headerScheme: dark
update_runway_2.8.31: done
latest_version: 2.8.15
on_sale_version: 2.8.31
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
logoPath: /perch/resources/millersuk-1.jpg
perch_members_update: 1.4
perch_shop_update: 1.0.8
perch_blog_site_name:
perch_blog_post_url: /blog/{postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_members_login_page: /members/login.php?r={returnURL}
perch_shop_price_tax_mode: exc
perch_shop_trade_price_tax_mode: exc
perch_shop_site_url: https://millersuk.co.uk
perch_shop_product_url: /shop/products/{slug}
perch_shop_default_currency: 47
perch_shop_reporting_currency: 47
perch_shop_invoice_number_format: Invoice%d
perch_blog_comment_notify: 0
perch_blog_update: 5.0.1
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /home/teap/millers
PERCH_SCHEDULE_SECRET: SahE9yNTrrDB9e5s
PERCH_DB_USERNAME: teap_web
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: teap_millersdev
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: greg@technologyapplied.co.uk
PERCH_EMAIL_FROM_NAME: Greg Riley
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/teap/millers/perch
PERCH_CORE: /home/teap/millers/perch/core
PERCH_RESFILEPATH: /home/teap/millers/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_TZ: Europe/London
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_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/teap/millers/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_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
PERCH_SHOP_VERSION: 1.0.8
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS

PHP: 5.5.32
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.50-cll
Free disk space: 7.40 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, filter, ftp, gd, hash, iconv, SPL, json, mcrypt, session, mysql, standard, Phar, posix, Reflection, mysqlnd, SimpleXML, sockets, imap, tokenizer, xml, xmlreader, xmlwriter, cgi-fcgi, PDO, pdo_sqlite, pdo_mysql
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
CONTEXT_DOCUMENT_ROOT: /home/teap/millers
DOCUMENT_ROOT: /home/teap/millers
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: PHPSESSID=4cdddf7929984d3f998412a707db5f57; cmssb=0; cmsa=1
HTTP_HOST: millers.teap.co.uk
HTTP_REFERER: https://millers.teap.co.uk/perch/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 86.8.224.6
REMOTE_PORT: 46795
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/teap/millers/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
SERVER_ADDR: 178.238.139.32
SERVER_ADMIN: webmaster@millers.teap.co.uk
SERVER_NAME: millers.teap.co.uk
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: V@JtCLLuiyAAAG@B8r4AAAAI
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1474456840.65
REQUEST_TIME: 1474456840
argc: 1

Thanks in advance for any suggestions.

Greg Riley

Greg Riley 1 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

That sounds like this issue here: https://github.com/stripe/stripe-php/issues/289

Perhaps some of the suggestions there would work for you depending on the access you have to your server. It maybe that updating PHP would sort it.

Well after much messing around in SSH, WHM and cPanel updated EasyApache 3 to EasyApache 4 I now have PHP 5.6 and 7.0 available in cPanel. The Stripe error went away using PHP 5.6 but I thought I might as well go with PHP 7.0 to match my development MAMP environment and the error is also now gone.

On to the next problems now!