I’m trying to set up the MemberPress plugin with Sage 9. Some of the template pages from the plugin are not displaying (blank white page, nothing in view source). I think it must have something to do with the template wrapper or blade.
I was able to access the logs both ways. In the logs on the vagrant server, I did see some errors for “headers already sent” but I was not able to correlate that with the blank page I’m seeing. Still working on it. Thanks for your help.
“Headers already sent” usually indicates a PHP error. If you’re not using Trellis, make sure define( 'WP_DEBUG', true ); (https://codex.wordpress.org/WP_DEBUG) is set in your functions.php to see the error.
Yet most other pages with the memberpress plugin appear to be working fine.
If I switch to twentytwelve theme the route works.
If I switch back to Sage and copy single.php into the root of my theme, it tries to display the page but with many php errors due to missing files.
Now I’m sifting through the plugin for clues. Also looking through logs.
After a long break, I’m working on this problem again. I really want to use Sage 9 with MemberPress. I can’t get it to display the templates for some pages. When I switch to Sage 8, it’s able to display a page at: http://domain.test/register/freedom/
(“freedom” is the name of the memberpress membership)
It’s trying to use page.php for this page. It works with Sage 8 activated, but not with Sage 9.
With Sage 9, it gives a completely white page.
I’ve looked at the log file here:
/srv/www/domain.com/logs$ nano error.log
It looks empty.
Any thoughts on what’s happening and why it can’t find the template?
If you’re getting the white screen with nothing on it, that’s probably not a “can’t find a template” error: When WordPress can’t find a template, it generally falls back to the next template “up the chain,” all the way back to index.php. If other pages display, then it’s able to find templates and would fall back for the troublesome page, which suggests to me that finding templates isn’t the problem.
If none of those work, then I would start looking at filters and actions that Sage and Memberpress are hooking into, especially “early” ones, like init: If you’re getting a white page, that means something is failing before WordPress can even start to generate the page, which usually means something with a filter or an action (or, possibly, something in functions.php). Look through the code in Sage and Memberpress for any calls to add_action() or add_filter() and see if they’re conflicting.
This could also be a typo, but I notice you said that the URL you’re trying to visit is on domain.test but the directory you’re looking for logs in is domain.com. You would need to look in /srv/www/domain.test/logs/ for log files on domain.test if you’ve provisioned your server with Trellis normally.
For the folder “domain.com” that’s correct. I have my local dev project folder named “.com” so I guess in vagrant it’s mapped to whatever that folder is named. The hosts file is setup with “.test”
I’m also curious, I just ran into this error and was planning on building a site using MemberPress and Sage 9. Any tips? Really hoping to get this working.