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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 10 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
February 23, 2023 at 5:14 pm #13102199

steveK-13

Hi,

Uploaded OTSG Installer, but then i download WPML Multilingual CMS, site crash, error message:

There has been a critical error on this website. Please check your site admin email inbox for instructions. Learn more about troubleshooting WordPress.

Checked forum, but no help

hidden link pw to view site: ******

February 24, 2023 at 10:19 am #13106943

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting the support.

This might be due to an incomplete or corrupted plugin files during the installation. You can skip the OTGS Installer and try other methods, consider followings:

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

To update all WPML plugins to latest versions, you can try this by going to Plugins -> Add New -> Commercial -> Check for updates or manually downloading from https://wpml.org/account/downloads/ and uploading via Plugins -> Add New -> Upload.

Steps to update plugins manually from Plugins page:

1) Deactivate existing WPML plugins
2) Delete WPML plugins
3) Download latest versions from https://wpml.org/account/downloads/
4) Upload using Plugins -> Add New -> Upload
5) Activate

Steps to update plugins manually via FTP:

1) Deactivate existing WPML plugins.
2) Connect to your site via FTP and browse to the /wp-content/plugins/ folder.
3) Delete WPML plugins folders.
4) Download the latest versions from https://wpml.org/account/downloads/.
5) Unzip the downloaded files in separate folders, usually when you unzip the file, it creates a folder with the name of the plugin, with zip file's content extracted into it.
6) Upload the extracted (unzipped) folder via FTP, to the /wp-content/plugins/ folder.
7) Go to WP Admin -> Plugins and Activate.

Please let me know if this helps resolve the issue. Or I'll try my best to further assist you on the matter.

Regards.

February 24, 2023 at 12:54 pm #13108463

steveK-13

Hi,

Dit it:

1) Deactivated WPML plugins
2) Deleted WPML plugins
3) Downloaded latest versions
4) Uploaded using Plugins -> Add New -> Upload
5) Activated and site crashed

Then did it again, but now used unzipped version and uploaded via Filezilla, but serror message. Can you check?

To make site work again, changed the folder name and without WPML all works fine.

Regards,
Steve

February 27, 2023 at 9:42 am #13121137

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for the updates.

May I ask for admin access to your website to check the issue in detail? You can create a separate admin user for this purpose, which can be deleted afterwards.

Also provide following detail to investigate/observe the issue:

- detailed steps to reproduce the issue
- links to pages in admin and on frontend
- screenshots or screen recording if needed to explain
- any other relevant information to observe/investigate the issue

Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site, which may cause conflicts with the live site otherwise. Please confirm it in your next reply or let me know if you do not agree with the mentioned.

I've set your next reply as private to share this information safely.

IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Before continuing on the site, I'll also need your confirmation and approval on each of the followings:

1) Is this a Live/Production or Staging/Dev site?
2) Is it OK to work on this site?
3) Is it OK to try some changes/fixes on the site and/or activate/deactivate/install a plugin on the site, which may cause conflicts with the other parts of the site?
4) Have you taken full backup of your website and database?

Please confirm, thanks.

February 27, 2023 at 12:55 pm #13124515

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for providing the details, access and confirmations.

I am working on this and 'll get back to you as soon as I find something or have a solution.

Regards.

February 28, 2023 at 7:00 am #13131391

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Thank you for your patience and cooperation on this.

Looks like there was some taxonomies translation entries were corrupted in the database. See this errata https://wpml.org/errata/fatal-error-invalidargumentexception-element_id-and-type-do-not-match/.

I followed the steps by using phpMyAdmin plugin because WPML wasn't able to activate and removed "tax_category" element_type for value 2 which was pointed in the following error after enabling the debugging (See https://wpml.org/documentation/support/debugging-wpml/ for details):

PHP Fatal error: Uncaught InvalidArgumentException: element_id and type do not match for element_id:2 the database contains tax_category while this function was called with tax_nav_menu in /.../wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php:34
Stack trace:
#0 /.../wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(1523): WPML_Set_Language->set('2', 'tax_nav_menu', NULL, 'et', NULL, true)
#1 /.../wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(203): SitePress->set_element_language_details('2', 'tax_nav_menu', NULL, 'et')
#2 /.../wp-content/plugins/sitepress-multilingual-cms/inc/wp-nav-menus/class-wpml-nav-menu.php(85): WPML_Nav_Menu->_set_menus_language()
#3 /... in /.../wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-set-language.php on line 34

Then activated WPML and followed the steps mentioned in the errata (from Troubleshooting page).

After that I've reactivated the plugins and theme as these were at the time of my first login to the site.

Additionally, I've added following code in wp-config.php file to increase the WP Memory Limit:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

WPML requires a memory limit of at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information.

The issue is resolved now, please check and confirm.

Regards.