Weird issue. Everything worked fine on our dev server. After migrating to production server, I cant get BB to activate on custom post types. It works on pages, but not on any of the custom post types in the frontend. It is enabled for those post types, I can see it in the backend but when I try to edit post type in BB it just does nothing. No errors in console at all.
Do you think it might be related to serialized data or a server setting?
Our dev server was apache, production is nginx. Thanks.
Thanks Ben. Not sure if that’s relevant, we don’t have supecache installed.
We have memacached on nginx server, and are using wp-ffpc plugin for caching. So we don’t have “cache” folder.
More info turned up:
BB works only on homepage
All pages and post types don’t work
And we tracked down the issue: memcache. I don’t know why memcache isn’t playing well. In wp-ffpc plugin, we did set to exclude all dymanic requests from cache “Exclude every URL with “?” in it.” But that’s not helping.
I believe the issue in the past has been that the ?fl_builder URL variable isn’t making it to the server. You can test that in your code with the following…
if ( ! isset( $_GET['fl_builder'] ) ) {
echo 'It is not set!';
}
The vHost stuff that Ben linked to has fixed that many times in the past and I don’t think it’s necessarily supercache related.
Can you check to see if the fl_builder variable is in fact making it to the code before we dig in further?
Thanks Justin. I think I might have found related fix to Ben’s link solution for our situation. My server admin stepped away so once he’s back, we’ll test it.
And your script does confirm that it’s not making it to the server.
I will let you know once I know if our fix works or not.
You’ll note we added ?$args at the end, instead of $query_string. I’m not a server expert, but what I found says that “You can use either $query_string or $args, they are equivalent - except $query_string is readonly (or alternatively, $args can be updated by any other logic you may wish to add)”.