Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support qtwrk

    (@qtwrk)

    <?php
    require('./wp-load.php');

    use WpOrg\Requests\Autoload;
    use WpOrg\Requests\Requests;
    use WpOrg\Requests\Response;

    if (class_exists('\WpOrg\Requests\Requests') && class_exists('\WpOrg\Requests\Autoload') && version_compare(PHP_VERSION, '5.6.0', '>=')) {
    Autoload::register();

    $complete_action = function($response, $id) {

    var_dump($response);

    };

    $requests = array(
    array('url' => 'https://ams3-worker.quic.cloud/dl/d_6581613/6787d023a874d6.41558869.png.webp', 'type' => 'GET',)
    );

    $options = array(
    'timeout' => 60,
    'connect_timeout' => 60,
    'complete' => $complete_action,
    );

    $responses = Requests::request_multiple($requests, $options);

    } else {
    echo 'No class';
    }

    please create a php file name it like test.php with this code , place it at same dir as your wp-config.php

    then open it in browser like https://your_domain.com/test.php , and share what it returns.

    Thread Starter mitea333

    (@mitea333)

    made it. here is the screenshot https://prnt.sc/_D4Z1FEwsrJS

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Plugin Support qtwrk

    (@qtwrk)

    ehhhh?

    the code should work , I jsut tested again , it should give you 404 error response with a lot of text

    define('WP_DEBUG_DISPLAY', true);
    @ini_set('display_errors', 1);

    please put this after <?php and try again

    Thread Starter mitea333

    (@mitea333)

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/ecstatic/ubudish.com/wp-includes/Requests/src/Transport/Curl.php on line 275

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Plugin Support qtwrk

    (@qtwrk)

    okay, the test script was using wordpress’s built-in requests library to do a http request to our node , it hits timeout , which probably means your provider has blocked the connection to our nodes

    please forward above test script and result to your hositng provider, and see if they have any hint about it

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

The topic ‘Failed to pull image’ is closed to new replies.