WPML
Status
Resolved by author
Resolved in
SmartCrawl 3.8.2
Related plugin/theme
SmartCrawl
Topic tags
Compatibility

Overview of the issue

If you are using SmartCrawl plugin and WPML under WordPress 6.4, you won’t be able to open the homepage in secondary languages. Instead, you’ll experience incorrect redirections to the main language homepage and find a similar error on the debug.log:


[09-Nov-2023 19:43:12 UTC] PHP Warning:  Invalid argument supplied for foreach() in .../public/wp-includes/class-wp-hook.php on line 315

Workaround

We are in contact with the author and working together in a definitive solution. In the meantime:

Option 1


If it is possible, please remain in WordPress 6.3.2 until this issue is resolved.

Option 2


Otherwise, please, make sure of having a full backup of your site before proceeding.

  • Open /wp-content/plugins/smartcrawl-seo/includes/core/redirects/class-utils.php file.

  • Look for line 144.

  • Comment out these lines:
    			//$callback_groups = $wp_filter[ $hook_name ]->callbacks;
    			//$wp_filter[ $hook_name ]->remove_all_filters();

All known issues →