This issue can occur if the shop page has not been assigned through WooCommerce. The shop page can be set from the WooCommerce → Settings → Products page by selecting the relevant page you would like to use as the shop page from the 'Shop page' drop-down.