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.

This topic contains 12 replies, has 2 voices.

Last updated by Eran Helzer 1 year, 11 months ago.

Assisted by: Eran Helzer.

Author Posts
July 18, 2023 at 9:47 am #14057003

danM-2

I am trying to:

Override the site key in the database using a constant defined in my Bedrock configuration

Link to a page where the issue can be seen:

See screenshot, and see debug info attached

I expected to see:

The site_key defined in my Bedrock production.php config

// This should override the site key that was copied from the staging DB
Config::define('OTGS_INSTALLER_SITE_KEY_WPML', 'xxxxxxxxxx');

Instead, I got:

The site_key from the database.

Note that I am using Bedrock and so do not have access to add new plugin > commercial from the dashboard

2023-07-18_10h46_28.png
July 18, 2023 at 11:56 am #14058995

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Are you sure it is using the site key from the database? From the error message it looks like the value set in the constant is incorrect.

Please send here the value you are setting in the constant, and the one you have in the database so I can check.

Your next reply is private.

July 18, 2023 at 12:36 pm #14059197

danM-2

// This should override the site key that was copied from the staging DB
Config::define('OTGS_INSTALLER_SITE_KEY_WPML', 'qctP7mZkie');

If you tell me which fields to check in the DB then I will, but I am going off the fact that the debug info on the WPML support page shows:

"site_key":"8XNjS7Yvpp"

July 18, 2023 at 1:43 pm #14059767

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Okay, I understand.

I would like to request admin access to your site, in order to take a look for myself.

I have set your next reply to be private so you can share credentials there.
Remember that it is always better to create a new admin user for me, then when we are done you can delete it.

July 18, 2023 at 1:47 pm #14059827

danM-2

Hi there - sure:

[Removed]

(There is no FTP access to the server for anyone, and theme and plugin files cannot be edited from the dashboard.)

Thanks,

Dan.

July 18, 2023 at 1:57 pm #14059885

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Your message wasn't private so I removed the credentials.

Please send them again.

July 19, 2023 at 5:11 am #14062501

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

I see that you have not completed the migration wizard yet.

Please do. You can see it is the only content displayed in WPML -> Translation Management. If you are not sure of what the options are, please make sure to read our documentation here:
https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/using-advanced-translation-editor-when-you-move-or-use-a-copy-of-your-site/

July 19, 2023 at 8:31 am #14063469

danM-2

I have completed that step. The problem remains (see screenshot).

2023-07-19_09h30_21.png
July 19, 2023 at 11:19 am #14065671

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Okay, so what I see is this.

The sitekey you are using is registered in a domain with two issues:
- The protocol is HTTP and not HTTPS
- The sitekey is missing a "/wp" suffix

Please try this:
- Remove the current sitekey
- Create a new one, with this URL "hidden link"
- Register the site with that URL

July 19, 2023 at 11:41 am #14065793

danM-2

Hi thanks - can you provide more specific instructions please:

Remove the current sitekey - Do you mean remove the site key from our WordPress config, or from the WPML sites dashboard? https://wpml.org/account/sites/

Create a new one, with this URL "hidden link" - I assume this means from the WPML sites dashboard? https://wpml.org/account/sites/

Register the site with that URL - How exactly do we do that? Remembering that we are using Bedrock and so do not have access to add new plugin > commercial from the WordPress dashboard.

July 19, 2023 at 11:49 am #14065831

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Yes, I apologize if I was confusing.

Steps to take:
- Yes, remove sitekey from your account page
https://wpml.org/account/sites/
- Correct, register a new site with this domain "hidden link" in your wpml.org account
https://wpml.org/account/sites/
- Use the new sitekey with the "OTGS_INSTALLER_SITE_KEY_WPML" constant, the same as you do now just with the new sitekey

July 19, 2023 at 2:47 pm #14067159

danM-2

Hi thanks I have done that and now I do not see the error, however in the WPML debug information it still shows the old key - is that a problem?

July 19, 2023 at 4:15 pm #14067641

Eran Helzer
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Shouldn't be a problem. I know of other cases where the value displayed there was incorrect.

So long as you don't see any errors in WPML -> Support -> Installer Support -> Installer Support, that means the registration is correct.