Support Forum

Subscribe and Watch buttons cause temp loss of page and theme

MB Marvin Baumgartner
Marvin Baumgartner
Member

Hi,

I really like what I have seen with the product and with its support.
 

I just loaded up a number of plugins and have been testing their functionality.

I noticed when I press the “Subscribe/Unsubscribe” or the “Watch/Stop Watching” buttons that the page changes (for 1-2 seconds) to a mostly white page.

The white page contains only the site’s menu items listed vertically and is devoid of any style.

At the completion of the operation, the forum post page (with proper WP and SP themes) is displayed and the success of the action is reported.

I found that if I replace:

 
    ?>
    <script type=”text/javascript”>window.location= “<?php echo $returnURL; ?>”;</script>
    <?php

 

…with:
 
    wp_redirect($returnURL);
 
in sp_subscriptions_do_process_actions() [sp-subscriptions-components.php]
 
That I can use the subscribe button and I do not encounter the white screen issue.  The page stays at the bottom of the screen.
 
I am a developer but not a php / js developer so I am still learning.
 
Here are my questions: 
 
What is the benefit of what you are doing in the plugin vs what I found works better in my environment?
 
The overall time it takes to complete the action seems about the same.
 
Is it that your method does not require a page reload?
 
I am using a Gantry Framework (Twitter Bootstrap) based theme from RocketTheme.
 
I tried the generic WP themes and do not see the white page issue.
 
So, it looks like it is a theme issue.
 
Is this a problem that has been reported before with these plugins and other themes?
 
Thanks,
—Chris

 

1 Answer

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

I will have to run some tests and look into the issue you report before I can answer the actual questions although I don’t remember any such report being made before. I should be able to do that later today all being well.

However, in the meantime I can comment on the WP theme. I believe we have had the odd – and by that I really do mean rare – report of issues using Gantry although I would not like to say what as it seems like quite a while since the name has popped up.

But – the main concern I have in your post is the report that it is using BootStrap. The problem with BootStrap is that it is not one of the script libraries supported by WordPress (note – not a Simple:Press issue). On the whole this does not cause any issues but it does stomp all over some of the jQuery UI components which IS a supported library and which Simple:Press and many other plugins make good use of. This can be corrected – without any currently reported downside – by ensuring that BootStrap is loaded before the jQuery UI core library file. I just wish that theme authors who insist on using unsupported libraries would at least ensure this happens but sadly we have seen little evidence that this is the case. So – beware that there might be the odd display and usability issue if the load order is not as required.

And we will investigate the redirect issue and come back on it.