Hi,
WPML is only showing part of the available menu options. For example, the String Translation plugin is not showing up in the menu. When trying to navigate directly to it through the plugins, i.e. /wp-admin/admin.php?page=wpml-string-translation/menu/string-translation.php we get the the error "You don't have permission to access this resource".
Neither is there a support menu item for example.
I have deleted and reinstalled the WPML plugins, deactivated all other unnecessery plugins, cleared the htaccess files, but it stays the same.
Thanks!
Thank you for contacting WPML Support. Could you please follow the below steps and see if this resolves your issue:
1. Please take a backup of your site first for safety reasons.
2. Please add the below code to your active theme's functions.php file:
function wpmlsupp_1706_reset_wpml_capabilities() {
if ( function_exists( 'icl_enable_capabilities' ) ) {
icl_enable_capabilities();
}
}
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' );
and visit the the front page once and then you can remove this snippet and see if this resolves your issue.
3. If the issue persists and you are installing WPML for the first time on this site and do not have any translated data yet. So, you may fix this issue by removing WPML and all its data completely from the database.
To do so:
=== Please make sure to take a backup of your site ===
- Please go to WPML >> Support >> Troubleshooting (the link is at the bottom of the support page). >> There, click on “Reset and deactivate WPML” >> then Delete the plugin.
OR
- If you face any issue in accessing WPML >> Support >> Troubleshooting page then please go to *_options database table and delete the ‘icl_sitepress_settings’ entry. This caused WPML to start over with the setup.
- After deleting all WPML data and WPML-related plugins then please install WPML plugins again and I hope now you will not face any issues.
4. If the issue still persists, please enable error reporting on your site to examine the latest error log. To do so, open your ‘wp-config.php’ file and look for ‘define(‘WP_DEBUG’, false);’. Replace it with the following code:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
define( 'SCRIPT_DEBUG', true );
After adding the above code, please try to reload the backend/frontend of your site and also try to activate the WPML plugins, and check if it generates a debug.log file in the wp-content directory. Please share its contents with us.
Thank you
The topic ‘[Closed] WPML not functioning properly – e.g. String translation not showing / no access’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.