Internal Server Error and the checkout

Hello there,

One of our customers recently had an Internal Server Error when ordering some products, so we requested the log of the event from the hosting company. The customer did manage to submit the order again which worked.

Cornerstone is implicated in the error, so is one of your team able to cast their eyes over it please? We can see that other plugins are also detailed so I am investigating these as well.

[20-Oct-2023 13:20:59 UTC] PHP Warning: Invalid argument supplied for foreach() in /chroot/home/a7c9e471/wholesale.noblecollection.co.uk/html/wp-content/themes/pro-child/functions.php on line 616

[20-Oct-2023 13:12:28 UTC] WordPress database error 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 '->posts} as p join {$wpdb->postmeta} pm on p.ID = pm.post_id and pm.meta_key=...' at line 1 for query SELECT p.post_parent as post_id FROM {$wpdb->posts} as p join {$wpdb->postmeta} pm on p.ID = pm.post_id and pm.meta_key="_sku" and pm.meta_value LIKE '\\%hedwig\\%' where p.post_parent <> 0 group by p.post_parent made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/pro/framework/legacy/templates/index.php'), x_get_view, x_render_view, include('/themes/pro/framework/views/integrity/wp-index.php'), get_header, locate_template, load_template, require_once('/themes/pro/header.php'), do_action('cs_header'), WP_Hook->do_action, WP_Hook->apply_filters, Themeco\Theme\Theme->{closure}, x_get_view, x_render_view, include('/themes/pro/framework/views/header/base.php'), wp_head, do_action('wp_head'), WP_Hook->do_action, WP_Hook->apply_filters, wp_enqueue_scripts, do_action('wp_enqueue_scripts'), WP_Hook->do_action, WP_Hook->apply_filters, UAGB_Popup_Builder->enqueue_popup_scripts_for_post, UAGB_Popup_Builder->enqueue_popup_scripts, WP_Query->__construct, WP_Query->query, WP_Query->get_posts, apply_filters_ref_array('posts_search'), WP_Hook->apply_filters, WCJ_SKU->add_search_by_sku_to_frontend_posts_search

[20-Oct-2023 13:12:28 UTC] WordPress database error 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 '->posts} as p join {$wpdb->postmeta} pm on p.ID = pm.post_id and pm.meta_key=...' at line 1 for query SELECT p.post_parent as post_id FROM {$wpdb->posts} as p join {$wpdb->postmeta} pm on p.ID = pm.post_id and pm.meta_key="_sku" and pm.meta_value LIKE '\\%hedwig\\%' where p.post_parent <> 0 group by p.post_parent made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/pro/framework/legacy/templates/index.php'), x_get_view, x_render_view, include('/themes/pro/framework/views/integrity/wp-index.php'), get_sidebar, locate_template, load_template, require_once('/themes/pro/sidebar.php'), do_action('cs_sidebar'), WP_Hook->do_action, WP_Hook->apply_filters, Themeco\Theme\Theme->{closure}, x_get_view, x_render_view, include('/themes/pro/framework/views/integrity/wp-sidebar.php'), dynamic_sidebar, WP_Widget->display_callback, Ultimate_Post_List_Widget->widget, Ultimate_Post_List_Public::get_html, WP_Query->__construct, WP_Query->query, WP_Query->get_posts, apply_filters_ref_array('posts_search'), WP_Hook->apply_filters, WCJ_SKU->add_search_by_sku_to_frontend_posts_search

[20-Oct-2023 13:03:08 UTC] WordPress database error 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 '->posts} as p join {$wpdb->postmeta} pm on p.ID = pm.post_id and pm.meta_key=...' at line 1 for query SELECT p.post_parent as post_id FROM {$wpdb->posts} as p join {$wpdb->postmeta} pm on p.ID = pm.post_id and pm.meta_key="_sku" and pm.meta_value LIKE '\\%hedwig\\%' where p.post_parent <> 0 group by p.post_parent made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook->apply_filters, Themeco\Cornerstone\Services\FrontEnd->setup_after_template_include, do_action('cs_late_template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, Themeco\Cornerstone\Services\Resolver->setup_footer, Themeco\Cornerstone\Services\Assignments->get_active_footer, Themeco\Cornerstone\Services\Assignments->getFirstMatch, Themeco\Cornerstone\Services\Assignments->getCachedRules, Themeco\Cornerstone\Services\Assignments->get_rules, Themeco\Cornerstone\Services\Locator->find_posts, get_posts, WP_Query->query, WP_Query->get_posts, apply_filters_ref_array('posts_search'), WP_Hook->apply_filters, WCJ_SKU->add_search_by_sku_to_frontend_posts_search

Thanks!

Spencer

Hello Spencer,

Thanks for writing to us.

As per your given error, it seems that there is an issue with the child theme functions.php file. I would suggest you go to the WordPress dashboard activate the parent theme and recheck it again. Please note we don’t provide customized child theme support it is out of the support scope. In case you have no idea about PHP coding I would suggest you please contact a developer who can assist you with your concerns or you can subscribe to One where customization questions are answered.

Thanks for understanding

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.