مهدی
  • میهمان
  • 21 دی 1403 در 8:57 ب.ظ
Q:

خطای المنتور no route was found matching the URL and request method.

وقتی روی ویرایش صفحه با المنتور کلیک میکنم این پیغام خطا رو نشون میده:

No route was found matching the URL and request method.

وقتی المتور پرو رو غیر فعال میکنم این مشکل بر طرف میشه، علت این خطا چیه؟ و چگونه قابل رفع هست؟

ممنون میشم راهنمایی کنید.

همه پاسخ ها

در حال نمایش 1 پاسخ ( از کل 1)

خدمات وردپرس
  • مدیرکل
  • 21 دی 1403 در 9:10 ب.ظ

در صورتی که با خطای no route was found matching the URL and request method. هنگام ویرایش یک صفحه یا قالب در المنتور مواجه هستید، دلیل آن تلاش المنتور برای اتصال به سایت خود می باشد که به دلایل مختلف می تواند این اتصال برقرار نگردد.

1. ابتدا مطمئن شوید افزونه المنتور پرو را از یک سایت مطمئن خریداری کرده باشید که تغییراتی در پلاگین داده نشده باشد، سپس ورژن المنتور را به نسخه 3.25.10 برگردانید.

2. در صورتی که مشکل شما رفع نشد، کد زیر را به فایل functions.php قالب خود اضافه کنید.

// Prevent Elementor from connecting to my.elementor.com
add_filter('elementor/connect/additional-connect-info', '__return_empty_array');
add_filter('elementor/connect/connect-url', '__return_empty_string');
add_filter('elementor/connect/remote-info-data', '__return_empty_array');

// Handle the base-app.php errors by providing default values
add_filter('elementor/connect/apps/get_client_data', function($client_data) {
    if (is_wp_error($client_data)) {
        return [
            'client_id' => '',
            'auth_secret' => '',
            'redirect_uri' => '',
            'callback' => '',
            'admin_notice' => '',
        ];
    }
    return $client_data;
}, 10, 1);

// Prevent connection attempts entirely without showing error
add_filter('pre_http_request', function($pre, $parsed_args, $url) {
    if (strpos($url, 'my.elementor.com') !== false) {
        // Return a valid response to avoid the error
        return [
            'body' => '',
            'response' => [
                'code' => 200,
            ],
            'headers' => [],
            'cookies' => [],
        ];
    }
    return $pre;
}, 10, 3);

// Disable Elementor Connect Library
add_action('elementor/init', function() {
    if (class_exists('\Elementor\Core\Common\Modules\Connect\Module')) {
        remove_action('elementor/editor/before_enqueue_scripts', [
            \Elementor\Core\Common\Modules\Connect\Module::class,
            'enqueue_connect_scripts'
        ]);
    }
});

// Remove Connect menu item
add_action('admin_menu', function() {
    remove_submenu_page('elementor', 'elementor-connect');
}, 99);

// Disable library sync
add_filter('elementor/api/get_templates/body_args', '__return_empty_array');

// Prevent 404 errors on API routes
add_filter('elementor/api/get_info_data', '__return_empty_array');

// Suppress specific WP_Error notices
add_action('init', function() {
    remove_action('admin_notices', [\Elementor\Core\Common\Modules\Connect\Module::class, 'admin_notice']);
});

اگر افزونه المنتور پرو را از وب سایتی خریداری کرده باشید که در آن تغییرات داده باشند ممکن است مشکل شما حل نشود، سعی کنید از سایت هایی خرید کنید که چیزی را تغییر ندهند.

در حال نمایش 1 پاسخ ( از کل 1)

پاسخ به: خطای المنتور no route was found matching the URL and request method.
اطلاعات شما: