Support » Plugin: WooCommerce » WP CLI command for attributes is failing

  • Resolved theMikeD

    (@themiked)


    
    $ wp wc product_attribute list
    Error: Sorry, you cannot list resources. {"status":401}
    
    $ wp wc product_attribute create --name="test"
    Error: Sorry, you cannot create new resource. {"status":401}
    

    WP CLI channel on slack suggested I ask here. Any ideas?

    
    ### WordPress Environment ###
    
    Home URL: http://woo.dev
    Site URL: http://woo.dev/wordpress
    WC Version: 2.7.0
    Log Directory Writable: ✔
    WP Version: 4.7.2
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_CA
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.1.0
    PHP Post Max Size: 32 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.51.0
    OpenSSL/1.0.2j
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.34
    Max Upload Size: 32 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 2.7.0
    WC Database Prefix: wp_
    woocommerce_sessions: ✔
    woocommerce_api_keys: ✔
    woocommerce_attribute_taxonomies: ✔
    woocommerce_downloadable_product_permissions: ✔
    woocommerce_order_items: ✔
    woocommerce_order_itemmeta: ✔
    woocommerce_tax_rates: ✔
    woocommerce_tax_rate_locations: ✔
    woocommerce_shipping_zones: ✔
    woocommerce_shipping_zone_locations: ✔
    woocommerce_shipping_zone_methods: ✔
    woocommerce_payment_tokens: ✔
    woocommerce_payment_tokenmeta: ✔
    MaxMind GeoIP Database: ❌ The MaxMind GeoIP Database does not exist - Geolocation will not function. You can download and install it manually from http://dev.maxmind.com/geoip/legacy/geolite/ to the path: . Scroll down to "Downloads" and download the "Binary / gzip" file next to "GeoLite Country". Please remember to uncompress GeoIP.dat.gz and upload the GeoIP.dat file only.
    
    ### Security ###
    
    Secure connection (HTTPS): ❌Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ✔
    
    ### Active Plugins (9) ###
    
    Admin Post Navigation: by Scott Reilly – 2.0
    Transient Cleaner: by David Artiss – 1.5.2
    MikeD's De-Bugging Helper: by MikeD – 1.0
    Password Protected: by Ben Huson – 2.0.3
    Soliloquy - WooCommerce Addon: by Soliloquy Team – 1.1.3
    Soliloquy: by Soliloquy Team – 2.5.3.1
    WooCommerce Product CSV Import Suite: by Automattic – 1.10.12
    WooCommerce: by WooThemes – 2.7.0-beta-1
    WP Sync DB: by Sean Lang – 1.5
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: CAD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### WC Pages ###
    
    Shop base: #3 - /shop/
    Cart: #4 - /cart/
    Checkout: #5 - /checkout/
    My account: #6 - /my-account/
    
    ### Theme ###
    
    Name: Jessica
    Version: 1.3.1
    Author URL: http://www.web-savvy-marketing.com/
    Child Theme: ✔
    Parent Theme Name: Genesis
    Parent Theme Version: 2.4.2
    Parent Theme Author URL: https://www.studiopress.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: jessica/woocommerce/single-product/meta.php version 1.6.4 is out of date. The core version is 2.7.0
    jessica/taxonomy-product_tag.php
    
    Outdated Templates: ❌Learn how to update
    
    • This topic was modified 9 months, 1 week ago by  theMikeD.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP CLI command for attributes is failing’ is closed to new replies.