Forum

Thread tagged as: Question, Shop

Manual Checkout issue after shop1.2.3 update...

After updating to shop 1.2.3, my manual checkout has stopped submitting the orders. when clicking the final submit button, the pager just refreshes. I don't see that any issues are shown in the debug... I think the only thing that has changed is the update of the chop app.

Diagnostic:

Perch information

Perch Runway: 3.0.8
Production mode: Production (100)
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_forms (1.9.1), perch_shop_orders (1.2.3), perch_shop_products (1.2.3), perch_shop (1.2.3), perch_shop_tickets (1.2.3), perch_members (1.6.2), pepperjack_tags (1.3), redfinch_logger (1.0), perch_mailchimp (3.1)
DB driver: PDO
DB tables: perch2_backup_plans (1), perch2_backup_resources (147), perch2_backup_runs (1037), perch2_categories (7), perch2_category_counts (0), perch2_category_sets (1), perch2_collection_index (679), perch2_collection_items (96), perch2_collection_revisions (29), perch2_collections (4), perch2_content_index (397), perch2_content_items (149), perch2_content_locks (0), perch2_content_regions (29), perch2_forms (1), perch2_forms_responses (16), perch2_mailchimp_campaigns (0), perch2_mailchimp_imports (0), perch2_mailchimp_lists (1), perch2_mailchimp_subscribers (8), perch2_mailchimp_subscriptions (8), perch2_mailchimp_webhooks (1), perch2_members (94), perch2_members_forms (2), perch2_members_member_tags (120), perch2_members_sessions (2), perch2_members_tags (19), perch2_menu_items (25), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_routes (8), perch2_page_templates (40), perch2_pages (32), perch2_redfinch_logger_events (4), perch2_resource_log (271), perch2_resource_tags (1), perch2_resources (147), perch2_resources_to_tags (1), perch2_scheduled_tasks (40), perch2_settings (44), perch2_shop_addresses (236), perch2_shop_admin_index (32), perch2_shop_brands (1), perch2_shop_cart (71452), perch2_shop_cart_data (87), perch2_shop_cart_items (193), perch2_shop_countries (250), perch2_shop_currencies (151), perch2_shop_customers (94), perch2_shop_emails (4), perch2_shop_index (15842), perch2_shop_option_values (52), perch2_shop_options (12), perch2_shop_order_items (164), perch2_shop_order_promotions (50), perch2_shop_order_statuses (10), perch2_shop_orders (86), perch2_shop_orders_meta (1), perch2_shop_product_files (0), perch2_shop_product_option_values (77), perch2_shop_product_options (21), perch2_shop_product_tags (16), perch2_shop_products (71), perch2_shop_promotions (6), perch2_shop_sales (0), perch2_shop_search (139), perch2_shop_shipping_zone_countries (1), perch2_shop_shipping_zones (1), perch2_shop_shippings (1), perch2_shop_tax_exhibits (220), perch2_shop_tax_group_rates (1), perch2_shop_tax_groups (2), perch2_shop_tax_locations (2), perch2_shop_tax_rates (2), perch2_shop_variants (428), perch2_twitter_scheduled_tweets (0), perch2_twitter_settings (1), perch2_twitter_tweets (0), perch2_user_passwords (2), perch2_user_privileges (76), perch2_user_role_privileges (47), perch2_user_roles (2), perch2_users (3), revslider_css (62), revslider_images (0), revslider_layer_animations (0), revslider_navigations (0), revslider_options (11), revslider_sessions (1), revslider_sliders (0), revslider_slides (0), revslider_static_slides (0), revslider_transients (0), revslider_user (1)
Users: 3
App runtimes:
<?php
    $apps_list = array(
        'perch_forms',
        'perch_members',
        'perch_shop',
        'perch_mailchimp'
    );
Scheduled tasks for perch_mailchimp: import_data (1 mins)
Scheduled tasks for redfinch_logger: logger_events_gc (1440 mins)
Scheduled tasks for Backup: plan_1 (10 mins)
Editor plug-ins: ckeditor, config.js, redactor-plugins
H1: 4d57a4cb3185f0f0989350774075eef5
L1: 81da7494b385f68756836054932323a6
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: #000000
content_singlePageEdit: 1
helpURL:
update_runway_3.0.4: done
hideBranding: 1
content_collapseList: 1
lang: en-us
update_2.8.34: done
headerScheme: dark
update_runway_2.8.34: done
latest_version:
on_sale_version:
perch_shop_update: 1.2.3
perch_shop_price_tax_mode: exc
perch_shop_trade_price_tax_mode: exc
perch_shop_product_url: /concert/{slug}
perch_shop_default_currency: 142
perch_shop_reporting_currency: 142
perch_shop_invoice_number_format: Invoice %d
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 1
perch_members_update: 1.4
logoPath: /perch/resources/symphonylogo.png
perch_shop_site_url: https://capeannsymphony.org
update_runway_3.0: done
perch_twitter_update: 3.5
update_runway_3.0.1: done
siteOffline: 0
perch_members_login_page: https://capeannsymphony.org/log-in?r={returnURL}
update_runway_3.0.2: done
update_runway_3.0.3: done
content_skip_region_list: 1
perch_mailchimp_api_key: 00220d4ac4a96c8dca1f68ac3feef3ca-us15
perch_mailchimp_campaign_url: /mailchimp/campaign/{campaignSlug}
perch_mailchimp_secret: 5832e7a
siteURL: https://capeannsymphony.org
update_runway_3.0.5: done
redfinch_logger_gc: 90
update_runway_3.0.7: done
keyboardShortcuts: 0
update_runway_3.0.8: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_EMAIL_FROM: info@capeannsymphony.org
PERCH_EMAIL_FROM_NAME: Cape Ann Symphony
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/capeannsymphony/tickets.capeannsymphony.org/perch
PERCH_CORE: /home/capeannsymphony/tickets.capeannsymphony.org/perch/core
PERCH_RESFILEPATH: /home/capeannsymphony/tickets.capeannsymphony.org/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_SSL: 1
PERCH_RWD: 1
PERCH_DB_USERNAME: caso_data_user
PERCH_DB_SERVER: mysql.capeannsymphony.org
PERCH_DB_DATABASE: caso_db
PERCH_DB_PREFIX: perch2_
PERCH_SITEPATH: /home/capeannsymphony/tickets.capeannsymphony.org
PERCH_SCHEDULE_SECRET: joyofmusic
PERCH_EMAIL_METHOD: smtp
PERCH_EMAIL_HOST: smtp.postmarkapp.com
PERCH_EMAIL_AUTH: 1
PERCH_EMAIL_PORT: 2525
PERCH_EMAIL_USERNAME: 5c707a48-6d0a-40c9-a31d-50d91e1dddb2
PERCH_CUSTOM_EDITOR_CONFIGS: 1
PERCH_TZ: America/New_York
PERCH_YOUTUBE_API_KEY: AIzaSyB2Uh2JaLIZbMskIEC2sfd_aY3fW8fORgA
PERCH_GMAPS_API_KEY: AIzaSyBQImXPMlXHqUe8ROzwi51e5CJP0LLPRoU
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_ASSET_VERSION: 5163d57ff611b3cf853b
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/capeannsymphony/tickets.capeannsymphony.org/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_HTML_ENTITIES:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SHOP_VERSION: 1.2.3
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 5.6.31
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.6.34-log
Free disk space: 53.33 GB
Extensions: Core, date, ereg, libxml, pcre, sqlite3, filter, mbstring, SPL, PDO, Reflection, pdo_sqlite, hash, session, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, standard, ftp, gd, gettext, exif, iconv, imap, json, mcrypt, mysqlnd, mysqli, openssl, pcntl, pdo_mysql, posix, pspell, mysql, SimpleXML, soap, sockets, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib, imagick, memcached, mhash
GD: Yes
ImageMagick: Yes
PHP max upload size: 64M
PHP max form post size: 65M
PHP memory limit: 90M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /bin:/usr/bin:/sbin:/usr/sbin
RAILS_ENV: production
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: 32966
SCRIPT_FILENAME: /home/capeannsymphony/tickets.capeannsymphony.org/perch/core/settings/diagnostics/index.php
SERVER_ADMIN: webmaster@capeannsymphony.org
DOCUMENT_ROOT: /home/capeannsymphony/tickets.capeannsymphony.org
REMOTE_ADDR: 71.233.175.185
SERVER_PORT: 443
SERVER_ADDR: 64.111.119.118
SERVER_NAME: capeannsymphony.org
SERVER_SOFTWARE: Apache
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_REFERER: https://capeannsymphony.org/perch/core/settings/diagnostics/
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.32 (KHTML, like Gecko) Version/11.0 Safari/604.1.32
HTTP_COOKIE: gs_v_GSN-572831-M=; PHPSESSID=XcDsRk2h%2CREelsXOO0hB13; gs_u_GSN-572831-M=56e19fec716ad848e7f2944ce1978192:6951:96339:1501343764897; cmsa=1; p_m=8e441b01a4655cf256172ea3232b195655eb60d1
HTTP_CONNECTION: close
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_HOST: capeannsymphony.org
SSL_TLS_SNI: capeannsymphony.org
HTTPS: on
DH_USER: capeannsymphony
dsid: 34160468
SCRIPT_URI: https://capeannsymphony.org/perch/core/settings/diagnostics/
SCRIPT_URL: /perch/core/settings/diagnostics/
UNIQUE_ID: WXywVEBvd3YAAFnVE3AAAAAZ
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1501343828.8476
REQUEST_TIME: 1501343828

manual_checkout template:

<?php if (!defined('PERCH_RUNWAY')) include($_SERVER['DOCUMENT_ROOT'].'/perch/runtime.php');
PerchSystem::force_ssl();
    if (!perch_member_logged_in()) {
        PerchSystem::redirect('/register-manual');
    }

    if (perch_shop_cart_has_property('terms_agreed'))  {
          $return_url = '/cart/manual-confirm';
          $cancel_url = '/contact-us';

          perch_shop_checkout('manual', [
            'status' => 'manual_order',
            'return_url' => $return_url,
            'cancel_url' => $cancel_url,
          ]);       


        }
        perch_layout('site.head'); ?>
<body class="stretched">

    <!-- Document Wrapper
    ============================================= -->
    <div id="wrapper" class="clearfix">
        <?php
        perch_layout('site.header');
        perch_layout('site.page.head');?>

        <!-- Content
        ============================================= -->
        <section id="content">

            <div class="content-wrap home-concerts">

                <div class="container clearfix ">

<!--
                    <div class="col_half">
                        <div class="panel panel-default">
                            <div class="panel-body">
                                Returning customer? <a href="login-register.html">Click here to login</a>
                            </div>
                        </div>
                    </div>
-->
<!--
                    <div class="col_half col_last">
                        <div class="panel panel-default">
                            <div class="panel-body">
                                Have a coupon? <a href="login-register.html">Click here to enter your code</a>
                            </div>
                        </div>
                    </div>
-->

                    <div class="row clearfix">
<?php

                            perch_shop_cart([
                        'template' => '/cart/cart_manual_note'
]);
 ?>


<?php       


    // Show the cart with a non-interactive template
    perch_shop_cart([
        'template'=>'cart/cart_static.html'
    ]);
    // Display the form with the T&Cs checkbox



?>

                    </div>
                </div>
                    <div class="row clearfix">
<?php
    // Show the order addresses
    perch_shop_order_addresses([
        'template' => 'shop/addresses/confirm_checkout.html'
    ]);
?>


        <div class="col-md-4">
            <h4 class="clarendon  topmargin-sm nobottommargin">Final Review</h4>
            <p>Once you check over all the order information, click the checkbox and (optionally) enter a note about the order.</p>
    <?php
        perch_shop_form('checkout/confirm.html');

    ?>
    </div> 
    </div>

    </div>


            </div>

        </section><!-- #content end -->

<?php perch_layout('site.footer'); ?>
    </div><!-- #wrapper end -->

    <!-- Go To Top
    ============================================= -->
    <div id="gotoTop" class="icon-angle-up"></div>

<?php perch_layout('site.footer.scripts'); ?>

</body>
<?php PerchUtil::output_debug(); ?>
</html>
Monty Lewis

Monty Lewis 2 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Are there errors in your error log?

no errors in php log

on my dev server, rolled back to 1.2.2 and it works again...

I can do that without penalty? Temped to do that on live server maybe.

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's not a great deal of difference between the two versions, so you should be fine.

How is it failing? Does debug show anything?

Cool. I took the live server back to 1.2.2 and everything seems fine. With 1.2.3 it’s failing when you press the submit button for the manual order. It just refreshes the page. And the order is not added.

I can continue to troubleshoot 1.2.3 on my dev server if that would help.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It would be useful to know why it's not progressing.