Salta la navigazione

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Sun Mon Tue Wed Thu Fri Sat
- 11:00 – 15:00 11:00 – 15:00 11:00 – 15:00 11:00 – 15:00 11:00 – 15:00 -
- 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 -

Fuso orario del supporto: Europe/Rome (GMT+02:00)

Questo ticket contiene 1 risposta, ha 2 voci.

Ultimo aggiornamento da Laura 1 anno, 7 mese fa.

Assistito da: Laura.

Autore Post
Novembre 30, 2023 alle 10:52 am #14961063

claudioB-14

ERROR_LOG_PHP

I Found the following error:

[30-Nov-2023 09:35:07 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''attachment' AND p.post_status = 'inherit' )
)
) = 0 ) )
' at line 22 for query
SELECT SQL_CALC_FOUND_ROWS nwp_posts.ID
FROM nwp_posts JOIN nwp_icl_translations wpml_translations
ON nwp_posts.ID = wpml_translations.element_id
AND wpml_translations.element_type = CONCAT('post_', nwp_posts.post_type) LEFT JOIN nwp_postmeta jetsearch ON nwp_posts.ID = jetsearch.post_id
WHERE 1=1 AND (((nwp_posts.post_title LIKE '%Modifica%') OR (nwp_posts.post_excerpt LIKE '%Modifica%') OR (nwp_posts.post_content LIKE '%Modifica%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_descrizione' AND jetsearch.meta_value LIKE '%Modifica%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_autore' AND jetsearch.meta_value LIKE '%Modifica%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_file_allegat' AND jetsearch.meta_value LIKE '%Modifica%')) AND ((nwp_posts.post_title LIKE '%della%') OR (nwp_posts.post_excerpt LIKE '%della%') OR (nwp_posts.post_content LIKE '%della%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_descrizione' AND jetsearch.meta_value LIKE '%della%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_autore' AND jetsearch.meta_value LIKE '%della%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_file_allegat' AND jetsearch.meta_value LIKE '%della%') OR (nwp_posts.post_content REGEXP '\\[table idLIKE(["\']?)(2%4%5)([\]"\' /])')) AND ((nwp_posts.post_title LIKE '%clausola%') OR (nwp_posts.post_excerpt LIKE '%clausola%') OR (nwp_posts.post_content LIKE '%clausola%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_descrizione' AND jetsearch.meta_value LIKE '%clausola%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_autore' AND jetsearch.meta_value LIKE '%clausola%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_file_allegat' AND jetsearch.meta_value LIKE '%clausola%')) AND ((nwp_posts.post_title LIKE '%chiusura%') OR (nwp_posts.post_excerpt LIKE '%chiusura%') OR (nwp_posts.post_content LIKE '%chiusura%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_descrizione' AND jetsearch.meta_value LIKE '%chiusura%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_autore' AND jetsearch.meta_value LIKE '%chiusura%') OR (jetsearch.meta_key = 'wpcf-ufficio_studi_file_allegat' AND jetsearch.meta_value LIKE '%chiusura%')) AND ((nwp_posts.post_title LIKE '%dell\'esercizio%') OR (nwp_posts.post_excerpt LIKE '%dell\'esercizio%') OR (nwp_posts.post_content LIKE '%dell\'esercizio%'))) AND (nwp_posts.post_password = '') AND nwp_posts.post_type = 'ufficio_studi' AND ((nwp_posts.post_status = 'publish')) AND ( ( ( wpml_translations.language_code = 'it' OR (
wpml_translations.language_code = 'it'
AND nwp_posts.post_type IN ( 'post','page','custom_css','customize_changeset','oembed_cache','user_request','e-landing-page','elementor_library','elementor_snippet','view-template','allegati-2','archivio_info_l','famiglia_file_g','gen_group_corre','gen_info_accord','question_answer','famiglia','ufficio_studi','notariato','notaio','casa','impresa','wpa-helper','elementor_font','elementor_icons' )
AND ( (
( SELECT COUNT(element_id)
FROM nwp_icl_translations
WHERE trid = wpml_translations.trid
AND language_code = 'it'
) = 0
) OR (
( SELECT COUNT(element_id)
FROM nwp_icl_translations t2
JOIN nwp_posts p ON p.id = t2.element_id
WHERE t2.trid = wpml_translations.trid
AND t2.language_code = 'it'
AND (
p.post_status = 'publish' OR p.post_status = 'private' OR
( p.post_typeLIKE'attachment' AND p.post_status = 'inherit' )
)
) = 0 ) )
) ) AND nwp_posts.post_type IN ('post','page','attachment','custom_css','customize_changeset','oembed_cache','user_request','wp_block','wp_template','wp_template_part','wp_navigation','e-landing-page','elementor_library','elementor_snippet','view-template','allegati-2','archivio_info_l','famiglia_file_g','gen_group_corre','gen_info_accord','news_group_corr','news_group_file','news_group_link','question_answer','famiglia','rassegna_stampa','ufficio_studi','news','notariato','notaio','casa','impresa','wpa-helper','jet-smart-filters','elementor_font','elementor_icons' ) ) OR nwp_posts.post_type NOT IN ('post','page','attachment','custom_css','customize_changeset','oembed_cache','user_request','wp_block','wp_template','wp_template_part','wp_navigation','e-landing-page','elementor_library','elementor_snippet','view-template','allegati-2','archivio_info_l','famiglia_file_g','gen_group_corre','gen_info_accord','news_group_corr','news_group_file','news_group_link','question_answer','famiglia','rassegna_stampa','ufficio_studi','news','notariato','notaio','casa','impresa','wpa-helper','jet-smart-filters','elementor_font','elementor_icons' ) )
GROUP BY nwp_posts.ID
ORDER BY nwp_posts.post_date ASC
LIMIT 0, 12
made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/plugins/elementor/modules/page-templates/templates/header-footer.php'), Elementor\Modules\PageTemplates\Module->print_content, call_user_func, ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->ElementorPro\Modules\ThemeBuilder\Classes\{closure}, ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->do_location, ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_content, ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_content, Elementor\Modules\Library\Documents\Library_Document->get_content, Elementor\Core\Base\Document->get_content, Elementor\Frontend->get_builder_content, ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_elements_with_wrapper, Elementor\Core\Base\Document->print_elements, Elementor\Element_Base->print_element, Elementor\Element_Base->print_content, Elementor\Element_Base->print_element, Elementor\Element_Base->print_content, Elementor\Element_Base->print_element, Elementor\Widget_Base->print_content, Elementor\Widget_Base->render_content, Elementor\Skin_Base->render_by_mode, ElementorPro\Modules\Posts\Skins\Skin_Posts_ECS->render, ElementorPro\Modules\ThemeBuilder\Widgets\Archive_Posts->query_posts, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
[

Novembre 30, 2023 alle 2:41 pm #14964093

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

Salve,

grazie per averci contattato.

Puoi provare a disattivare tutti i plugin tranne WPML e vedere se l'errore c'è ancora?

L'argomento “[Chiuso] WordPress database error You have an error in your SQL syntax; check the manual” è chiuso ai nuovi commenti.