We have below error while using cornerstone for checkout page. Other page are working fine. The error occurs only when the page is edited with cornerstone else the page works fine. We are using X pro wirth woocommerce.
This page isn’t working domain.com is currently unable to handle this request.
HTTP ERROR 500
You can login through FTP then edit the wp-config.php file and find the line: define( 'WP_DEBUG', false );. Set it to true then save the file. Log back in the admin area and you should be able to see some more error information when you redo the steps you are having issues with.
If you are getting an error message that suggests: Fatal error: Allowed memory size of xxxxx bytes exhausted, it means that you need to have the PHP memory limit of your site increased.
To do this, please edit your wp-config.php file and insert these lines:
The issue is you’ve used Pro Editor in the Checkout page and the checkout shortcode should not be wrapped or placed inside another shortcode which is the case when you add it in Pro Editor because it’s made of shortcodes.
You also shouldn’t edit the pages assigned for Woocommerce using any builder like Pro Editor. The shortcode was added by WooCommerce itself, and even if you delete it and assign it again as your Woocommerce checkout page then it’s still the same. The recommended way of editing Woocommerce layout and content is through Woocommerce templates and hooks.
That is precisely what my colleague tried to explain. The reason that the Checkout page will not work with Pro editor is that the Pro Editor itself is a combination of shortcodes.
Now the Woocommerce sets the page as Checkout, and the Woocommerce reserves that page, and there will be conflicts as under the hood Woocommerce uses shortcodes and functions to create the page.
The best way to edit the Woocommerce Checkout page is via Woocommerce hooks and not the Pro Editor.
Thanks for the response and clarification. Actually, others page means the woocommerce pages such as cart, my account, my orders. They are working fine with the Pro Editor but only checkout page has above error. Though I have used the default Woocommerce settings to avoid the error for the pages.
We’re sorry for some of the wrong information. If you visit the Checkout page and there’s no item in your Cart, you’ll find that you’ll be redirected to the Cart page. That is WooCommerce’s behavior and that is a problem if you open the Checkout page in the builder as there’s nothing to preview because of the redirect.
But, if you add an item to the cart, opening the Checkout page in the builder will work. Although it works, it’s still not recommended as you need to add an item to the cart before you can edit.
If your server’s not setup correctly, you’ll get a 500 internal server error and that is outside of the theme’s and our control as you can see in my screenshots. It’s only your web host who can fix the server error.