Pro 5.0.1 - WooCommerce Checkout page

On the WooCommerce checkout page my footer does not load. Also on a lot of occasions the entire page loads as though it is missing it style sheet. This was actually the same in Pro 4.

It is the order received page.
https://mydoamin/checkout/order-received/2031/?key=wc_order_ezKVgiAd4vXcs

Hi @urchindesign,

On that order confirmation, I noticed the cart doesn’t open either so we’re missing some javascript. If you do a “View source” (not the dev tools Elements tab) on that page and scroll to the bottom you can see there’s no closing body or html tag. It just stops partway through the markup. The browser is smart enough to still display it, but something is preventing everything from fully loading.

Usually when it cuts off like that there’s a fatal PHP error. Could you enable WP_DEBUG and see if any error messages are displayed? Thanks!

I turned on PHP to show error reporting and debug yesterday but got nothing :frowning:

Turned on both again for you:
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );

There are some other errors on the shop single page about not getting the id directly so maybe look at that also. Plus some errors with my code which I must still fix.

This error is my code because I am passing the dc:product id which is working but still gives the error which is odd. But I think it the ID was called incorrectly is fixed my error would go away.

Replaced my domain with xxx

Notice : Trying to access array offset on value of type null in /home/urchinwe/xxx/wp-content/themes/pro-child/functions.php on line 106

The below error is calling the product id using a default dc for the product id.
Notice : ID was called incorrectly . Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(’/themes/pro/cornerstone/includes/views/theming/layout-single.php’), do_action(‘cs_layout’), WP_Hook->do_action, WP_Hook->apply_filters, CS_Action_Defer->__call, Themeco\Cornerstone\Elements\Renderer->renderRegion, Themeco\Cornerstone\Elements\Renderer->renderElements, Themeco\Cornerstone\Elements\Renderer->renderElement, Cornerstone_Element_Definition->render, Cornerstone_Element_Definition->render_one, x_element_render_section, cs_render_child_elements, do_action(‘x_section’), WP_Hook->do_action, WP_Hook->apply_filters, Themeco\Cornerstone\Elements\Renderer->renderElements, Themeco\Cornerstone\Elements\Renderer->renderElement, Cornerstone_Element_Definition->render, Cornerstone_Element_Definition->render_one, x_element_render_layout_row, cs_render_child_elements, do_action(‘x_layout_row’), WP_Hook->do_action, WP_Hoo in /home/urchinwe/xxxx/wp-includes/functions.php on line 5535

I originally had the short code in the builder. I thought that might cause issues so the current version is now straight into the default page and not in the builder.

The issue is the same either way. And there are no visible errors. The page literally just stops.

Hi again,

Thanks for checking on the error logs. I think this is some kind of plugin conflict. I temporarily disabled everything except WooCommerce and the page finished loading.

Thanks. I have pinned that down to the B2B plugin we are using.

Just wondering about this error. Those are still present with everything deactivated except Pro and Woo.

Hi @urchindesign,

Looks like that might be this line of your child theme functions.php file:

$category = get_the_terms( $product->ID, 'product_cat' ); 

Try $product->get_id() instead.

1 Like

Thanks.

One of those moments where the excitement of the beta and common sense depart from one another.

You’re welcome! And no worries - I totally get that sometimes when there’s a lot of moving parts it’s hard to decipher what could be going on.