Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Europe/Zagreb (GMT+02:00)

Tagged: 

This topic contains 27 replies, has 2 voices.

Last updated by Bruno Kos 11 months, 4 weeks ago.

Assisted by: Bruno Kos.

Author Posts
January 16, 2024 at 9:07 am #15188502

Ralph Klerk

Hi, the site broke down just now and we've made a copy of the debug log. Hopefully you can spot what is going on with the file at hidden link

January 16, 2024 at 12:31 pm #15189692

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Can you get the value of rewrite_rules?

rewrite_rules.jpg
January 16, 2024 at 1:57 pm #15190380

Ralph Klerk

We didn't make a snapshot of the record, however the rewrite_rules record was the same as the "immobili-di-lusso" rule-set as noted on line 13832. We've verified this by checking all shop pages and the Italian was the only one that worked...

January 17, 2024 at 9:34 am #15193721

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

After analyzing the logs, we still have no solutions of recommendations. We asked our developers for additional ideas, I will keep you posted.

January 19, 2024 at 11:02 am #15204283

Ralph Klerk

Happened again this morning, this time we've managed to make an snapshot of the rewrite_rules option in the database, also we've captured the access logs. See hidden link

If you need FTP access (or something else) please let us know 🙂

January 19, 2024 at 11:07 am #15204293

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Let me send this to our 2nd tier for further checks.

January 19, 2024 at 12:26 pm #15204835

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

What if you try this:

remove_action( 'update_option_wpseo', [ 'WPSEO_Utils', 'clear_rewrites' ] );

So add this to functions.php.

Does it help?

January 19, 2024 at 1:33 pm #15205174

Ralph Klerk

We've applied the code, let's see what happens...

January 19, 2024 at 3:05 pm #15205475

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Ok.

January 23, 2024 at 12:05 pm #15216317

Ralph Klerk

Unfortunately still not working... hidden link

April 8, 2024 at 9:35 am #15493313

Ralph Klerk

Any progress on this issue? Although less frequent, this issue still keeps popping up from time to time...

April 8, 2024 at 12:37 pm #15494154

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Can you please try the following steps to address the issue with the rewrite rules being improperly populated, which may be related to the `WPSEO_Utils > clear_rewrites` method:

1. **Test with Rank Math:** Temporarily run your site with [Rank Math SEO plugin](hidden link) to see if the issue persists. This is to verify if the problem is specifically related to Yoast SEO Premium or a more general issue with your site's setup.

2. **Modify Your Theme's Functions.php File:** To prevent the Yoast SEO Premium plugin from refreshing rewrite rules in a way that might be causing this issue, add the following code to your theme's `functions.php` file. This code removes the action that triggers the `WPSEO_Utils > clear_rewrites` method on shutdown:

add_action( 'init', function() {
    remove_action( 'shutdown', [ 'WPSEO_Utils', 'clear_rewrites' ], 10 );
}, 1 );

Note: This modification is a temporary solution and should be tested thoroughly to ensure it does not cause other issues on your site.

These steps are based on the hypothesis that the issue may be related to Yoast SEO Premium's handling of rewrite rules, as indicated by the logs and the specific hook (`wp_ajax_dismiss_update_premium_notification`) mentioned. Since this problem has not been widely reported by other Yoast SEO Premium users, it may be a unique situation to your site's configuration.

But other than that (this is only a summary on what we noticed before), we have no news to share since we last worked on this, as we are unsure on what is causing this and how to prevent.

April 8, 2024 at 12:50 pm #15494171

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Also try disabling "hidden link" option, so if you have "Strip the category base" enabled, disable it.

The topic ‘[Closed] Woocommerce shop page not working, rewrite_rules in database localized’ is closed to new replies.