This is a bit of a crazy situation. A couple of weeks ago, i was trying to edit one page in the visual editor of Headway Theme 3. I can use the Grid mode but the Design mode does not load. I tried in Chrome and in Firefox, and nothing works to load that page. Other pages are loading fine. Looking further, there is one code that i am using for the page to display or redirect the user based on s2M conditional. The code is this:
<?php if (current_user_can('access_s2member_ccap_element') OR current_user_can('access_s2member_ccap_diamond')){ ?>
<script type="text/javascript">
window.location = 'http://scrapbookcampus.com/element-creation-index/';
</script>
<?php } else {?><?php } ?>
The code itself works fine and has worked fine for months (and it still works). Initially, that code was in a custom code block. I tried changing it to a content block. No go. If i remove that code completely, the page will load fine in the editor. I contacted Headway and they can’t explain why this is happening. I only noticed that a couple of weeks ago, when i needed to tweak that one particular page. It was loading fine before. I tried desabling all the plugins and if s2M is disabled, of course that loads fine (with odd code showing) but as soon as s2M is reactivated, it won’t load.
That has not been any update to the Headway theme in months so that didn’t change. I know the last update to s2M was in February. I cannot remember when was the last time i had to tweak that page in the Design mode so i have no clue if it is from the last s2M update or not.
Can anyone help me out?
The page in question is this one: http://scrapbookcampus.com/creative-scrap/memberships