Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 8 replies, has 2 voices.

Last updated by Andreas W. 5 days, 14 hours ago.

Assisted by: Andreas W..

Author Posts
October 29, 2024 at 3:04 pm #16343131

marcelV-19

Background of the issue:
I am trying to see an order on the page: hidden link.

Symptoms:
I encountered an 'Uncaught error' instead of seeing the order.

Questions:
What could cause an 'Uncaught error' when trying to view an order?
How can I resolve the error to view the order?

October 29, 2024 at 3:06 pm #16343167

marcelV-19

Fatal error: Uncaught Error: Call to a member function get_attributes() on bool in /home/sebraspo/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php:273 Stack trace: #0 /home/sebraspo/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php(295): WCML_Orders->get_attribute_options(NULL, 'pa_maat') #1 /home/sebraspo/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php(216): WCML_Orders->update_attribute_item_meta_value(Object(WC_Order_Item_Product), 78610) #2 /home/sebraspo/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php(154): WCML_Orders->adjust_variation_item_if_translated(Object(WC_Order_Item_Product), 'nl') #3 /home/sebraspo/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php(121): WCML_Orders->adjust_order_item_in_language(Array, 'nl') #4 /home/sebraspo/public_html/wp-includes/class-wp-hook.php(326): WCML_Orders->woocommerce_order_get_items(Array, Object(Automattic\WooCom in /home/sebraspo/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-orders.php on line 273

I get this error when looking at an order that comes from outside my main country (The Netherlands) and it's gone when I turn off the WPML String Translation plugin

October 29, 2024 at 11:31 pm #16344427

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The error indicates that the product attribute "pa_maat" was not able to be found for the purchased product.

The translations for these attribute slugs are saved on WPML String Translation and this is why you are getting the error.

Could it be that a global product attribute was removed from the site after the problematic order was made?

IMPORTANT:
It seems that the minimum requirements are not met on the server:
https://wpml.org/en/home/minimum-requirements/

Could you please increase the WordPress memory limit (WP Memory Limit) to at least 256 MB? WPML requires at least 128M.

Your current values ​​are:

PHP MemoryLimit 2000M

WP Memory Limit 40M

You need to connect to your website's server and open the wp-config.php file in a text editor. The file is located in the WordPress root directory.

Add this code to the wp-config.php file to increase WordPress memory:

define ('WP_MEMORY_LIMIT', '256M');

Add this just before this comment:

// That's all, stop editing! Happy blogging.

The current values ​​can be viewed under WPML > Support > WordPress.

These settings can be restricted directly by your hosting provider. Therefore, I recommend contacting them and asking them to change them directly if the changes are not applied immediately.

Best regards
Andreas

October 30, 2024 at 4:27 pm #16348412

marcelV-19

Hi Andreas,

Thank you for your reply. I put define ('WP_MEMORY_LIMIT', '256M'); in the WP-config.php

I am not sure about the attribute being removed or not, what can I do to fix the issue now? Do I have to add it again or is there a workaround?

Kind Regards,
Bas

October 30, 2024 at 5:10 pm #16348662

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Yes, usually the proper fix would be to recreate the global attribute 'pa_maat'.

Do you recall that such attribute had been removed from the site?

November 5, 2024 at 4:27 pm #16368123

marcelV-19

Hi Andreas,

Where can I find that. I've looked at my product attributes and 'Maat' is still there.

How can I fix this?

Screenshot 2024-11-05 172702.png
November 5, 2024 at 6:15 pm #16368718

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

It might be that one of the items was altered or deleted.

I would need to take a closer look into the database to get more details about this.

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

November 8, 2024 at 4:33 pm #16382915

marcelV-19

here is the screenshot

Screenshot 2024-11-08 173203.jpg
November 8, 2024 at 6:53 pm #16383262

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Checking this attribute on WCML I found an empty table.

See screenshot.

I was able to solve this issue using the WPML troubleshooting options at WPML > Support > Troubleshooting.

Also, for some reason at WPML > Settings > Post Type translation the "Variaties (product_variation)" were using the fallback setting. I have adjusted this now, as this setting is not recommended.

maat.jpg