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
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by julienB-23 5 days, 17 hours ago.

Assisted by: Dražen.

Author Posts
February 1, 2024 at 12:52 pm #15254972

tomB-16

Fatal error: Declaration of MonologLogger::emergency(Stringable|string $message, array $context = []): void must be compatible with PsrLogLoggerInterface::emergency($message, array $context = []) in /Users/tombroucke/Valet/pacificresidences/vendor/monolog/monolog/src/Monolog/Logger.php on line 681

February 1, 2024 at 1:12 pm #15255158

Dražen
Supporter

Languages: English (English )

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

Hello,

you have been inactive for a while so I have converted the chat to the ticket.

Can you please let me know if the issue still happens with the basic starter theme and if it would be possible to share a basic new test site and steps to reproduce this issue with us?

Let me know.

Thanks,
Drazen

February 2, 2024 at 11:23 am #15258791

tomB-16

The problem is that we have dependencies in our site root (thanks to roots/bedrock). roots/acorn requires psr/log (as a subdependency of illuminate/log >monolog/monolog).

So Psr/log v3.0.0 is installed because of our root dependency roots/acorn, but this is conflicting with WPML's psr/log dependency (I assume v2.0.0). Because that older version has no return types in LoggerInterface.php, we get this error.

That's why plugin developers should be wrapping their dependencies in their own namespace.
You can do this using hidden link

See: hidden link

February 2, 2024 at 11:49 am #15258966

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks.

I have checked and this has been already escalated to our devs and is scheduled for WPML 4.7. I have added your ticket to the dev one and will update you when there is some news or release related to this.

Kind regards,
Drazen

February 2, 2024 at 11:56 am #15258971

tomB-16

Thanks for your reply. Looking forward to this release.

January 4, 2025 at 5:19 am #16562807

julienB-23

@tomB-16 Thanks for reporting. I have the exact same issue.
Could you find a fix while we are waiting on WPML 4.7?

Cheers

January 7, 2025 at 7:36 am #16568176

Dražen
Supporter

Languages: English (English )

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

Hello @julienb-23,

I am afraid we do not have any workaround for now, but soon new version should be released.

Also, please if you need any more info or have any other doubts, open a new ticket/chat, as this ticket is escalated to devs status, and we might miss any new replies from 3rd user.

Regards,
Drazen

January 9, 2025 at 4:22 pm #16578871

julienB-23

@Dražen How soon is soon? Because this topic is nearly one year old and I might need to change the whole stack of my project.
Maybe your dev team could come up with a temporary fix until this upgrade happens.