• Resolved lortan29

    (@lortan29)


    Authorization does not work. I do everything according to the instructions, in the end I get some garbage:

    //Function

    require __DIR__ . ‘/automattic_woocommerce/vendor/autoload.php’;

    use Automattic\WooCommerce\Client;
    use Automattic\WooCommerce\HttpClient\HttpClientException;

    $woocommerce = new Client(
    home_url(),
    $consumer_key,
    $consumer_secret,
    [
    ‘wp_api’ => true,
    ‘version’ => ‘wc/v3’,
    ‘query_string_auth’ => true
    ]
    );

    //Responce:
    Uncaught Automattic\WooCommerce\HttpClient\HttpClientException: cURL Error: Operation timed out after 15004 milliseconds with 0 bytes received in /mnt/main-dev-big/comradeserver.com/ao.comradeserver.com/web/app/mu-

    //Report:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://ao.comradeserver.com/wp
    Site address (URL): https://ao.comradeserver.com
    WC Version: 4.3.1
    REST API Version: ? 1.0.10
    WC Blocks Version: ? 2.7.2
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.3.1
    Log Directory Writable: ?
    WP Version: ? 5.4.2 - There is a newer version of WordPress available (5.5)
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.8
    PHP Post Max Size: 300 MB
    PHP Time Limit: 500
    PHP Max Input Vars: 9000
    cURL Version: 7.58.0
    OpenSSL/1.1.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.2.33-MariaDB-1:10.2.33+maria~bionic
    Max Upload Size: 300 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.3.1
    WC Database Prefix: ao_
    Total Database Size: 17.52MB
    Database Data Size: 12.71MB
    Database Index Size: 4.81MB
    ao_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ao_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    ao_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ao_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_actionscheduler_actions: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
    ao_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    ao_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    ao_elfsight_instagram_feed_cache: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    ao_elfsight_instagram_feed_ig_user: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_elfsight_instagram_feed_widgets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_options: Data: 1.27MB + Index: 0.09MB + Engine InnoDB
    ao_postmeta: Data: 3.50MB + Index: 1.78MB + Engine InnoDB
    ao_posts: Data: 0.30MB + Index: 0.14MB + Engine InnoDB
    ao_searchwp_index: Data: 1.52MB + Index: 0.91MB + Engine InnoDB
    ao_searchwp_log: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    ao_searchwp_status: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    ao_searchwp_tokens: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    ao_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    ao_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ao_vxcf_mailchimp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_vxcf_mailchimp_accounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_vxcf_mailchimp_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ao_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ao_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ao_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    ao_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ao_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ao_woo_shippment_provider: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_hidemysiteSecure: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 1.52MB + Index: 0.03MB + Engine InnoDB
    wp_postmeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_posts: Data: 1.52MB + Index: 0.06MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 433
    customize_changeset: 11
    flamingo_contact: 18
    flamingo_inbound: 42
    nav_menu_item: 28
    page: 15
    post: 1
    product: 3
    product_variation: 132
    revision: 48
    shop_coupon: 1
    shop_order: 25
    wpcf7_contact_form: 5
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (27) ###
    
    Query Monitor: by John Blackbourn – 3.6.1
    Advanced Custom Fields PRO: by Elliot Condon – 5.8.12
    Authorize.net Payment Gateway For WooCommerce: by Eshan Varma – 5.5
    CF7 HubSpot Forms Add-on For Contact Form 7: by Ahmad Karim – 1.0
    Contact Form 7 Mailchimp: by CRM Perks. – 1.0.6
    Classic Editor: by WordPress Contributors – 1.5
    Contact Form 7: by Takayuki Miyoshi – 5.2.1
    Elfsight Instagram Feed CC: by Elfsight – 3.8.6
    Favicon by RealFaviconGenerator: by Philippe Bernard – 1.3.18
    Flamingo: by Takayuki Miyoshi – 2.2
    Fr Custom Payment Gateway Icon for WooCommerce: by Fahri Rusliyadi – 1.0.2 – Installed version not tested with active version of WooCommerce 4.3.1
    GTranslate: by Translate AI Multilingual Solutions – 2.8.57
    Redirection: by John Godley – 4.8
    Safe SVG: by Daryll Doyle – 1.9.9
    SearchWP WooCommerce Integration: by SearchWP – 1.3.2 – Installed version not tested with active version of WooCommerce 4.3.1
    SearchWP: by SearchWP – 4.0.25
    Simple Custom Post Order: by Colorlib – 2.5.0
    WebRotate 360 Product Viewer for WordPress: by WebRotate 360 LLC – 3.2.0
    Woocommerce wishlist: by Enovathemes – 1.0 – Installed version not tested with active version of WooCommerce 4.3.1
    Open Graph and Twitter Card Tags: by Webdados – 3.0.0 – Installed version not tested with active version of WooCommerce 4.3.1
    Advanced Shipment Tracking for WooCommerce: by zorem – 3.0.8
    Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.3
    Variation Images Gallery for WooCommerce: by RadiusTheme – 1.1.22 – Installed version not tested with active version of WooCommerce 4.3.1
    Variation Swatches for WooCommerce - Pro: by Emran Ahmed – 1.0.43 – Installed version not tested with active version of WooCommerce 4.3.1
    Variation Swatches for WooCommerce: by Emran Ahmed – 1.0.85 – Installed version not tested with active version of WooCommerce 4.3.1
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.0.3
    WooCommerce: by Automattic – 4.3.1 (update to version 4.3.3 is available)
    
    ### Inactive Plugins (11) ###
    
    Accelerated Mobile Pages: by Ahmed Kaludi
    Mohammed Kaludi – 1.0.61.2
    
    ACF Content Analysis for Yoast SEO: by Thomas Kr?ftner
    ViktorFroberg
    marol87
    pekz0r
    angrycreative
    Team Yoast – 2.6
    
    Admin Menu Editor: by Janis Elsts – 1.9.5
    Autoptimize: by Frank Goossens (futtta) – 2.7.6
    Cache Enabler: by KeyCDN – 1.3.4
    Contact Form 7 Extension For Mailchimp: by Renzo Johnson – 0.5.20
    Optimus: by KeyCDN – 1.6.0
    Schema: by Hesham – 1.7.8.2
    WP Global Site Tag: by Digital Apps – 1.0.4
    WP Mail SMTP: by WPForms – 2.2.1
    Yoast SEO: by Team Yoast – 14.7
    
    ### Dropin Plugins (1) ###
    
    db.php: Query Monitor Database Class
    
    ### Must Use Plugins (7) ###
    
    Bedrock Autoloader: by Roots – 1.0.0
    Comrade Web Agency Admin Panel: by CWA – 1
    Comrade Web Agency Dashboard: by CWA – 1
    Comrade Web Agency Security: by CWA – 1
    Comrade Web Agency Settings: by CWA – 1
    Disallow Indexing: by Roots – 1.0.0
    Register Theme Directory: by Roots – 1.0.0
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #8 - /shop/
    Cart: #9 - /cart/
    Checkout: #10 - /checkout/
    My account: #11 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: CWA
    Version: 1.0
    Author URL: https://comradeweb.com
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: CWA/woocommerce/cart/cart-empty.php
    CWA/woocommerce/cart/cart-item-data.php
    CWA/woocommerce/cart/cart-shipping.php
    CWA/woocommerce/cart/cart-totals.php
    CWA/woocommerce/cart/cart.php
    CWA/woocommerce/cart/cross-sells.php
    CWA/woocommerce/cart/mini-cart.php
    CWA/woocommerce/cart/proceed-to-checkout-button.php
    CWA/woocommerce/cart/shipping-calculator.php
    CWA/woocommerce/checkout/cart-errors.php
    CWA/woocommerce/checkout/form-billing.php
    CWA/woocommerce/checkout/form-checkout.php
    CWA/woocommerce/checkout/form-coupon.php
    CWA/woocommerce/checkout/form-login.php
    CWA/woocommerce/checkout/form-pay.php
    CWA/woocommerce/checkout/form-shipping.php
    CWA/woocommerce/checkout/order-receipt.php
    CWA/woocommerce/checkout/payment-method.php
    CWA/woocommerce/checkout/payment.php
    CWA/woocommerce/checkout/review-order.php
    CWA/woocommerce/checkout/terms.php
    CWA/woocommerce/checkout/thankyou.php
    CWA/woocommerce/content-product.php
    CWA/woocommerce/content-product_cat.php
    CWA/woocommerce/content-single-product.php
    CWA/woocommerce/global/breadcrumb.php
    CWA/woocommerce/global/form-login.php
    CWA/woocommerce/global/quantity-input.php
    CWA/woocommerce/global/sidebar.php
    CWA/woocommerce/global/wrapper-end.php
    CWA/woocommerce/global/wrapper-start.php
    CWA/woocommerce/myaccount/dashboard.php
    CWA/woocommerce/myaccount/downloads.php
    CWA/woocommerce/myaccount/form-add-payment-method.php
    CWA/woocommerce/myaccount/form-edit-account.php
    CWA/woocommerce/myaccount/form-edit-address.php
    CWA/woocommerce/myaccount/form-login.php
    CWA/woocommerce/myaccount/form-lost-password.php
    CWA/woocommerce/myaccount/form-reset-password.php
    CWA/woocommerce/myaccount/lost-password-confirmation.php
    CWA/woocommerce/myaccount/my-account.php
    CWA/woocommerce/myaccount/my-address.php
    CWA/woocommerce/myaccount/my-downloads.php
    CWA/woocommerce/myaccount/my-orders.php
    CWA/woocommerce/myaccount/navigation.php
    CWA/woocommerce/myaccount/orders.php
    CWA/woocommerce/myaccount/payment-methods.php
    CWA/woocommerce/myaccount/view-order.php
    CWA/woocommerce/order/form-tracking.php
    CWA/woocommerce/order/order-again.php
    CWA/woocommerce/order/order-details-customer.php
    CWA/woocommerce/order/order-details-item.php
    CWA/woocommerce/order/order-details.php
    CWA/woocommerce/order/order-downloads.php
    CWA/woocommerce/order/tracking.php
    CWA/woocommerce/single-product/add-to-cart/external.php
    CWA/woocommerce/single-product/add-to-cart/grouped.php
    CWA/woocommerce/single-product/add-to-cart/simple.php
    CWA/woocommerce/single-product/add-to-cart/variable.php
    CWA/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
    CWA/woocommerce/single-product/add-to-cart/variation.php
    CWA/woocommerce/single-product/meta.php
    CWA/woocommerce/single-product/photoswipe.php
    CWA/woocommerce/single-product/price.php
    CWA/woocommerce/single-product/product-attributes.php
    CWA/woocommerce/single-product/product-image.php
    CWA/woocommerce/single-product/product-thumbnails.php
    CWA/woocommerce/single-product/rating.php
    CWA/woocommerce/single-product/related.php
    CWA/woocommerce/single-product/review-meta.php
    CWA/woocommerce/single-product/review-rating.php
    CWA/woocommerce/single-product/review.php
    CWA/woocommerce/single-product/sale-flash.php
    CWA/woocommerce/single-product/share.php
    CWA/woocommerce/single-product/short-description.php
    CWA/woocommerce/single-product/stock.php
    CWA/woocommerce/single-product/tabs/additional-information.php
    CWA/woocommerce/single-product/tabs/description.php
    CWA/woocommerce/single-product/tabs/tabs.php
    CWA/woocommerce/single-product/title.php
    CWA/woocommerce/single-product/up-sells.php
    CWA/woocommerce/single-product-reviews.php version 3.6.0 is out of date. The core version is 4.3.0
    CWA/woocommerce/single-product.php
    
    Outdated Templates: ?
    					
    					
    						Learn how to update
    
    ### Action Scheduler ###
    
    Complete: 91
    Oldest: 2020-07-18 13:35:01 +0000
    Newest: 2020-08-14 22:17:59 +0000
    
    

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not work authorization in restapi’ is closed to new replies.