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: Africa/Cairo (GMT+02:00)

This topic contains 1 reply, has 2 voices.

Last updated by Osama Mersal 7 months ago.

Assisted by: Osama Mersal.

Author Posts
April 29, 2024 at 11:12 am #15576697

caterinag-2

HI,

I just updated my website to PHP 8.1 and have a critical error.

The error was caused by the child theme because of the following function.

$max_length = 50;
$name = 'Event tickets - ' . $EM_Ticket->ticket_name;
if (strlen($name) > $max_length) {
$name = substr($name, 0, $max_length);
}
do_action('wpml_register_single_string', 'event-tickets-wpml', $name, $EM_Ticket->ticket_name);
$EM_Ticket->ticket_name = apply_filters('wpml_translate_single_string', $EM_Ticket->ticket_name, 'event-tickets-wpml', $name);

?>

April 29, 2024 at 11:54 am #15576920

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please let us know the EM support team's reply and your findings on the staging site.

Best regards,
Osama

The topic ‘[Closed] Fatal Error after updating PHP’ is closed to new replies.