• Resolved brigham86

    (@brigham86)


    Hi need help as my shopping basket has broken with the following error.

    Parse error: syntax error, unexpected ‘,’ in /home/mesyskek/public_html/virgodance.com/wp-content/themes/lorem/woocommerce/cart/cart.php on line 66

    System Report
    ### WordPress Environment ###

    Home URL: http://virgodance.com
    Site URL: http://virgodance.com
    WC Version: 2.5.5
    Log Directory Writable: ✔
    WP Version: 4.4.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    Language: en_GB

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 5.4.34
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    SUHOSIN Installed: –
    MySQL Version: 5.5.49
    Max Upload Size: 512 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔

    ### Database ###

    WC Database Version: 2.5.5
    :
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_termmeta: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔

    ### Active Plugins (19) ###

    Akismet: by Automattic – 3.1.11
    Color Filters for WooCommerce: by Elementous – 1.2.1
    Contact Form 7: by Takayuki Miyoshi – 4.4.2
    Duplicate Page: by mndpsingh287 – 1.3
    EZP Coming Soon Page: by Bob Riley – 1.0.3
    Envato WordPress Toolkit: by Envato – 1.7.3
    Facebook Conversion Pixel: by Kellen Mace – 1.3.4
    WPBakery Visual Composer: by Michael M – WPBakery.com – 4.11
    Loginizer: by Raj Kothari – 1.2.0
    lorem shortcode: by Per Soderlind – 1.1.1
    Lorem Shortcodes: by FXoffice – 1.0
    Slider Revolution: by ThemePunch – 5.1.5
    WC Variations Radio Buttons: by 8manos – 1.1.4
    Weekly Class Schedule: by Pulsar Web Design – 3.18
    WooCommerce Quantity Increment: by WooThemes
    Bryce Adams – 1.0.0

    WooCommerce: by WooThemes – 2.5.5
    WordPress Importer: by wordpressdotorg – 0.6.1
    MailPoet Newsletters: by MailPoet – 2.7.2
    YITH WooCommerce Wishlist: by YITHEMES – 2.0.15

    ### Settings ###

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

    ### API ###

    API Enabled: ✔
    API Version: 3.1.0

    ### WC Pages ###

    Shop Base: #1052 – /shop/
    Basket: #1053 – /backet/
    Checkout: #1054 – /checkout/
    My Account: #1055 – /my-account/

    ### Taxonomies ###

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

    ### Theme ###

    Name: Lorem
    Version: 1.0
    Author URL: http://themeforest.net/user/fxoffice
    Child Theme: ✕ – If you’re modifying WooCommerce on a parent theme you didn’t build personally
    then we recommend using a child theme. See: How to create a child theme

    WooCommerce Support: ✔

    ### Templates ###

    Overrides: lorem/woocommerce/cart/cart-shipping.php
    lorem/woocommerce/cart/cart-totals.php
    lorem/woocommerce/cart/cart.php
    lorem/woocommerce/cart/cross-sells.php
    lorem/woocommerce/cart/shipping-calculator.php
    lorem/woocommerce/content-product.php
    lorem/woocommerce/content-single-product.php
    lorem/woocommerce/loop/loop-end.php
    lorem/woocommerce/loop/loop-start.php
    lorem/woocommerce/loop/pagination.php
    lorem/woocommerce/loop/sale-flash.php
    lorem/woocommerce/myaccount/form-edit-address.php
    lorem/woocommerce/single-product/add-to-cart/simple.php
    lorem/woocommerce/single-product/meta.php
    lorem/woocommerce/single-product/price.php
    lorem/woocommerce/single-product/product-image.php
    lorem/woocommerce/single-product/related.php
    lorem/woocommerce/single-product/sale-flash.php
    lorem/woocommerce/single-product/short-description.php
    lorem/woocommerce/single-product/tabs/additional-information.php
    lorem/woocommerce/single-product/tabs/description.php
    lorem/woocommerce/single-product/up-sells.php version – is out of date. The core version is 1.6.4
    lorem/woocommerce/single-product.php

    : Learn how to update outdated templates
    `

    Below is line 66 of the cart.php

    printf( ‘%s‘, $_product->get_permalink( $cart_item )) ? $product_image ;

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    The error comes from your theme, lorem.

    lorem/woocommerce/cart/cart.php

    Thread Starter brigham86

    (@brigham86)

    Thanks Mike,
    The developer found a mistake in the code.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WooCommerce Parse Error – Cart.php’ is closed to new replies.