Skip to content Skip to sidebar

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.

Tagged: 

This topic contains 11 replies, has 0 voices.

Last updated by Dražen 3 months, 2 weeks ago.

Assisted by: Dražen.

Author Posts
December 16, 2025 at 9:16 am #17666602

yuG

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

December 16, 2025 at 9:43 am #17666793

yuG

Hi Dražen,

The Product categories edit page can be show once I disable all WPML plugin and add-ons. Please try it.

December 16, 2025 at 9:52 am #17666822

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

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:

- https://wpml.org/fr/faq/provide-supporters-copy-site/

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.

Regards,
Dražen

December 16, 2025 at 9:58 am #17666849

yuG

How to upload the DB backup file?

December 16, 2025 at 10:14 am #17666940

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

No worries — I managed to obtain a copy of the site and deploy it on my local environment.

I’ve checked the issue further but wasn’t able to find a solution, so I’ve escalated it to our 2nd-tier team for additional investigation.

I’ll update you as soon as I have more information.

Regards,
Dražen

December 16, 2025 at 10:39 am #17667091

yuG

Thanks,

I also create one staging site, the one time link for the WordPress admin and FTP credentials is:

hidden link

December 16, 2025 at 10:43 am #17667151

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for that.

I will update when I have more news from our 2nd tier, note it may take a day or two.

Regards,
Drazen

December 16, 2025 at 12:41 pm #17667525

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

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.

Regards,
Dražen

December 16, 2025 at 1:26 pm #17667721

yuG

Okay

December 16, 2025 at 1:32 pm #17667772

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks.

I have done so and deleted the mentioned key. Product > Categories is working now fine.

Kind regards,
Drazen

December 16, 2025 at 1:49 pm #17667893

yuG

Thanks. Excuse me, will there be any negative effects on deleting the mentioned key? What is its function?

December 16, 2025 at 1:54 pm #17667899

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

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.

Regards,
Dražen