WordPress Database Error Message

[Closed] WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’] woo_icl_string

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins before reporting tickets – our recent release resolves a few known issue

All of the known issues are documented in https://wpml.org/known-issues/ you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described here https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/

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 8 replies, has 2 voices.

Assigned support staff: Ricardo Alday.

When I move one of my site from staging to localhost. The Db import sometime showing issues. Some time when run the site, showing this error :

Fatal error: Uncaught InvalidArgumentException: String id cannot be empty in C:\Astronef\xampp\htdocs\a2s\wp-content\plugins\wpml-string-translation\classes\filters\db-cache\class-wpml-st-page-translation.php:103 Stack trace: #0 C:\Astronef\xampp\htdocs\a2s\wp-content\plugins\wpml-string-translation\classes\filters\db-cache\class-wpml-st-page-translation.php(44): WPML_ST_Page_Translation->validate_values(‘0’, ‘wpseo_titles’, ‘admin_texts_wps. ‘) #1 C:\Astronef\xampp\htdocs\a2s\wp-content\plugins\wpml-string-translation\classes\filters\db-cache\class-wpml-st-db-translation-retrieve.php(160): WPML_ST_Page_Translation->__construct(‘0’, ‘wpseo_titles’, ‘admin_texts_wps. ‘, ”, false, ”) #2 C:\Astronef\xampp\htdocs\a2s\wp-content\plugins\wpml-string-translation\classes\filters\db-cache\class-wpml-st-db-translation-retrieve.php(139): WPML_ST_DB_Translation_Retrieve->build_translation(Array, ‘wpseo_titles’, ‘admin_texts_wps. ‘, ”) #3 C:\Astronef\xampp\htdocs\a2s\wp-content\plugins\wpml-string-translation\classes\filters\db- in C:\Astronef\xampp\htdocs\a2s\wp-content\plugins\wpml-string-translation\classes\filters\db-cache\class-wpml-st-page-translation.php on line 103

Notice: is_404 was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in C:\Astronef\xampp\htdocs\a2s\wp-includes\functions.php on line 4148

Notice: is_home was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in C:\Astronef\xampp\htdocs\a2s\wp-includes\functions.php on line 4148

WordPress database error: [Duplicate entry ‘0’ for key ‘PRIMARY’]

There was an entry coming at first row of this table woo_icl_strings with ID = 0

Leave a Reply

Your email address will not be published. Required fields are marked *