wordpress-seo
wordpress-seo copied to clipboard
Inaccurate Internal link count and orphaned content report with WPML
- [x] I've read and understood the contribution guidelines.
- [x] I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened
WPML shows posts that have internal links (absolute links) in them as orphaned.
Note: Previously reported here but didn't have enough information to reproduce.
To Reproduce
Step-by-step reproduction instructions
Starting with a vanilla installation:
- Install and activate Yoast SEO (free)
- Run SEO data optimization
- Install, activate and setup WPML with the OTGS Installer (options below)
- Ignore request to install or activate WPML SEO. (This happens with or without the WPML SEO add-on.)
- Go to Admin >Posts
- Create a new post in an additional language. I selected Italian.
- Add title and one sentence that links to the default Hello World post
- Publish post
- Go to Admin >Posts
- See the outgoing and incoming counts are correct
- Create translation of default Hello World post in same language as the new post above.
- Translate each line by adding the translation in the bottom box and clicking the checkmark above the box
- Click 'Complete'
- Go to Admin >Posts
- Select 'All Languages'
- Edit the new post created above
- Add a link to the translated post.
- Go to Admin >Posts
- Select 'All Languages'
- See wrong counts for incoming. Both are for the default language post instead of 1 for the default and one for the translation.
WPML options
After plugin activation,
- Click 'Register WPML'
- Click 'Get a key for this site'
- Login (creds are in LastPass)
- Choose 'Development site'
- Click continue (twice)
- Copy key and past in local site
- Click 'Register'
- Select the following to install: WPML Multilingual CMS, String Translation, WPML SEO
- Click Download (do not check 'Activate after download')
- Once installed is shown for selected plugins, go to Admin > Plugins > Installed Plugins
- Deactivate OTGS installer
- Activate WPML Multilingual CMS
- Click 'Configure WPML'
- Choose a default language. I selected English.
- Add additional languages. I selected Italian and Spanish.
- Click 'Continue'
- Choose URL format. I selected Language name added as a parameter.
- Enter Site key if you didn't earlier.
- Click 'Continue'
- Select 'Translate What You Choose'
- Click 'Continue'
- Check 'Only myself'.
- Click 'Continue'
- Select 'No, don't send this information and skip compatibility alerts'
- Click 'Continue'
- Click 'Skip' (Improve your site’s translations using helpful plugins)
- Click 'Finish'
Expected results
Accurate link counts
Actual results
Inaccurate link counts
Workaround
In some cases, resetting the SEO data optimization (specifically the internal link counter) will correct the counts but this would have to be done after every content change (add, edit, or delete).
Screenshots, screen recording, code snippet
Taken on different test environments with similar steps but linking at different points or to different posts.
Technical info
Used versions
- Device you are using: Desktop
- Operating system: Win 11
- PHP version: N/A
- WordPress version: 6.3.1
- WordPress Theme: Twenty Twenty-Three v1.2
- Yoast SEO version: 21.1
- Relevant plugins in case of a bug: WPML v4.6.6
Please inform the customer of conversation # 1054377 when this conversation has been closed.
Please inform the customer of conversation # 1092064 when this conversation has been closed.