• Resolved Tommy

    (@baptistej)


    Hello,

    I’m getting an unknown error configuring the “Other CDN providers” options after entering the CDN url and origin url.

    It happen when using php 8.0, switching to to 7.4 fixed the issue.

    Reporting this issue so it can be fixed in future version.

    • This topic was modified 2 years, 11 months ago by Tommy.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Emre Vona

    (@emrevona)

    thank you so much. I will investigate the problem.

    Plugin Author Emre Vona

    (@emrevona)

    I tested it php8 and I did not get any error. can you tell me your cdn-url please?

    Thread Starter Tommy

    (@baptistej)

    I can’t post my URL here but this is what I found in my errors log file.

    2022/01/29 12:35:03 [error] 624#624: *223504 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /web/public/wp-content/plugins/wp-fastest-cache/inc/cdn.php:371
    Stack trace:
    #0 /web/public/wp-content/plugins/wp-fastest-cache/inc/cdn.php(371): method_exists()
    #1 /web/public/wp-content/plugins/wp-fastest-cache/wpFastestCache.php(547): CdnWPFC::check_url()
    #2 /web/public/wp-includes/class-wp-hook.php(303): WpFastestCache->wpfc_check_url_ajax_request_callback()
    #3 /web/public/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #4 /web/public/wp-includes/plugin.php(470): WP_Hook->do_action()
    #5 /web/public/wp-admin/admin-ajax.php(187): do_action()
    #6 {main}
      thrown in /web/public/wp-content/plugins/wp-fastest-cache/inc/cdn.php on line 371" while reading response header from upstream, client: IP, server: mysite.com, request: "GET /wp-admin/admin-ajax.php?action=wpfc_check_url&url=https%3A%2F%2Fcdn.mysite.com&origin_url=https%3A%2F%2Fmysite.com&type=other&_fs_blog_admin=true HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm-.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/admin.php?page=wpfastestcacheoptions"

    I’m using BunnyCDN.

    • This reply was modified 2 years, 9 months ago by Tommy.
    Plugin Author Emre Vona

    (@emrevona)

    can you disable FastCGI and try please?

    Thread Starter Tommy

    (@baptistej)

    The issue was caused by my CDN provider (Bunny.net), there is an option call “Block Root Path Access”
    This option is blocking the plugin during the configuration and it should be disabled when configuring the plugin. It can be enabled once the plugin is configured.

    Sorry for the confusion, your plugin is actually working.

    Plugin Author Emre Vona

    (@emrevona)

    thank you for your information.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unknown error configuring CDN’ is closed to new replies.