[Resolved] showing critical error when installing this plugin in wordpress
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing a critical error on their site after purchasing and attempting to activate WPML. The error persisted even after deactivating all other plugins and switching to the default WordPress theme.
Solution: We identified that the issue was due to corrupted default WordPress tables, specifically missing auto increments in the
wp_users
,
wp_usermeta
, and
wp_options
tables, with many entries having an ID of '0'. We provided a solution that involved running SQL queries to delete the bad data and alter the tables to add the necessary auto increments. The client needed to execute the following queries one by one:
DELETE FROM `wp_users` WHERE `ID` = '0';
ALTER TABLE `wp_users` CHANGE `ID` `ID` bigint unsigned NOT NULL AUTO_INCREMENT FIRST;
DELETE FROM `wp_usermeta` WHERE `umeta_id` = '0';
ALTER TABLE `wp_usermeta` CHANGE `umeta_id` `umeta_id` bigint unsigned NOT NULL AUTO_INCREMENT FIRST;
DELETE FROM `wp_options` WHERE `option_id` = '0';
ALTER TABLE `wp_options` CHANGE `option_id` `option_id` bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
We advised the client to back up their database before making any changes. If the client was not comfortable performing these steps or if the solution did not resolve the issue, we recommended seeking further assistance, as this was beyond the scope of our support.
Please note that this solution might be irrelevant due to being outdated or not applicable to your case. If you're still facing issues, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.
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.
I buy this for my client because they were using this plugin's nulled version and I showing error because of the plugin was outdated. and i buy this and then when I try to install and activate my site jaime-suarez.com showing critical error
I tried by deactivating all plugins and activate this only and still facing the same issue
and then I tried changing the theme to default twenty-twenty-four theme and still facing the same error critical error
I purchased this plugin and now I am not able to use this plugin
Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in C:\xampp\htdocs\jaime\wp-content\plugins\sitepress-multilingual-cms\classes\translation-priorities\class-wpml-tm-translation-priorities.php:100 Stack trace: #0 C:\xampp\htdocs\jaime\wp-content\plugins\sitepress-multilingual-cms\classes\upgrade\commands\class-wpml-tm-upgrade-translation-priorities-for-posts.php(21): WPML_TM_Translation_Priorities::insert_missing_default_terms()
Can you please specify the version of WPML that you upgraded from?
I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Please make sure to update your WPML plugin and add-ons to the latest version, which is 4.6.10. This will ensure you can benefit from the latest bug fixes and improvements.
To check the latest versions, please go to "My Account -> Downloads" on this site. You can find instructions on how to update by following this link: http://wpml.org/faq/install-wpml/.
Once you have installed the latest plugins, please let me know if you are still experiencing the issue. I will also need the FTP access if there is still a problem.
If I need to further debug the problem, I want to ask you about the possibility of replicating your site locally. For this, I'll need to install a "Duplicator" plugin on your site temporarily. This will allow me to create a copy of your site and your content. If you prefer to do it independently, you can provide me with the snapshot and send me the installer file and the zipped package you downloaded.
You can do that and please solve the issue as soon as possible...
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.