sage-woocommerce
sage-woocommerce copied to clipboard
adding cart or checkout file results in an error 500 when visiting the page
Description
I tried adding a custom sage template for the checkout page, but when I do that visiting the checkout page results in an white screen of death. I get no debug information although debug is set to true.
Steps to reproduce
- Install sage-woocommerce
- Copy the woocommerce folder from this repository to resources/views (now the archive and single templates work as expected)
- create a new folder "checkout" and in there create the
form-checkout.blade.php
template - either add the contents from the default from-checkout.php or some dummy html
- on your website go to the checkout page
Expected behavior: [What you expect to happen]
The template I just created shows up
Actual behavior: [What actually happens]
After loading for some time a white screen of death appear. Network tab shows status 500 and no answer. Seems like an infinite loop to me.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
wordpress 5.3.1 woocommerce: 3.9.2 or 4.2 sage: 9.0.9 sage-woocommerce": 1.0.4
I found what is causing this:
In my Page controller I got the post content using this:
apply_filters( 'the_content', get_the_content() ),
If I move the apply_filters
to the template it works again.