This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing a fatal error when updating product categories in WPML, indicated by an error message about a call to a member function get_id() on an array, we have investigated this issue. Solution: We found that removing the
wpml_notices
entry from the
wp_options
table in your database resolves the issue. This key is used internally by WPML to store admin notices and messages. If it becomes corrupted, it can cause the errors you're seeing. Removing this key will not negatively impact your site, as WPML will recreate it if necessary. If you're comfortable with this approach, you can use a database management tool like Adminer to make this change. If you're unsure about making these changes yourself or if the problem persists, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the issue continues, we highly recommend opening a new support ticket for further assistance. Contact 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.
Background of the issue:
I want to update the product categories, so I click: Products > Categories
Symptoms:
I get this message: Fatal error: Uncaught Error: Call to a member function get_id() on array in /home/welychem/public_html/web/app/plugins/sitepress-multilingual-cms/classes/taxonomy-term-translation/class-wpml-taxonomy-translation-help-notice.php:57 Stack trace: #0 /home/welychem/public_html/web/app/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notice-render.php(398): WPML_Taxonomy_Translation_Help_Notice->should_display_help_notice() #1 /home/welychem/public_html/web/app/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notice-render.php(109): WPML_Notice_Render->is_allowed_by_callback(Object(WPML_Notice)) #2 /home/welychem/public_html/web/app/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notices.php(269): WPML_Notice_Render->must_display_notice(Object(WPML_Notice)) #3 /home/welychem/public_html/web/app/plugins/sitepress-multilingual-cms/classes/notices/class-wpml-notices.php(251): WPML_Notices->must_display_notices() #4 /home/welychem/public_html/web/wp/wp-includes/class-wp-hook.php(341): WPML_Notices->admin_enqueue_scripts('edit-tags.php') #5 /home/welychem/public_html/web/wp/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array) #6 /home/welychem/public_html/web/wp/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #7 /home/welychem/public_html/web/wp/wp-admin/admin-header.php(123): do_action('admin_enqueue_s...', 'edit-tags.php') #8 /home/welychem/public_html/web/wp/wp-admin/edit-tags.php(322): require_once('/home/welychem/...') #9 {main} thrown in /home/welychem/public_html/web/app/plugins/sitepress-multilingual-cms/classes/taxonomy-term-translation/class-wpml-taxonomy-translation-help-notice.php on line 57
There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.
Learn more about troubleshooting WordPress.
Questions:
How can I resolve the fatal error?
The one time link for the WordPress admin and FTP credentials: hidden link
Yes, I have already tried that, which is why I created this ticket so we can investigate further. However, I’m currently unable to create a package because it seems your hosting has certain restrictions, and I cannot create or install the **Duplicator** plugin.
Could you please create a *Duplicator package* for us so we can continue the investigation, following these instructions:
If that’s not possible, you can alternatively share a *database backup*, and we will use that instead.
Another option would be to create a *staging site*, where we can further check what might be causing the issue.
Please let me know how you would like to proceed, as I’m currently unable to continue without a site copy and able to check create a package on your website or install Duplicator PRO plugin.
We’ve identified a potential solution while testing on a local copy of your site.
Specifically, removing the `wpml_notices` entry from the `wp_options` table resolved the issue in our tests.
To proceed, we’d need your confirmation to apply this change on your live site. This would require temporary access to the database, for example by installing a tool such as Adminer (or a similar database management plugin).
Please let us know if you’re okay with us proceeding this way, or if you’d prefer an alternative approach.
This change will not have any negative impact on your site. The entry in question is a database key used internally by WPML to store admin notices and messages shown in the WordPress dashboard (such as update notifications, tips, or warnings).
For some reason, this entry became corrupted, which caused the issue you were experiencing. Removing it resolves the problem, and WPML will automatically recreate it if needed.
Our 2nd-tier team will investigate to determine if there’s a specific reason why this happened and, if necessary, escalate it further as a potential bug.
If you need any additional assistance from the WPML side or have further questions, please feel free to contact us.