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 5 replies, has 2 voices.
Last updated by santisH 2 years, 7 months ago.
Assisted by: Alejandro.
Author | Posts |
---|---|
September 3, 2021 at 7:41 pm #9521295 | |
santisH |
Hi there, I've bought and Installed WPML plugin on our websites but when I try to create a new page i get the following fatal error: Fatal error: Uncaught InvalidArgumentException: Argument ID must be numeric and greater than 0. in /home/santis/www/www/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php:29 Stack trace: #0 /home/santis/www/www/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element-factory.php(41): WPML_Translation_Element->__construct(0, Object(SitePress), NULL) #1 /home/santis/www/www/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element-factory.php(33): WPML_Translation_Element_Factory->create_post(0) #2 /home/santis/www/www/wp-content/plugins/wpml-translation-management/classes/words-count/hooks/wpml-tm-word-count-refresh-hooks.php(39): WPML_Translation_Element_Factory->create(0, 'post') #3 /home/santis/www/www/wp-includes/class-wp-hook.php(305): WPML_TM_Word_Count_Refresh_Hooks->refresh_post_word_count(0) #4 /home/santis/www/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array in /home/santis/www/www/wp-content/plugins/sitepress-multilingual-cms/classes/translations/class-wpml-translation-element.php on line 29 |
September 7, 2021 at 2:56 pm #9541225 | |
santisH |
Hi there, as I was advised to create a staging environment to investigate the issue further, I am still getting the error above (please see screenshot attached). This issue is preventing us to create any new page, posts, podcasts, etc... Please, can you advise? |
September 7, 2021 at 3:01 pm #9541251 | |
santisH |
My apologizes, I didn't see your notes Alejandro. We have created our own staging environment. I was wondering if we can work with this staging rather than the one you are suggesting? |
September 7, 2021 at 3:33 pm #9541743 | |
Alejandro Supporter
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Rome (GMT+02:00) |
if you can provide me with access to the WordPress dashboard and FTP, i can certainly check it out and work on yours, it's not a problem. I have enabled the credential fields so you can add them securely. |
September 7, 2021 at 4:15 pm #9541871 | |
Alejandro Supporter
Languages: English (English ) Spanish (Español ) Italian (Italiano ) Timezone: Europe/Rome (GMT+02:00) |
I checked your error log and the problem seems to be the following: WordPress database error Duplicate entry '0' for key 'PRIMARY' for query INSERT INTO `uk5g_actionscheduler_logs` (`action_id`, `message`, `log_date_gmt`, `log_date_local`) VALUES (2367, 'action ignored via WP Cron', '2021-09-07 15:53:55', '2021-09-07 11:53:55') According to this, the problem comes from the following database table: uk5g_actionscheduler_logs, and the problem is that the table is likely missing the autoincrement setting and that results in the actual problem: one entry is trying to use "0" as the ID but that already exists and it fails. Try checking for the "primary" key in all your database tables (it's usually the first column in the database and it's usually an "ID" one) and make sure they are set to be unique and have an auto-increment setting turned on. Regards. |