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
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Noman 1 year, 2 months ago.

Assisted by: Noman.

Author Posts
March 16, 2024 at 9:54 pm #15417462

vincentS-12

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!

Screenshot 2024-03-16 at 17.48.15.png
March 17, 2024 at 7:51 am #15417881

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

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.