[Resolved] Newly created pages are not visible in the Page list.
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing issues with new page creation; once created, the page was not visible in the all pages list. Solution: We resolved the issue by performing the following steps: - Access the site's Database. - Open the
simcollina_icl_translations
table and execute the SQL query:
SELECT * FROM `simcollina_icl_translations` WHERE `translation_id` <= 1;
- If an entry with translation_id = '1' is found, decide to either update this entry to a new ID or remove it. - To update, run the SQL query:
UPDATE `simcollina_icl_translations` SET `translation_id` = [NEW_ID] WHERE `translation_id` = 1;
Replace [NEW_ID] with a non-conflicting value. - Finally, re-apply the AUTO_INCREMENT Attribute with the SQL query:
ALTER TABLE `simcollina_icl_translations` CHANGE `translation_id` `translation_id` BIGINT(20) NOT NULL AUTO_INCREMENT;
If the solution provided here is not relevant to your case, because it might be outdated or not applicable, 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 you still need assistance, please open a new support ticket.
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.
Following our conversation, I've converted the chat into a ticket for further assistance.
I suggest setting up a staging or testing version from your main site to pinpoint the problem. Once the testing site is ready, try to create the page both with the WPML plugin activated and deactivated. If the problem only occurs with WPML active, please share access to the testing site so I can conduct a comprehensive investigation into the issue.
I enabled the private fields for you so that you can securely share the access. The private box looks like this: hidden link
Looking forward to your response and appreciate your cooperation in this matter.
After updating all the tables, only few tables return error "#1062 - ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '1' for key 'PRIMARY'"
These are the tables:
ALTER TABLE `simcollina_icl_mo_files_domains` CHANGE `id` `id` INT(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `simcollina_icl_strings` CHANGE `id` `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `simcollina_icl_string_packages` CHANGE `ID` `ID` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT;
ALTER TABLE `simcollina_icl_translations` CHANGE `translation_id` `translation_id` BIGINT(20) NOT NULL AUTO_INCREMENT;
Good to see that you've identified the root cause of the issue. The error you encountered usually happens if the table already contains an entry with a primary key value of '1'. When you try to add the AUTO_INCREMENT attribute to the primary key column, MySQL tries to resequence the existing entries, but it conflicts with the existing '1'.
However, I'm happy to inform you that I was able to solve the issue with page creation on the Testing site. Here's what you can do to solve the issue.
- Please open the Database of your site.
- Open the "simcollina_icl_translations" table and execute the following SQL query:
SELECT * FROM `simcollina_icl_translations` WHERE `translation_id` <= 1;
- If you find an entry with translation_id = '1', you'll need to decide whether to update this entry to a new ID or remove it.
- If you want to update it Run the following SQL query (ensure the new ID does not conflict with existing IDs):
UPDATE `simcollina_icl_translations` SET `translation_id` = [NEW_ID] WHERE `translation_id` = 1;
Replace [NEW_ID] with a value that doesn't conflict with existing IDs.
- Once done, re-apply the AUTO_INCREMENT Attribute by running the following SQL query:
ALTER TABLE `simcollina_icl_translations` CHANGE `translation_id` `translation_id` BIGINT(20) NOT NULL AUTO_INCREMENT;
These steps should help you resolve the issue with the AUTO_INCREMENT resequencing error. Please feel free to let me know if you need further assistance in this matter. I will be happy to help.
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.