Community Support Forums — WordPress® ( Users Helping Users ) — 2010-06-19T12:06:06-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=246 2010-06-19T12:06:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=246&p=854#p854 <![CDATA[Re: s2Member + Squid reverse proxy]]> Quick Cache ) works very well together. I wrote both of these plugins; and they've been matched up to work together seamlessly.

Statistics: Posted by Jason Caldwell — June 19th, 2010, 12:06 pm


]]>
2010-06-19T10:53:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=246&p=846#p846 <![CDATA[s2Member + Squid reverse proxy]]>
Some notes

1. With Squid on, the correct text is displayed in the post when embedding php code in the post. So if we add that test php code including this :
Code:
<?php } else { ?>
    Some public content.
<?php } ?>

The post does actually show "Some public content." (or the other appropriate text based upon member level). So that part seems to be working.

2. I thought it might be an IP address issue, since that doesn't get passed to apache and instead the $_SERVER['HTTP_X_FORWARDED_FOR'] variable is the one that contains the actual user IP. So I found where IP address logging is located in the s2Member includes/functions, modified the file, and s2 correctly got the IP address. But this didn't fix the problem.

3. Turning off squid fixes the problem.

I'm curious if anyone has any suggestions as to what is or isn't making it through to WordPress

Thanks

Statistics: Posted by johnmont — June 19th, 2010, 10:53 am


]]>