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
- 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 -
- - - - - - -

Supporter timezone: Pacific/Easter (GMT-06:00)

This topic contains 9 replies, has 2 voices.

Last updated by Ilyes 11 months, 4 weeks ago.

Assisted by: Ilyes.

Author Posts
June 3, 2024 at 1:59 pm #15698113

Adam Laita

Page URL: hidden link

Description: Just this one page translated via WPML shows error viz screen

Fatal error: Uncaught Error: str_contains(): Argument #1 ($haystack) must be of type string, array given
in /www/hosting/filipesmedia.cz/www/wp-includes/blocks.php on line 1409

Tried:
- change php version from 8.1 to 8.0 (now is 8.0 actual)
- rollback to previous 3 versions of ele and ele pro
- apply advices in https://wpml.org/forums/topic/pods-detail-page-gives-server-error/
- turn off all plugins
- reinstall wordpress

June 4, 2024 at 11:44 am #15701825

Adam Laita

Hi Ilyes,

debug is turn on. But file was not generated, i think that there is nothing to write to log.php. May I create credentials for you? Or may I send copy of website?

Thanks

June 4, 2024 at 8:16 pm #15704189

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I would like to ask for temporary access to your test site’s wp-admin and FTP to investigate the issue further.

It is important to note that you should back up your site and database before proceeding, and you can use a plugin like Duplicator for this purpose. Here’s a link to the plugin: http://wordpress.org/plugins/duplicator/

If you do not see the form below, please do not enter your credentials as they will be publicly exposed:

hidden link

For your privacy and security, please ensure that you make your reply a private one.

Best regards,

June 6, 2024 at 9:05 pm #15713363

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Yes, I do see a site security code asking for authorization credentials,

I'm connected from Canada, I do have VPN if I need to connect from another country if necessary,

June 10, 2024 at 6:45 am #15720215

Adam Laita

Yes please, connect from Czech Republic. Thank you.

June 10, 2024 at 2:34 pm #15722710

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

So the closest location I have to Czech Republic is Poland, Austria and Germany on my VPN and for the moment, I get asked for the server credentials like this : hidden link

Not sure if that's part of the location restriction or just a normal site password,

Sorry for the back and forth, but I can't seem to be able to connect,

Best,

June 11, 2024 at 12:28 pm #15726505

Adam Laita

Hi please use

user
guest

And i enable geo location for Canada too.

Thanks.

June 11, 2024 at 8:46 pm #15729004

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I think I found the issue but I need your help to confirm it,

Right now, I created a clone of the SEO page and it is translated in SK : hidden link

I found out that the language code was set as CZ for in stead of SK for Slovak language in English.

So when you initially translated this page, I think the language had a conflict when saving it as CZ.

Long story short, please try deleting the translation of your SEO page COMPLETELY from the trash too and redo the translation.

If that didn't help, then please use the new page i shared as your new SEO page,

Best,

June 14, 2024 at 10:11 am #15739547

Adam Laita

Hi,

I think there is wrong something else. I tried translate a few more pages. Most of them works fine, but some for example hidden link in Slovak lang is broken hidden link

Then i turned off English lang. Tried duplicate Reference page to create again hidden link but still the same hidden link

EDIT: Now i tried rename slug before duplicate new post and it works for now. Then give me few day if client find something more.

Do you have any other ideas?

Thanks

June 14, 2024 at 8:14 pm #15741203

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I suspect there might be a synchronization issue between the parent-child structure between pages, but this will require a little bit more debugging,

I suggest we use the workaround you found for now (edit the slug) and if you get stuck, send me back an email.

I'm here if you need more help 🙂

The topic ‘[Closed] blocks.php on line 1409 – Fatal error: Uncaught Error: str_contains()’ is closed to new replies.