Skip to content Skip to sidebar

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.

This topic contains 2 replies, has 2 voices.

Last updated by gasparC 4 years, 7 months ago.

Assisted by: Alejandro.

Author Posts
April 11, 2021 at 8:19 pm #8511609

gasparC

Hi there,

I installed wpml in a new site I'm running but I couldn't activate the Multilingual CMS plugin and I got that error "CREATE command denied to user" with the following info:
www/wp-content/plugins/sitepress-multilingual-cms/inc/setup/sitepress-schema.php on line 368

Already talked to my hosting provider and there is no problem with my permission to create and modify tables in DDBB. The assistant told me that "Yoast" plugin might be related but I don't have enough knowledge to solve this alone. Already tried to deactivate yoast plugin but it didn't work.

I can't obtain the debug info, I didn't make it that far 🙂
Could you please provide some assistance on this matter?

Much appreciated

Gaspar

April 12, 2021 at 9:41 am #8515677

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hi there,

1) Please ask the user to send you a screenshot of the privileges of the user that is used on that database and send it to us. all the privileges should be enabled for that user (it's a WordPress requirement, not a WPML one).

2) Also ask if by any chance there's a server-side cache enabled on your site and if there is , please flush it

3) Add this code in your active theme's functions.php:

	
//WPML -> PERMISSION -> RESTORE - RESET
// THIS performs a reset on icl capabilities (run once in  functions.php ):
// TO BE USED WHEN SOME WPML MENU IS NOT PRESENT OR AUTHORIZATION IS REQUIRED
// YOU CAN ALSO TRY to manually update "_wpml_inactive" in database to 0.

function wpmlsupp_1706_reset_wpml_capabilities() {
    if ( function_exists( 'icl_enable_capabilities' ) ) {
        icl_enable_capabilities();
    }
}
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' );

Then refresh your back-end (site.com/wp-admin) and front-end (site.com).

Check if the problem is solved now and let me know how it goes.

April 12, 2021 at 10:14 am #8515909

gasparC

Thank you so much Alejandro. Turns out that one of a secondary user I created for my ftp account didn't have all the permissions to write, create, etc.

Thank you and Have a good day!