• Resolved maherlink

    (@maherlink)


    there’s an error says:

    wp_remote_post() failed. Contact your hosting provider. 403

    I’m using Jpaas Cloud hosting with firewall and quic.cloud cdn

    • This topic was modified 2 years, 3 months ago by maherlink.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter maherlink

    (@maherlink)

    ### WordPress Environment ###

    WordPress address (URL): https://baronpay.ly
    Site address (URL): https://baronpay.ly
    WC Version: 7.1.1
    REST API Version: ? 7.1.1
    WC Blocks Version: ? 8.7.6
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.1.1
    WP Multisite: –
    WP Memory Limit: 384 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: ?

    ### Server Environment ###

    Server Info: LiteSpeed
    PHP Version: 8.0.25
    PHP Post Max Size: 64 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.29.0
    NSS/3.53.1

    SUHOSIN Installed: –
    MySQL Version: 10.10.2-MariaDB
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ? wp_remote_post() failed. Contact your hosting provider. 403
    Remote Get: ?

    ### Database ###

    WC Database Version: 7.1.1
    WC Database Prefix: wp_
    Total Database Size: 10.68MB
    Database Data Size: 8.41MB
    Database Index Size: 2.27MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_litespeed_avatar: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_litespeed_img_optm: Data: 0.14MB + Index: 0.06MB + Engine InnoDB
    wp_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_litespeed_url_file: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_options: Data: 3.05MB + Index: 0.08MB + Engine InnoDB
    wp_postmeta: Data: 1.41MB + Index: 0.28MB + Engine InnoDB
    wp_posts: Data: 2.22MB + Index: 0.13MB + Engine InnoDB
    wp_revslider_css: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides: Data: 0.28MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_termmeta: Data: 0.05MB + 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
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woodmart_wishlists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woodmart_wishlist_products: Data: 0.02MB + Index: 0.02MB + Engine InnoDB

    ### Post Type Counts ###

    attachment: 405
    cms_block: 18
    nav_menu_item: 57
    page: 15
    portfolio: 9
    post: 1
    product: 6
    product_variation: 2
    seedprod: 1
    woodmart_sidebar: 1
    woodmart_size_guide: 1
    woodmart_slide: 1

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (9) ###

    Advanced Database Cleaner PRO: by Younes JFR. – 3.2.1
    Classic Widgets ??????? ?????????: by ?????? ???????? – 0.3
    Code Snippets: by Code Snippets Pro – 3.2.2
    ?????? ??????? WPBakery: by Michael M – WPBakery.com – 6.10.0
    LiteSpeed Cache: by LiteSpeed Technologies – 5.3
    Loco Translate: by Tim Whitlock – 2.6.3
    Slider Revolution: by ThemePunch – 6.6.7
    WooCommerce: by Automattic – 7.1.1
    Woodmart Core: by – 1.0.35

    ### Inactive Plugins (0) ###

    ### Dropin Plugins (1) ###

    object-cache.php: object-cache.php

    ### Settings ###

    API Enabled: –
    Force SSL: –
    Currency: LYD (????? ????)
    Currency Position: left_space
    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: –
    Enforce Approved Product Download Directories: –

    ### WC Pages ###

    Shop base: #14 – /shop/
    Cart: #17 – /cart/
    Checkout: #20 – /checkout/
    My account: #23 – /my-account/
    Terms and conditions: ? Page not set

    ### Theme ###

    Name: Woodmart
    Version: 7.0.4
    Author URL: https://www.roayahost.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: woodmart/woocommerce/archive-product.php
    woodmart/woocommerce/cart/cart-item-data.php
    woodmart/woocommerce/cart/cart.php
    woodmart/woocommerce/cart/cross-sells.php
    woodmart/woocommerce/cart/mini-cart.php
    woodmart/woocommerce/checkout/form-checkout.php
    woodmart/woocommerce/checkout/thankyou.php
    woodmart/woocommerce/content-product-cat.php
    woodmart/woocommerce/content-product.php
    woodmart/woocommerce/content-single-product.php
    woodmart/woocommerce/content-widget-product.php
    woodmart/woocommerce/global/breadcrumb.php
    woodmart/woocommerce/global/form-login.php
    woodmart/woocommerce/global/quantity-input.php
    woodmart/woocommerce/loop/add-to-cart.php
    woodmart/woocommerce/loop/loop-end.php
    woodmart/woocommerce/loop/loop-start.php
    woodmart/woocommerce/loop/no-products-found.php
    woodmart/woocommerce/loop/orderby.php
    woodmart/woocommerce/loop/pagination.php
    woodmart/woocommerce/loop/sale-flash.php
    woodmart/woocommerce/myaccount/form-login.php
    woodmart/woocommerce/product-searchform.php
    woodmart/woocommerce/single-product/add-to-cart/grouped.php
    woodmart/woocommerce/single-product/add-to-cart/variable.php
    woodmart/woocommerce/single-product/meta.php
    woodmart/woocommerce/single-product/product-attributes.php
    woodmart/woocommerce/single-product/product-image.php
    woodmart/woocommerce/single-product/product-thumbnails.php
    woodmart/woocommerce/single-product/rating.php
    woodmart/woocommerce/single-product/related.php
    woodmart/woocommerce/single-product/sale-flash.php
    woodmart/woocommerce/single-product/tabs/description.php
    woodmart/woocommerce/single-product/tabs/tabs.php
    woodmart/woocommerce/single-product/title.php
    woodmart/woocommerce/single-product/up-sells.php
    woodmart/woocommerce/single-product.php

    ### Admin ###

    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page

    Disabled Features: minified-js
    new-product-management-experience
    settings

    Daily Cron: ? Next scheduled: 2022-12-09 12:01:21 +02:00
    Options: ?
    Notes: 37
    Onboarding: completed

    ### Action Scheduler ###

    Complete: 42
    Oldest: 2022-12-08 14:24:35 +0200
    Newest: 2022-12-08 16:07:43 +0200

    Pending: 1
    Oldest: 2022-12-09 14:24:35 +0200
    Newest: 2022-12-09 14:24:35 +0200

    ### Status report information ###

    Generated at: 2022-12-08 16:08:29 +02:00
    `

    Anonymous User

    (@anonymized-20801613)

    Can you please check if allow_url_fopen is turned on at your host provider? Thank you.

    Thread Starter maherlink

    (@maherlink)

    ; Whether to allow the treatment of URLs (like https:// or ftp://) as files.
    ; https://php.net/allow-url-fopen
    allow_url_fopen = On

    ; Whether to allow include/require to open URLs (like https:// or ftp://) as files.
    ; https://php.net/allow-url-include
    allow_url_include = Off

    Thread Starter maherlink

    (@maherlink)

    it is looks related to PayPal
    help tip saying that
    I do not use PayPal plugin

    • This reply was modified 2 years, 3 months ago by maherlink.
    Anonymous User

    (@anonymized-20801613)

    From the source code:

    <tr>
    			<td data-export-label="fsockopen/cURL"><?php esc_html_e( 'fsockopen/cURL', 'woocommerce' ); ?>:</td>
    			<td class="help"><?php echo wc_help_tip( esc_html__( 'Payment gateways can use cURL to communicate with remote servers to authorize payments, other plugins may also use it when communicating with remote services.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td>
    			<td>
    				<?php
    				if ( $environment['fsockopen_or_curl_enabled'] ) {
    					echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
    				} else {
    					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Your server does not have fsockopen or cURL enabled - PayPal IPN and other scripts which communicate with other servers will not work. Contact your hosting provider.', 'woocommerce' ) . '</mark>';
    				}
    				?>
    			</td>
    		</tr>

    URL to gitHub:
    https://github.com/woocommerce/woocommerce/blob/082f318da47b78497f7e2ba754757369ef706499/plugins/woocommerce/includes/admin/views/html-admin-page-status-report.php

    … although your server says:
    cURL Version: 7.29.0

    <td class=”help”><?php echo wc_help_tip( esc_html__( ‘PayPal uses this method of communicating when sending back transaction information.’, ‘woocommerce’ ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td>

    — looks like you will have to contact your hosting provider why wp_remote_post failed.

    Anonymous User

    (@anonymized-20801613)

    This is the part of the code where you message appear:

    <tr>
    			<td data-export-label="Remote Post"><?php esc_html_e( 'Remote post', 'woocommerce' ); ?>:</td>
    			<td class="help"><?php echo wc_help_tip( esc_html__( 'PayPal uses this method of communicating when sending back transaction information.', 'woocommerce' ) ); /* phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped */ ?></td>
    			<td>
    				<?php
    				if ( $environment['remote_post_successful'] ) {
    					echo '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>';
    				} else {
    					/* Translators: %s: function name. */
    					echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( esc_html__( '%s failed. Contact your hosting provider.', 'woocommerce' ), 'wp_remote_post()' ) . ' ' . esc_html( $environment['remote_post_response'] ) . '</mark>';
    				}
    				?>
    			</td>
    		</tr>

    Hi there @maherlink ??

    there’s an error says:

    wp_remote_post() failed. Contact your hosting provider. 403

    I’m using Jpaas Cloud hosting with firewall and quic.cloud cdn

    Thanks for reaching out, let’s figure out why things are not lining up!

    Just to note, PayPal is an example for using the Remote Post functionality. Feel free to check out this WordPress Developer resource page for more on Remote Post.

    Kindly get in touch with the site’s hosting provider, with a request to enable Remote Post.

    Let us know how that goes!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘wp_remote_post() test back to this server failed” error’ is closed to new replies.