Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter jan.mazanek

    (@janmazanek)

    Hello @katereji, thank you for response and accepting the suggestion. I do understand, that there are probably many more changes to be done than I have highlighted. I hope it will need less than “couple of months”… We will see.

    Thank you for taking the performance into account.

    jan.mazanek

    (@janmazanek)

    @dimitrycleantalk I’m working on CleanTalk in parallel on 3 websites:
    1) https://www.llentab.cz/ – where I just manually installed your Version 6.40.1-fix from https://github.com/CleanTalk/wordpress-antispam/releases/download/fix-version/cleantalk-spam-protect.zip to solve https://www.ads-software.com/support/topic/function-apbctcheckaddtocartbyget-should-be-defined-before-used/
    2) https://www.llentab.se/ – where is Version 6.38, and I used this installation while reporting the problem in this ticket (because at this installation wasn’t refreshed the W3TC cache for couple days, but today the cache was refreshed too, so you can’t use it to see the problem at this moment)
    3) https://www.llentab.lt/ – where is Version 6.40

    jan.mazanek

    (@janmazanek)

    Hello @dimitrycleantalk,
    I tried it now. But it probably does NOT solve the problem, even thought it may at first sight seem to solve it.

    After I’ve added to wp-config.php: define(‘APBCT_SET_AJAX_ROUTE_TYPE’, ‘admin_ajax’); I had accessed the URL with testing parameters ?t=1309. This caused that the the server-side cached page was not used. The new HTML page was generated, which differs in values of:
    * var ctPublicFunctions = {“_ajax_nonce”:”fcd42fb3e2″,”_rest_nonce”:”b1ef1393a0″, …no changes futher…
    * var ctPublic = {“_ajax_nonce”:”8b4064fb3b”, …. no changes …, “emailEncoderPassKey”:”3b74e2559112991f4694f6c4c88a39a3″ … no changes …

    The new nonces in “?t=1309” page IMHO caused, that it seems to solve the problem.

    But when I open in browser the server-side cached version of the page, the problem still persists.

    And after I have diff/compare the HTML code of the two entire pages, I see that there are no other changes in the HTML code, that should fix the problem.

    I see in /wp-content/plugins/cleantalk-spam-protect/inc/cleantalk-pluggable.php:1513-1517 that the constant APBCT_SET_AJAX_ROUTE_TYPE forces function apbct_settings__get_ajax_type() to always return ‘rest’/’admin_ajax’ if the constant is set to one of these values. But it seems not to solve the problem.

    Probably you are using https://developer.www.ads-software.com/reference/functions/wp_create_nonce/ which uses https://developer.www.ads-software.com/reference/functions/wp_nonce_tick/ which created nonces that are by default valid for 2 days. Is it so?

    This may be a reason, why define(‘APBCT_SET_AJAX_ROUTE_TYPE’, ‘admin_ajax’); + reseting the HTML/Page cache may seem to solve the problem for 2 days, but in fact the problem remains?

    I do not plan to spend hours on testing of this issue. I would be really pleased, if someone from CleanTalk would test/fix the issue with nonces and many-weeks cached versions of the pages.

    Hello, I’m having the same problem on multiple similar WordPress installations.
    It seems that caching of the HTML code of the URL causes error rest_cookie_invalid_nonce with below copied settings of the CleanTalk Anti-Spam.

    Any advice, please?

    Details:

    At https://pagespeed.web.dev/ is displayd “/wp-json/cleantalk-antispam/v1/apbct_set_important_parameters:1:0
    Failed to load resource: the server responded with a status of 403 (Forbidden)”

    And if directly accessing the https://www … /wp-json/cleantalk-antispam/v1/apbct_set_important_parameters it displays:
    “{“code”:”rest_no_route”,”message”:”Nebyla nalezeno odpov\u00eddaj\u00edc\u00ed spojen\u00ed mezi adresou URL a po\u017eadavkem.”,”data”:{“status”:404}}”

    If the page URL is opened in Chrome with open WebDeveloper toolbar > Network, than I see error “rest_cookie_invalid_nonce”… Full details:
    code: “rest_cookie_invalid_nonce”
    data: {status: 403}
    message: “Kontrola soubor? cookie se nezda?ila”


    The installation uses caching plugin https://www.ads-software.com/plugins/w3-total-cache/.

    If the page cache is flushed, the problem disapears.

    https://cleantalk.org/my/services_templates?product=antispam > Template Options are:


    SpamFireWall:Off
    Anti-Flood:Off
    Anti-Flood Page Views Limit:20
    Anti-Crawler:Off
    Uniq GET option:Off
    Registration Forms:On
    Comments form:On
    Contact forms:On
    forms__flamingo_save_spam:Off
    Custom contact forms:On
    WooCommerce checkout form:Off
    Spam test for registration during checkout:Off
    Check anonymous users when they add new items to the cart:Off
    Test default WordPress search form for spam:Off
    Protect external forms:Off
    Capture buffer:Off
    Protect internal forms:Off
    Disable all comments:Off
    Disable comments for all posts:Off
    Disable comments for all pages:Off
    Disable comments for all media:Off
    BuddyPress Private Messages:Off
    Don’t check trusted user’s comments:On
    Automatically delete spam comments:Off
    Remove links from approved comments:Off
    Show links to check Emails, IPs for spam:On
    Manage comments on public pages:Off
    comments__the_real_person:On
    Hide the “Website” field:Off
    Protect logged in Users:On
    Use AJAX for JavaScript check:Off
    Use static keys for JS check:On
    Check all post data:Off
    Set cookies:Off
    data__bot_detector_enabled:Off
    Add a CleanTalk Pixel to improve IP-detection:2
    Check email before POST request:On
    data__honeypot_field:On
    data__email_decoder:Off
    data__email_decoder_buffer:Off
    data__wc_store_blocked_orders:Off
    exclusions__log_excluded_requests:Off
    URL exclusions:Off
    Use Regular Expression in URL Exclusions:Off
    Field name exclusions:Off
    Use Regular Expression in Field Exclusions:Off
    exclusions__form_signs:Off
    exclusions__bot_detector:Off
    exclusions__bot_detector__form_attributes:Off
    exclusions__bot_detector__form_parent_attributes:Off
    exclusions__bot_detector__form_children_attributes:Off
    Roles which bypass spam test:{“0″:”Administrator”}
    Show statistics in admin bar:Off
    Show All-time counter:Off
    Show 24 hours counter:Off
    SpamFireWall counter:Off
    Send connection reports:Off
    Async JavaScript loading:On
    Store visited URLs:On
    Complete deactivation:Off
    Use WordPress HTTP API:On
    Notify users with selected roles about new approved comments:Off
    Roles:{}
    Show Dashboard Widget:On
    trusted_and_affiliate__shortcode:Off
    trusted_and_affiliate__shortcode_tag:Off
    trusted_and_affiliate__footer:Off
    trusted_and_affiliate__under_forms:Off
    trusted_and_affiliate__add_id:Off
    cleantalk_custom_logo:Off

    Any advice/recommendation, how to change the settings to work with W3TC Page caching (and ideally without Cookies)?

    • This reply was modified 2 months, 1 week ago by jan.mazanek. Reason: Removal of HTML code styling
    Thread Starter jan.mazanek

    (@janmazanek)

    @5starplugins thank you for reply. I do not know how exactly your plugin works, but I can’t see any call to is_feed() in featured_images_in_rss.php.
    Maybe you could simply change line 21 from:
    if ( !function_exists( ‘fifrf_fs’ ) ) {
    to:
    if (is_feed() && !function_exists( ‘fifrf_fs’ ) ) {
    ?

    Or mayby you could move the code from this script to subfolder “includes” and create lightweight featured_images_in_rss.php with content:
    if (is_feed()) {
    include_once(‘includes/name-of-script-containing-the-main-code.php”);
    }

    Thread Starter jan.mazanek

    (@janmazanek)

    @sajjadakbari thank you.

    We will use “Solution 2” (compress SVG on webserver, with this overhead, which IMHO wouldn’t be bigger than determining the dimensions on PHP via Plugin or own code).

    IMHO the best would be to have this implemented in WordPress and retrieve width/height from metadata in once with other image metadata (without the need to read and process SVGZ file on every request).

    Thread Starter jan.mazanek

    (@janmazanek)

    @t-p thank you for your response and advice to use plugin health-check.

    TLTR: Problem persist with Troubleshooting Mode enabled

    I have installed and activated https://www.ads-software.com/plugins/health-check/. It is the only one installed Must-Use plugin.

    I have enabled Troubleshooting Mode. All plugins are disabled, Theme is switched to default “Twenty TwentyVersion: 1.8”

    I have replaced https://…/.htaccess with reduced content:

    # BEGIN WordPress
    # Direktivy (?ádky) mezi "BEGIN WordPress" a "END WordPress" jsou
    # dynamicky generované a měly by byt upravovány pouze pomocí filtr? WordPressu.
    # Ve?keré změny směrnic mezi těmito zna?kami budou p?epsány.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    

    But https://…/wp-admin/widgets.php click on button Update still does not save the changes.

    On click on button “Update”, the requested https://…/wp-json/batch/v1?_locale=user returns:

    HTTP/1.1 403 Forbidden
    Date: Mon, 03 Jan 2022 20:25:44 GMT
    Server: Apache
    Content-Length: 199
    Keep-Alive: timeout=5, max=100
    Connection: Keep-Alive
    Content-Type: text/html; charset=iso-8859-1

    Webserver access.log contains:
    M.y.I.P - - [03/Jan/2022:21:25:44 +0100] "OPTIONS /wp-json/batch/v1?_locale=user HTTP/1.1" 403 581 "https://.../wp-admin/widgets.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" ...:443 [subdomain.ww.cz] 839 5231 34757 + "-" "-"

    Webserver error.log doesn’t contain any records related to subdomain of this installation

    PHP error.log contains:
    #1) Older errors before Widgets Block Editor was disabled by me:
    [03-Jan-2022 12:16:03 UTC] PHP Notice: wp_enqueue_script() was called <strong>incorrectly</strong>. "wp-editor" script should not be enqueued together with the new widgets editor (wp-edit-widgets or wp-customize-widgets). Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 5.8.0.) in /.../wp-includes/functions.php on line 5663

    #2) immediately after it is a new error:
    [03-Jan-2022 20:13:07 UTC] PHP Notice: is_trackback was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in /.../wp-includes/functions.php on line 5663

    I searched “REQUEST_METHOD” through .htaccess and it contains REQUEST_METHOD in W3TC rules:

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^ - [E=W3TC_QUERY_STRING:%{QUERY_STRING}]
        RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.*?&|)file(=[^&]*)?(&.*|)$ [NC]
        RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3]
        RewriteCond %{ENV:W3TC_QUERY_STRING} ^&+$
        RewriteRule ^ - [E=W3TC_QUERY_STRING]
        RewriteCond %{HTTPS} =on
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{SERVER_PORT} =443
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteRule .* - [E=W3TC_ENC:_gzip]
        RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
        RewriteRule .* - [E=W3TC_PREVIEW:_preview]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{ENV:W3TC_QUERY_STRING} =""
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond "%{DOCUMENT_ROOT}/wp-content/.../%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
        RewriteRule .* "/wp-content/.../%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
    <strong>    RewriteCond %{REQUEST_METHOD} !=POST</strong>
        RewriteCond %{ENV:W3TC_QUERY_STRING} =""
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond "%{DOCUMENT_ROOT}/wp-content/.../%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml%{ENV:W3TC_ENC}" -f
        RewriteRule .* "/wp-content/.../%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.xml%{ENV:W3TC_ENC}" [L]
    </IfModule>

    In Chrome DevTools there are these 4xx errors:
    1) 414 Error (Which IMHO is not related to this issue): The Requested URL s length exceeds the capacity limit for this server (this is for “Custom HTML” block with URL long 16kB(!!!). Anonymized URL:
    https://.../wp-admin/widgets.php?legacy-widget-preview[idBase]=custom_html&legacy-widget-preview[instance][encoded]=...&legacy-widget-preview[instance][hash]=...&legacy-widget-preview[instance][raw][title]=&legacy-widget-preview[instance][raw][content]=[fusion_builder_row_inner][fusion_builder_column_inner type="1_1" layout="1_1" background_position="left top" background_color="" border_color="" border_style="solid" spacing="0px" background_image="" background_repeat="no-repeat" padding_top="0" padding_bottom="0" padding_left="0" padding_right="0" margin_top="0" margin_bottom="0" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="large-visibility" center_content="no" last="true" min_height="" hover_type="none" link="" border_sizes_undefined="0" element_content="" first="true" border_position="all" type="1_1"][/fusion_builder_column_inner][fusion_builder_column_inner type="1_1" layout="1_1" background_position="left top" background_color="#f0f0f0" border_color="" border_style="solid" spacing="0px" background_image="" background_repeat="no-repeat" padding_top="40px" padding_bottom="30px" padding_left="5%" padding_right="5%" margin_top="" margin_bottom="" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="small-visibility,medium-visibility,large-visibility" center_content="no" last="true" min_height="" hover_type="none" link="" border_sizes_undefined="0" first="true" border_position="all" type="1_1"][fusion_title title_type="text" rotation_effect="bounceIn" display_time="1200" highlight_effect="circle" loop_animation="off" highlight_width="9" highlight_top_margin="0" before_text="" rotation_text="" highlight_text="" after_text="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id="" content_align_medium="" content_align_small="" content_align="left" size="2" font_size="27px" animated_font_size="" fusion_font_family_title_font="" fusion_font_variant_title_font="" line_height="" letter_spacing="" margin_top_medium="" margin_bottom_medium="" margin_top_small="" margin_bottom_small="" margin_top="" margin_bottom="" margin_top_mobile="" margin_bottom_mobile="" text_color="" animated_text_color="" highlight_color="" style_type="default" sep_color="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset=""]<p>Zpravodaj LLENTAB 2021/01</p>[/fusion_title][fusion_recent_posts layout="thumbnails-on-side" picture_size="fixed" hover_type="liftup" columns="1" number_posts="6" post_status="" offset="0" pull_by="category" cat_slug="ocelove-haly-01-2021" exclude_cats="" tag_slug="" exclude_tags="" thumbnail="yes" title="yes" meta="no" meta_author="no" meta_categories="no" meta_date="no" meta_comments="no" meta_tags="no" content_alignment="" excerpt="no" excerpt_length="13" strip_html="yes" scrolling="pagination" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="MarginBottom0" id="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" /][/fusion_builder_column_inner][fusion_builder_column_inner type="1_1" layout="1_1" background_position="left top" background_color="#f0f0f0" border_color="" border_style="solid" spacing="0px" background_image="" background_repeat="no-repeat" padding_top="20px" padding_bottom="30px" padding_left="5%" padding_right="5%" margin_top="" margin_bottom="" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="small-visibility,medium-visibility,large-visibility" center_content="no" last="true" min_height="" hover_type="none" link="" border_sizes_undefined="0" first="true" border_position="all" type="1_1"][fusion_title title_type="text" rotation_effect="bounceIn" display_time="1200" highlight_effect="circle" loop_animation="off" highlight_width="9" highlight_top_margin="0" before_text="" rotation_text="" highlight_text="" after_text="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id="" content_align_medium="" content_align_small="" content_align="left" size="2" font_size="20px" animated_font_size="" fusion_font_family_title_font="" fusion_font_variant_title_font="" line_height="" letter_spacing="" margin_top_medium="" margin_bottom_medium="" margin_top_small="" margin_bottom_small="" margin_top="" margin_bottom="" margin_top_mobile="" margin_bottom_mobile="" text_color="" animated_text_color="" highlight_color="" style_type="default" sep_color="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset=""]LLENTAB news do emailu[/fusion_title][fusion_text columns="" column_min_width="" column_spacing="" rule_style="default" rule_size="" rule_color="" content_alignment_medium="" content_alignment_small="" content_alignment="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id="" font_size="" fusion_font_family_text_font="" fusion_font_variant_text_font="" line_height="" letter_spacing="" text_color="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset=""]P?ihlaste se k zasílání ob?asníku LLENTAB do emailu:[/fusion_text][fusion_code]...==[/fusion_code][/fusion_builder_column_inner][fusion_builder_column_inner type="1_1" layout="1_1" background_position="left top" background_color="" border_color="" border_style="solid" spacing="0px" background_image="" background_repeat="no-repeat" padding_top="" padding_bottom="" padding_left="" padding_right="" margin_top="-30px" margin_bottom="" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="small-visibility,medium-visibility,large-visibility" center_content="no" last="true" min_height="" hover_type="none" link="" border_sizes_undefined="0" first="true" border_position="all" type="1_1"][fusion_sharing tagline="Sdílejte: " tagline_color="" backgroundcolor="#f0f0f0" title="Sdílejte: " link="" description="" icons_boxed="" icons_boxed_radius="" color_type="" icon_colors="" box_colors="" tooltip_placement="top" pinterest_image="" pinterest_image_id="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" class="" id="" dynamic_params="..." /][/fusion_builder_column_inner][/fusion_builder_row_inner]x&legacy-widget-preview[instance][raw][fusion_display_title]=yes&legacy-widget-preview[instance][raw][fusion_padding_color]=&legacy-widget-preview[instance][raw][fusion_margin]=&legacy-widget-preview[instance][raw][fusion_bg_color]=&legacy-widget-preview[instance][raw][fusion_bg_radius_size]=&legacy-widget-preview[instance][raw][fusion_border_size]=&legacy-widget-preview[instance][raw][fusion_border_style]=solid&legacy-widget-preview[instance][raw][fusion_border_color]=&legacy-widget-preview[instance][raw][fusion_divider_color]=&legacy-widget-preview[instance][raw][fusion_align]=&legacy-widget-preview[instance][raw][fusion_align_mobile]=

    2) 403 Error: Forbidden for OPTIONS request of URL: https://…/wp-json/batch/v1?_locale=user

    Request headers are:

    OPTIONS /wp-json/batch/v1?_locale=user HTTP/1.1
    Host: ...
    Connection: keep-alive
    Pragma: no-cache
    Cache-Control: no-cache
    sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"
    Accept: application/json, */*;q=0.1
    sec-ch-ua-mobile: ?0
    X-WP-Nonce: de22c26b73
    User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
    sec-ch-ua-platform: "Linux"
    Origin: https://...
    Sec-Fetch-Site: same-origin
    Sec-Fetch-Mode: cors
    Sec-Fetch-Dest: empty
    Referer: https://.../wp-admin/widgets.php
    Accept-Encoding: gzip, deflate, br
    Accept-Language: cs-CZ,cs;q=0.9,en;q=0.8
    Cookie: wordpress_test_cookie=WP+Cookie+check; wordpress_apbct_antibot=...; apbct_site_landing_ts=1635945569; ct_timezone=1; ct_checkjs=...; PHPSESSID=...; xxx-user=...; ct_checked_emails=0; _ga=...; _ga_xxx=...; wp-settings-1=editor%3Dtinymce%26libraryContent%3Dbrowse%26imgsize%3Dfull%26post_dfw%3Doff%26posts_list_mode%3Dlist%26align%3Dright%26urlbutton%3Dcustom; wp-settings-time-1=1640104050; privacy_embeds=consent; apbct_site_referer=UNKNOWN; wordpress_logged_in_xxx=...; apbct_visible_fields=0; fusionredux_current_tab=1; ct_check_users__amount=100; ct_paused_users_check=0; ct_has_scrolled=false; apbct_prev_referer=https%3A%2F%2F...%2F; ct_ps_timestamp=1641240755; ct_screen_info=%7B%22fullWidth%22%3A1790%2C%22fullHeight%22%3A18814%2C%22visibleWidth%22%3A1790%2C%22visibleHeight%22%3A2025%7D; apbct_timestamp=1641240755; apbct_page_hits=266; apbct_cookies_test=...; apbct_urls=%7B%22...%5C%2Fxxx-50-years-w126%5C%2F%22%3A%5B1641201328%5D%2C%22...%5C%2F%3Fcustomize_changeset_uuid%3Df3db50cd-6c37-4c1f-b882-911790a78f1e%26customize_theme%3Dtwentytwentyone%26customize_messenger%22%3A%5B1641212069%5D%2C%22...%5C%2Fwp-json%5C%2Fcontact-form-7%5C%2Fv1%5C%2Fcontact-forms%5C%2F9205%5C%2Frefill%22%3A%5B1641212071%2C1641212091%5D%2C%22...%5C%2F%22%3A%5B1641213919%2C1641229979%2C1641240359%2C1641240707%2C1641240753%5D%2C%22...%5C%2Fwp-json%5C%2Fcontact-form-7%5C%2Fv1%5C%2Fcontact-forms%5C%2F10863%5C%2Frefill%22%3A%5B1641213920%2C1641229980%2C1641240362%2C1641240708%2C1641240755%5D%7D; apbct_visible_fields_0=%7B%22visible_fields%22%3A%22s%22%2C%22visible_fields_count%22%3A1%2C%22invisible_fields%22%3A%22%22%2C%22invisible_fields_count%22%3A0%7D; apbct_visible_fields_3=%7B%22visible_fields%22%3A%22location%22%2C%22visible_fields_count%22%3A1%2C%22invisible_fields%22%3A%22category%20order%20process%22%2C%22invisible_fields_count%22%3A3%7D; apbct_visible_fields_4=%7B%22visible_fields%22%3A%22your-name%20your-message%20your-email%20your-phone%22%2C%22visible_fields_count%22%3A4%2C%22invisible_fields%22%3A%22_wpcf7%20_wpcf7_version%20_wpcf7_locale%20_wpcf7_unit_tag%20_wpcf7_container_post%20_wpcf7_posted_data_hash%20ct_checkjs_cf7%22%2C%22invisible_fields_count%22%3A7%7D; ct_mouse_moved=true; wp-health-check-disable-plugins=3ede73e51707105e223651143db1d7f4; ct_fkp_timestamp=1641240761; ct_pointer_data=...

    Please, do you have any suggestion, how to continue, to solve this issue?

    Thread Starter jan.mazanek

    (@janmazanek)

    Please, could you create some monitoring, that will inform you about such a issues?

    I’m closing the issue, but feel free to reopen it.

    Have a nice day,

    Jan

    Thread Starter jan.mazanek

    (@janmazanek)

    Hello,
    I tested the speed again. It is signifficantly better. Thank you.

    At this moment TTFB were:
    1,09s,
    0,7s
    0,94s
    0,9s
    1,3s
    2,1s
    0,78

    I would be pleased, if the plugin developers would change
    /wp-content/plugins/contact-form-7/includes/css/styles.css

    there is relative path in definition of
    div.wpcf7 .ajax-loader {

    background-image: url(‘../../assets/ajax-loader.gif’);

    }

    and this is incorrectly handled with minification made by theme Avada.

    I have reported this to Avada too, because in my case it is embeded within <style id=”fusion-stylesheet-inline-css” type=”text/css”>

    Thread Starter jan.mazanek

    (@janmazanek)

    Hello @vmarko,

    thank you for your answer. I have checked these folders:
    * /wp-content/cache/ – no .htaccess file is there (even after I have added for group the rights to write to directory
    * /wp-content/cache/page_enhanced/.htaccess contains:

    # BEGIN W3TC Page Cache cache
    AddDefaultCharset UTF-8
    <IfModule mod_headers.c>
        Header set Pragma "public"
        Header set Cache-Control "max-age=3600, public"
    </IfModule>
    # END W3TC Page Cache cache

    In which .htaccess file should be the push headers? Could you please paste here the code of it?

    Thread Starter jan.mazanek

    (@janmazanek)

    Thank you. Will be pleased by better background image processing.

    Thread Starter jan.mazanek

    (@janmazanek)

    Thank you for reply. Have a nice day.

    Thread Starter jan.mazanek

    (@janmazanek)

    Hello @vmarko ,

    how relevant is what you wrote?

    W3TC extension Extension_Wpml_Plugin.php contains the needed code, but it is intentionaly executed only for your PRO users:
    public function run() {
    if ( Util_Environment::is_w3tc_pro( $this->_config ) ) {
    add_filter( ‘w3tc_url_to_docroot_filename’,
    array( $this, ‘w3tc_url_to_docroot_filename’ ) );
    }
    }

    This code means, that you know, that it is needed to run this to work with WPML, but you do run this only if installations is PRO.

    Or is there some bug that causes, that for PRO users you execute this needed code, but it still doesn’t work even for PRO users?

    Thread Starter jan.mazanek

    (@janmazanek)

    2 extra points about W3TC and .htaccess:

    1) related: please make sure, that RewriteBase doesn’t include pseudo-directory used by WPML for languages

    2) unrelated: please do not include in .htaccess line with incorrect value “”:
    Header set Referrer-Policy “”

    This might be probably removed or replaced with:
    Header set Referrer-Policy “no-referrer-when-downgrade”

Viewing 15 replies - 1 through 15 (of 21 total)