HTTP ERROR 500 while using cornerstone for checkout page

Hello,

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

Hoping for the solution. Thank you.

Hey Bibhash,

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:

    define( 'WP_MEMORY_LIMIT', '256M' );
    define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

Here is a details article about the PHP Memory Limit that is in our Knowledge Base:

In case the issue persists, please try to get in touch with your hosting provider and confirm to them that your PHP memory limit is increased.

If you are still having an issue, please provide us with the admin details of your site in a Secure Note so that we can check this further.

Hello,

We don’t find any error message as mentioned (fatal error) after enable WP_DEBUG.

Please see the secure notes for the access. We get this problem with the checkout page only. All others are working fine.

Thank you and best regards.

Hello @Bibhash,

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.

Hope it helps.

Hello,

Thank you or the suggestion. I will do as per suggestion. One thing is that my other pages are working fine but with Pro Editor not checkout page.

Thank you and best regards.

Hi Bibhash,

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.

Thank you for your understanding.

Hello,

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.

Thank you.

Hey Bibhash,

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.

Thanks.

Hello,

It’s fine. Thanks for suggestion and clarification.

Thank You…

You’re welcome.

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