Skip Navigation

[Closed] PHP Database Errors – Layouts + Genesis + WPML String Translation?

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Shane 4 years, 11 months ago.

Assigned support staff: Shane.

Author
Posts
#443718

Our site is getting this PHP error extremely frequently. It mentions, Layouts, Genesis Layouts Integration, and WPML String Translations, so I'm not sure which one is causing the problem.

[06-Oct-2016 03:03:26 UTC] WordPress database error Unknown column 't.language_code' in 'where clause' for query
SELECT
s.id,
st.status,
s.domain_name_context_md5 AS ctx ,
st.value AS translated,
s.value AS original,
s.gettext_context
FROM wp_icl_strings s
LEFT JOIN wp_icl_string_translations st
ON s.id=st.string_id
AND st.language='en'
AND s.language!='en'
WHERE s.context = 'WordPress'
LIMIT 1000 OFFSET 4000 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/genesis/page_archive.php'), genesis, do_action('genesis_loop'), WPDDL_Integration_Setup->genesis_do_loop, the_ddlayout, get_the_ddlayout, WPDD_Layouts->get_layout_content_for_render, WPDD_Layouts_RenderManager->get_layout_content_for_render, WPDD_Layouts_RenderManager->get_rendered_layout_content, WPDD_layout_render->render, WPDD_layout_render->render_to_html, WPDD_layout_render->render_to_html, WPDD_layout->frontend_render, WPDD_layout_row->frontend_render, WPDD_layout_cell->frontend_render, WPDD_layout_loop_views_cell->frontend_render_cell_content, render_view, WP_Views->render_view_ex, wpv_do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, wpv_filter_meta_html, wpv_do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, wpv_shortcode_wpv_filter_controls, wpv_do_shortcode, do_shortcode, preg_replace_callback, do_shortcode_tag, wpv_shortcode_wpv_control, wpv_render_taxonomy_control, Walker_Category_select->__construct, WP_Query->__construct, WP_Query->query, WP_Query->get_posts

#443811

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi George,

Thank you for contacting our support forum.

This error might be because of PHP 7 but I can't say for certain. Could you downgrade to version 5.6 and see if the error still remains ?

I also would highly recommend opening a ticket with our WPML support team as this is an error with one of the tables that WPML creates.

They might already be familiar with this error.
Also does the error remain when Layouts is disabled ?

Please try this and let me know as soon as possible.

Thanks,
Shane

The topic ‘[Closed] PHP Database Errors – Layouts + Genesis + WPML String Translation?’ is closed to new replies.