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.

Our next available supporter will start replying to tickets in about 3.81 hours from now. Thank you for your understanding.

This topic contains 5 replies, has 3 voices.

Last updated by Konrad Karpieszuk 4 months ago.

Assigned support staff: Konrad Karpieszuk.

Author Posts
June 17, 2019 at 3:31 pm #4036669

jonasV-7

I am trying to:
Fix all php warnings, notices and errors.
The site get really slow.
When I disable WPML the site works great.

Link to a page where the issue can be seen:
hidden link

I expected to see:
no warnings

Instead, I got:
[17-Jun-2019 15:27:44 UTC] PHP Warning: Illegal offset type in isset or empty in /www/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 247
[17-Jun-2019 15:27:44 UTC] PHP Notice: wpdb::prepare werd verkeerd aangeroepen. De query verwachtte één placeholder, maar er is een array met meerdere placeholders verzonden. Lees <a href="https://codex.wordpress.org/Debugging_in_WordPress">Foutopsporing in WordPress</a> voor meer informatie. (Dit bericht is toegevoegd in versie 4.9.0.) in /www/wp-includes/functions.php on line 4773
[17-Jun-2019 15:27:44 UTC] WordPress databasefout You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 9 bij query SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type
FROM wp_icl_translations wpml_translations
JOIN wp_posts p
ON wpml_translations.element_id = p.ID
AND wpml_translations.element_type = CONCAT('post_', p.post_type)
JOIN wp_icl_translations tridt
ON tridt.element_type = wpml_translations.element_type
AND tridt.trid = wpml_translations.trid
WHERE gemaakt door require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/bird1.91/single-business-home.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_blocks, render_block, WP_Block_Type->render, acf_rendered_block, acf_render_block, include('/themes/bird1.91/blocks/partners.php'), get_field, acf_get_value, apply_filters('acf/load_value'), WP_Hook->apply_filters, _acf_apply_hook_variations, apply_filters_ref_array('acf/load_value/type=gallery'), WP_Hook->apply_filters, WPML_ACF_Attachments->load_translated_attachment, apply_filters('wpml_object_id'), WP_Hook->apply_filters, wpml_object_id_filter, SitePress->get_object_id, WPML_Element_Translation->element_id_in, WPML_Element_Translation->maybe_populate_cache
[17-Jun-2019 15:27:44 UTC] PHP Warning: Illegal offset type in isset or empty in /www/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 257
[17-Jun-2019 15:27:44 UTC] PHP Warning: Illegal offset type in /www/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258
[17-Jun-2019 15:27:44 UTC] PHP Warning: Illegal offset type in isset or empty in /www/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262

June 17, 2019 at 5:46 pm #4037605

Pierre
Supporter

Languages: English (English ) French (Français ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Jonas,

In order to quickly investigate your issue, could you please provide a Duplicator snapshot of your site? (see https://wpml.org/faq/provide-supporters-copy-site/)

Thanks,
Pierre

June 18, 2019 at 5:30 am #4040309

Konrad Karpieszuk
Supporter

Languages: English (English )

Timezone: Europe/Rome (GMT+02:00)

Hello

I am Konrad and I will handle this ticket. Like Pierre said, please share with us your site's duplicator package.

Do you know when exactly those errors appear? After visiting which screen?

June 18, 2019 at 5:31 am #4040425

Konrad Karpieszuk
Supporter

Languages: English (English )

Timezone: Europe/Rome (GMT+02:00)

I am not sure if Pierre marked your next post as private so I am doing so

June 18, 2019 at 12:50 pm #4043911

jonasV-7

Thanks for your replies. Installed duplicator but the site is really big so before sending this I'll follow the advice of switching to the default theme and disable plugins. I'll will come back later ... 😉

June 18, 2019 at 1:17 pm #4043975

Konrad Karpieszuk
Supporter

Languages: English (English )

Timezone: Europe/Rome (GMT+02:00)

ok, I am eager to see the result 🙂

The topic ‘[Closed] Lots of PHP warnings resulting in 504 error’ is closed to new replies.