• Resolved Artel

    (@artel)


    Hello,

    we get the repeated error message:

    List of errors

    An error occurred while connecting to REST API. Please try again.

    Another site has no problems, so it’s a bit of a mystery for me what causes this.

    kind regards,

    Fiona

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @artel,

    Thank you for your message.

    Tell me please, did you read the plugin FAQ before writing here? Please remember to check the FAQ and other threads in the support section before adding a support topic.

    In the FAQ you have at least information about what I need to help you. With little information I can not help you.

    Very often there are answers there. You save your time and our time. We will be very grateful if you appreciate us time and try to find a solution. If you can nott find anything then we will be happy to help you.

    Thread Starter Artel

    (@artel)

    I did read it: Also REST API must be enabled and work without additional restrictions. If you have a problem with it, please contact the Developer who created your website. He should easily find the issue with the REST API not working.

    We have no developer and everything else runs great, so that’s why I started this topic. If you could guide me in the right direction then that would be great.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @artel, please read again the FAQ and give me all the information I need. In the FAQ, as the first question you have a list of data that I need.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Can you edit the functions.php file in your theme?

    Please add the following code in the functions.php file in your theme’s directory:

    add_action('admin_init', function()
    {
      if (!isset($_GET['page']) || ($_GET['page'] !== 'webpc_admin_page')) return;
    
      echo '<pre>';
        print_r([
          'rest_enabled'               => apply_filters('rest_enabled', true) ? '1' : '0',
          'rest_jsonp_enabled'         => apply_filters('rest_jsonp_enabled', true) ? '1' : '0',
          'rest_authentication_errors' => apply_filters('rest_authentication_errors', true) ? '1' : '0',
        ]);
      echo '</pre>';
      exit;
    });

    Then enter the administration panel, the WebP plugin settings page (/wp-admin/options-general.php?page=webpc_admin_page). Tell me please what was displayed to you.

    Thread Starter Artel

    (@artel)

    We contacted the provider and solved it ??

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @artel, can you explain how you did it? Describe it exactly, please. This will help me improve the support process.

    Thread Starter Artel

    (@artel)

    I can’t really tell, it was done by the provider, my guess is that they changed permissions or restrictions ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not possible to connect to REST API’ is closed to new replies.