Skip Navigation

Resolved by author

Resolved in: SmartCrawl 3.8.2

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();
    

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>