• Resolved BenCRP

    (@bencrp)


    1) When customers get to the checkout page, the “YourOrder” box is visible but faded out and not active.

    2) When I go to Add Media at any point, I get a wheel of death and an empty box.

    I have been using WooCommerce for a few years, but over the last few months have run into serious difficulties. This started with an apparent conflict with my old theme (Avada) and the shopping cart, so I switched to Storefront as this was supposed to remove such possibilites. However, it seems to have caused more issues than it has solved!

    The only plugins I have running are Woocommerce, PaymentSense Gateway for Woocommerce and Jetpack.

    If anyone can help (especially my first issue) I would very much appreciate it, as this has been driving me crazy for too long!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi,

    Could I see a link to your site? This 100% sounds like a javascript conflict as both the elements you say are failing load via js.

    Are you definitely using the correct gateway? Looking at http://developers.paymentsense.co.uk/woocommerce/ you need the 2.1.x – 2.3.x version.

    Thread Starter BenCRP

    (@bencrp)

    Hi James,

    Thank you for the speedy response. Of course, should have posted the link: http://chrisrobinson.co.uk

    All my themes and plugins (and WordPress) are up to date and in case it helps, I’ve included the WooCommerce Status Report below as well.

    Many thanks for your help,

    Ben

    ### WordPress Environment ###

    Home URL: http://chrisrobinson.co.uk
    Site URL: http://chrisrobinson.co.uk
    WC Version: 2.3.5
    WC Database Version: 2.3.5
    Log Directory Writable: ✔ /home/linweb23/c/chrisrobinson.co.uk-1067749630/user/htdocs/wp-content/uploads/wc-logs/
    WP Version: 4.1.1
    WP Multisite: –
    WP Memory Limit: 64 MB
    WP Debug Mode: –
    Language: en_GB

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 5.2.17
    PHP Post Max Size: 20 MB
    PHP Time Limit: 60
    PHP Max Input Vars:
    SUHOSIN Installed: –
    MySQL Version: 5.0.95
    Max Upload Size: 20 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Server Locale ###

    decimal_point: .
    thousands_sep: N/A
    mon_decimal_point: N/A
    mon_thousands_sep: N/A

    ### Active Plugins (3) ###

    Jetpack by WordPress.com: by Automattic – 3.3.2
    WooCommerce Paymentsense Gateway: by Paymentsense – 2.1.1
    WooCommerce: by WooThemes – 2.3.5

    ### Settings ###

    API Enabled: ✔
    Taxes Enabled: –
    Shipping Enabled: ✔
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2

    ### WC Pages ###

    Shop Base: #17 – /shop/
    Basket: #18 – /cart/
    Checkout: #1426 – /checkout/payment/
    My Account: #20 – /my-account/

    ### Taxonomies ###

    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    ### Theme ###

    Name: Storefront
    Version: 1.3.1
    Author URL: http://woothemes.com
    Child Theme: ✕ – If you’re modifying WooCommerce or a parent theme you didn’t build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔

    ### Templates ###

    Overrides: –

    Hey,

    Looking at the inspector on your site I can see that http://chrisrobinson.co.uk/wp-admin/admin-ajax.php isn’t loading. This is a core WordPress file. Perhaps it didn’t upload correctly? Try uploading that file and remember to check permissions.

    Thread Starter BenCRP

    (@bencrp)

    Hi James,

    Thanks for the suggestion. I have reuploaded admin-ajax.php and checked permissions of all the wp-admin files but still don’t have access to the java elements.

    Thread Starter BenCRP

    (@bencrp)

    I noticed today that there was an update to the WooCommerce plugin so I thought this might help. However just updating now appears to have completely crashed the site.

    I have tried reinstalling 2.3.5 via ftp, but the site is still down. Will try again in a few hours. Any advice would be appreciated.

    Thanks,
    Ben

    Hi Ben,

    All I can suggest is to speak to your host. This isn’t a problem I can diagnose without access to your site. They will be able to inspect your php error log and see what’s going on here.

    Sorry I can’t be of more assistance.

    Thread Starter BenCRP

    (@bencrp)

    Hi James, thanks again for the advice – my site is now back online with the the WC update installed. Apparently the PaymentSense gateway caused the crash. While it was deactivated to get the site back up I was able to access the media library in the theme customiser tool, though the payment module was still inactive. however, since reinstalling payment sense I am back to both issues in my original post here. Deactivating the PaymentSense gateway has also made no difference since.

    Any further thoughts?

    Many thanks,
    Ben

    Your site is still down for me 🙁

    Thread Starter BenCRP

    (@bencrp)

    How odd. It’s working for me now. Have you got the crashed version cachéd perhaps?

    It’s loading now, but I’m still getting a 500 error at this location: http://chrisrobinson.co.uk/wp-admin/admin-ajax.php

    You’ll need to ask your host about that. Thought should be able to resolve this for you.

    Thread Starter BenCRP

    (@bencrp)

    Hi James,

    Thanks again for your help on this matter. Unfortunately I have been unable to work on the site for a while and so have only again been able to address this issue recently.

    I asked the host as you suggested but they simply gave me this link:
    http://wordpress.stackexchange.com/questions/97502/admin-ajax-is-returning-0

    Short of adding the die(0) entry at the end of the page as is discussed (positively and negatively) I don´t actually see how to proceed to get this page running.

    Please can you offer any further advice? If it helps I have copied the code from http://chrisrobinson.co.uk/wp-admin/admin-ajax.php

    Many thanks,

    Ben

    <?php
    /**
     * WordPress AJAX Process Execution.
     *
     * @package WordPress
     * @subpackage Administration
     *
     * @link https://codex.wordpress.org/AJAX_in_Plugins
     */
    
    /**
     * Executing AJAX process.
     *
     * @since 2.1.0
     */
    define( 'DOING_AJAX', true );
    if ( ! defined( 'WP_ADMIN' ) ) {
    define( 'WP_ADMIN', true );
    }
    
    /** Load WordPress Bootstrap */
    require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' );
    
    /** Allow for cross-domain requests (from the frontend). */
    send_origin_headers();
    
    // Require an action parameter
    if ( empty( $_REQUEST['action'] ) )
    die( '0' );
    
    /** Load WordPress Administration APIs */
    require_once( ABSPATH . 'wp-admin/includes/admin.php' );
    
    /** Load Ajax Handlers for WordPress Core */
    require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
    
    @header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
    @header( 'X-Robots-Tag: noindex' );
    
    send_nosniff_header();
    nocache_headers();
    
    /** This action is documented in wp-admin/admin.php */
    do_action( 'admin_init' );
    
    $core_actions_get = array(
    'fetch-list', 'ajax-tag-search', 'wp-compression-test', 'imgedit-preview', 'oembed-cache',
    'autocomplete-user', 'dashboard-widgets', 'logged-in',
    );
    
    $core_actions_post = array(
    'oembed-cache', 'image-editor', 'delete-comment', 'delete-tag', 'delete-link',
    'delete-meta', 'delete-post', 'trash-post', 'untrash-post', 'delete-page', 'dim-comment',
    'add-link-category', 'add-tag', 'get-tagcloud', 'get-comments', 'replyto-comment',
    'edit-comment', 'add-menu-item', 'add-meta', 'add-user', 'closed-postboxes',
    'hidden-columns', 'update-welcome-panel', 'menu-get-metabox', 'wp-link-ajax',
    'menu-locations-save', 'menu-quick-search', 'meta-box-order', 'get-permalink',
    'sample-permalink', 'inline-save', 'inline-save-tax', 'find_posts', 'widgets-order',
    'save-widget', 'set-post-thumbnail', 'date_format', 'time_format', 'wp-fullscreen-save-post',
    'wp-remove-post-lock', 'dismiss-wp-pointer', 'upload-attachment', 'get-attachment',
    'query-attachments', 'save-attachment', 'save-attachment-compat', 'send-link-to-editor',
    'send-attachment-to-editor', 'save-attachment-order', 'heartbeat', 'get-revision-diffs',
    'save-user-color-scheme', 'update-widget', 'query-themes', 'parse-embed', 'set-attachment-thumbnail',
    'parse-media-shortcode', 'destroy-sessions', 'install-plugin', 'update-plugin', 'press-this-save-post',
    'press-this-add-category',
    );
    
    // Register core Ajax calls.
    if ( ! empty( $_GET['action'] ) && in_array( $_GET['action'], $core_actions_get ) )
    add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 );
    
    if ( ! empty( $_POST['action'] ) && in_array( $_POST['action'], $core_actions_post ) )
    add_action( 'wp_ajax_' . $_POST['action'], 'wp_ajax_' . str_replace( '-', '_', $_POST['action'] ), 1 );
    
    add_action( 'wp_ajax_nopriv_heartbeat', 'wp_ajax_nopriv_heartbeat', 1 );
    
    if ( is_user_logged_in() ) {
    /**
    * Fires authenticated AJAX actions for logged-in users.
    *
    * The dynamic portion of the hook name, <code>$_REQUEST['action']</code>,
    * refers to the name of the AJAX action callback being fired.
    *
    * @since 2.1.0
    */
    do_action( 'wp_ajax_' . $_REQUEST['action'] );
    } else {
    /**
    * Fires non-authenticated AJAX actions for logged-out users.
    *
    * The dynamic portion of the hook name, <code>$_REQUEST['action']</code>,
    * refers to the name of the AJAX action callback being fired.
    *
    * @since 2.8.0
    */
    do_action( 'wp_ajax_nopriv_' . $_REQUEST['action'] );
    }
    // Default status
    die( '0' );

    Hey,

    This is a core WordPress file, you shouldn’t have to edit it to get WordPress running correctly.

    Personally, I’d switch hosts.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Can't proceed to Checkout and Add Media doesn´t load’ is closed to new replies.