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 11 replies, has 2 voices.

Last updated by Radu 3 months, 1 week ago.

Assigned support staff: Radu.

Author Posts
July 4, 2019 at 1:18 pm

simonV-8

Hi

I get the follow warnings:

[04-Jul-2019 12:56:31 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 408
[04-Jul-2019 12:56:31 UTC] PHP Warning: Illegal string offset '' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 12:56:31 UTC] PHP Warning: Illegal string offset 'value' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424

and this is from the debug log file:

[04-Jul-2019 13:13:24 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 408
[04-Jul-2019 13:13:24 UTC] PHP Warning: Illegal string offset '' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 13:13:24 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 13:13:24 UTC] PHP Warning: Illegal string offset 'value' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 13:13:24 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424

since today. Before, we did not have this.

What could the problem be? How can I fix it?

July 4, 2019 at 1:40 pm #4143961

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Simon,

The warning that you are having seems related to custom attribute slug translation.
Can you go to Dashboard → WooCommerce → WooCommerce Multilingual → Attributes to check the custom attribute slugs translation and re-saving them, please? Also, can you attach a link to a page where I can see these warnings? I checked the dashboard area, a couple products in the front-end, but I couldn't see these warnings. Also, did this happen after a certain change to your website? Do you remember adding or editing anything? Any details would help me identify why's this happening.

Thanks,
Radu

July 4, 2019 at 2:15 pm #4144373

simonV-8

Dear Radu

We do not have any custom attributes. As per php error log, it start happens today, after I updated wp-meta-seo plugin.

As they are warnings, I disabled them to display for now. It happens on every page, so far.

Here You find some lines from the debug log file:

[04-Jul-2019 14:06:28 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:06:28 UTC] PHP Warning: Illegal string offset 'value' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:06:28 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:07:04 UTC] PHP Notice: Undefined index: message in /home/easydeto/public_html/wp-content/plugins/wooamoconnector/inc/class-amocrm-api.php on line 94
[04-Jul-2019 14:08:01 UTC] PHP Notice: Undefined index: message in /home/easydeto/public_html/wp-content/plugins/wooamoconnector/inc/class-amocrm-api.php on line 94
[04-Jul-2019 14:08:05 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 408
[04-Jul-2019 14:08:05 UTC] PHP Warning: Illegal string offset '' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:05 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:05 UTC] PHP Warning: Illegal string offset 'value' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:05 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:23 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 408
[04-Jul-2019 14:08:23 UTC] PHP Warning: Illegal string offset '' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:23 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:23 UTC] PHP Warning: Illegal string offset 'value' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:23 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:27 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 408
[04-Jul-2019 14:08:27 UTC] PHP Warning: Illegal string offset '' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:27 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:27 UTC] PHP Warning: Illegal string offset 'value' in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:27 UTC] PHP Notice: Uninitialized string offset: 0 in /home/easydeto/public_html/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php on line 424
[04-Jul-2019 14:08:52 UTC] PHP Notice: Undefined index: message in /home/easydeto/public_html/wp-content/plugins/wooamoconnector/inc/class-amocrm-api.php on line 94

Right now, I not like to display those warning in the front...

Regards,

Simon

July 7, 2019 at 2:03 am #4156609

simonV-8

Dear People from WPML
Dear Radu

I get a bit confused, as I have the feeling, that this support ticked will not get solved. Or do I seen it wrong?

Regards,

Simon

July 9, 2019 at 8:49 am #4168783

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Simon,

We'll take care of this ticket for sure. I just tried to install the WP Meta SEO plugin on my side to see if I can replicate this issue. No warnings are visible on my website.
Can you create a duplicator package for me (as explained here https://wpml.org/faq/provide-supporters-copy-site/) so I can create a copy of your website on my computer and have a closer look at this, please? This way I'll be able to see why's this warning triggered and how we can get it fixed.

Thanks,
Radu

July 9, 2019 at 10:13 am #4169613

simonV-8

Dear Radu

I created an extra user. I am not sure if the duplicator created all files correct.

How can I share everything with secure and privacy?

Regards,

Simon

July 9, 2019 at 12:01 pm #4170399

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Simon,

I set the next reply from this ticket to be private. This way, you'll be able to send me the credentials and they will be visible just to you and me.

Thanks,
Radu

July 9, 2019 at 1:08 pm
July 10, 2019 at 9:13 am #4177651

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Simon,

I just installed the duplicator package on my website but it seems that the plugins and the theme are missing from it. Can you tell me if you excluded them when generating the archive, please? Is there any chance that you could create another archive and leave all the content of your website on it this time, please? I only have 6 posts and 33 pages but no plugins, themes, or media files.

Thanks,
Radu

July 10, 2019 at 9:40 am #4177851

simonV-8

Dear Radu

It seems as the server wont let me create the full package. As You got the login, please try to do it by yourself. Maybe You have an idea how to do it.

I just like to have this problem solved as soon as possible.

Regards,

Simon

July 10, 2019 at 12:15 pm #4180007

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Simon,

I checked the Duplicator section from your website and I could see that a new package is building right now. Are you the one that started it? I want to make sure that this is a package created for my request, so I can download it directly from the dashboard area once it's done.

Thanks,
Radu

July 17, 2019 at 1:05 am #4224595

simonV-8

Dear Radu

Sadly, WPML was not able to help. I mentioned several times, that I can't create a package with the duplicator, cause the server wont let me do it.

I got the mail that You like to close the ticket. Well do close the ticket. It is not the first time WPML could not help... sadly.

I feel dissatisfied with the solutions - or not solutions - I got recently.

Regards,

Simon

July 17, 2019 at 7:40 am #4226691

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Simon,

Closing this ticket with no no conclusion is definitely not my intention. I'll close the ticket once we'll find why are these warnings appearing and what can we do about them.
For now, I just downloaded the latest duplicator package from your website, installed it on my local computer, and made the changes in wp-config.php file to make the warnings be displayed. The only things that I can see on each page is just Notice: get_woocommerce_term_meta is deprecated since version 3.6! Use get_term_meta instead.. I checked different pages, posts, and products. The warnings that you mentioned in your first message are not appearing. Can you give me an example of page where I can see them and, also, tell me if I should do something else in order to see these warnings, please?

Thanks,
Radu

The topic ‘[Closed] I get multiple warnings from /wp-content/plugins/woocommerce-multilingual/inc/cl’ is closed to new replies.