Ac78
Forum Replies Created
-
Forum: Plugins
In reply to: [WP User Stylesheet Switcher] Problem with WP Super CacheAwesome! everything works fine in a first test and total compatibility with WP Super Cache! Thanks a lot! I will tell u if I find something weird but everything looks right at the moment. Thanks again! )
Forum: Plugins
In reply to: [WP User Stylesheet Switcher] Problem with WP Super CacheHello vgstef!
Before of all thank u very much for your work, it is very usefull and awesome. Then, I am testing the update in two websites and it looks all ok but the switcher button doesn’t switch, it’s like nothing happen when I click. I was testing everything and I even returned to the old version of your plugin to verify all CSS roots are working fine and so it is. I don’t get where the problem is. The only thing I found is that message in Chrome console which appears when I click the switcher button:
Uncaught ReferenceError: gro is not defined(anonymous function) @ cache.php?t=41:502
(index):827 GET http://bewebside.com/wp-content/plugins/wp-user-stylesheet-switcher/js/wp_user_stylesheet_switcher.js?ver=4.2.2
(index):828 GET http://bewebside.com/wp-content/plugins/wp-user-stylesheet-switcher/js/js.cookie.js?ver=4.2.2
cache.php?t=41:502 Uncaught ReferenceError: gro is not defined(anonymous function) @ cache.php?t=41:502
(index):625 Uncaught ReferenceError: wp_user_stylesheet_switcher_changeCSS is not definedonchange @ (index):625And by clicking this: @ (index):625 for example, I get redirected to:
</div></div></div></div><div class=”span3 “><div class=”row-fluid”><div class=”tw-element span12 ” ><section id=”sidebar”><aside class=”widget widget_wp_user_stylesheet_switcher_widgets” id=”wp_user_stylesheet_switcher_widgets-3″><div class=”tw-widget-title-container”><h3 class=”widget-title”>Stylesheets</h3><span class=”tw-title-border”></span></div><div class=”wp_user_stylesheet_switcher”>Elección de hoja de estilo<select name=”user_stylesheet_switcher_choice_dropdown_s1″ onchange=”wp_user_stylesheet_switcher_changeCSS(‘s1’, this.value);”><option selected=”selected” value=”0″>Deco 01</option><option value=”1″>Deco 02</option><option value=”2″>Deco 03</option></select></div></aside><aside class=”widget widget_calendar” id=”calendar-2″><div id=”calendar_wrap”><table id=”wp-calendar”>
All the other options works fine, for example, when I select automatic aleatory rotation it works fine. Without automatic rotation, I get always the default selected stylesheet.
I tested it too in Firefox with same result, hope u or someone can give me any advice. Thank u very much! )
Forum: Plugins
In reply to: [WP User Stylesheet Switcher] Problem with WP Super CacheForget the ` before the function wp_cache_clear_cache()
Forum: Plugins
In reply to: [WP User Stylesheet Switcher] Problem with WP Super CacheHello vgstef,
Thanks for your answer, I was looking for that php function and I found lot of other people with a similar problem. Then, in WPSC developer documentation I found a function to: Calling the Delete method of WP Super Cache from a PHP script.
I tried to make a test button with php to call it on clic but I just don’t have an idea of php so cutpasting didn’t work for this time. I really would appreciate your help to call this function from your selector button.
`function wp_cache_clear_cache() {
global $cache_path;
prune_super_cache( $cache_path . ‘supercache/’, true );
prune_super_cache( $cache_path, true );
}I got that info here:
<a href=”http://z9.io/wp-super-cache-developers/”>http://z9.io/wp-super-cache-developers/</a>
Just go to “Clear the cache”Thank you!